“ImportError: No module named site ” when running sh file from samba shared files

If i try to run this sh file from manjaro own desktop, it works fine. So its no a dependency problem, is it ? But when i access the same sh file shared by an ubuntu desktop using samba, i get this “ImportError: No module named site ”.
I can read, modify and create any files, including this sh file, in the shared folder. So its not a permission issue, right ?
the comand python -c "import site" dosent return anything, so the module is there.
Im using manjaro live, by the way. Its not installed.

The default python on Manjaro/Arch is Python 3.

The default python on Ubuntu/Debian is Python 2.

Hence, it's not the same command and its modules will be different.

1 Like