Closed nantille closed 4 years ago
Can you check that the directory /opt/blender_mod/build_linux/bin/2.83/python/include/python3.7m
actually exists?
Do you have the python-dev
package installed that contains the Python headers and libraries (the name of the package might be somewhat different on Ubuntu).
One issue that's probably at hand here is that even though Blender contains the python
executable, it does not contain the development files, like headers and libraries. Hence the need to have to installed separately.
You're right, I had to compile it aside from Blender's Python. With Ubuntu's python3.6 (on LTS 18), compilation works fine. Then I tried installing python3.7-dev with apt-get and followed the steps to make it as python3 default. After that added numpy pip3 install numpy
and compilation in place worked all the same python setup.py build_ext --inplace
. Then I copied the corresponding .so file (in my case readply.cpython-37m-x86_64-linux-gnu.so
) to the Blender Python lib /opt/blender_mod/build_linux/bin/2.83/python/lib/python3.7
. Your script mesh_readply.py now works. Thanks!
Hello Paul,
First of all thank you for this add-on! I hope to get it working. On Ubuntu, I cloned your repo and tried both ways with the latest master branch, either with the built-in python3.7m or by running blender -b -P setup.py and I get this error:
Your cloned repository is somewhere else on disk, not in /opt.