Python interpreter and libraries are linked wrong.
Installing the godot-python asset from the asset store results in a working build. However, when trying to run the packaged interpreter, errors are produced.
Firstly, the entire bin folder is not executable. This prohibits running pip, python etc. Secondly, correcting the permissions, the following error is produced when trying to execute any of the executables:
./python3
dyld: Library not loaded: /Users/travis/build/touilleMan/godot-python/platforms/osx-64/cpython_build/lib/libpython3.6m.dylib
Referenced from: /Users/ewald/godot-projects/python-test/pythonscript/osx-64-cpython/bin/./python3
Reason: image not found
[1] 66756 abort ./python3
I think this is linked to #76
You should have a look at the osx specific scons file:
- we use LD_LIBRARY_PATH to call pip, you should try this first to see if it solve the issue quick&dirty way
install_name_toolis used to modify the library loading path (see https://github.com/touilleMan/godot-python/issues/76#issue-312198366), I guess you should be able to solve the issue more elegantly (and open a pull request which would also fix the missing executable rights :smile: )
To be clear, I didn't build this, I just installed it from the asset store.
@ezietsman I don't have an osx computer so the support of this plaform is mostly @garyo work, that's why I was suggesting you to do the esoteric stuff ;-)
Its the same on linux,
./bin/pip3 --help
bash: ./bin/pip3: /home/travis/build/touilleMan/godot-python/platforms/x11-64/cpython_build/bin/python3.6: bad interpreter: No such file or directory
That is on Linux with the downloaded asset through godot.
EDIT
This is at the top of the pip3.6 script
#!/home/travis/build/touilleMan/godot-python/platforms/x11-64/cpython_build/bin/python3.6