ImportError: libpython3.10.so.1.0:

   477   3   1
User Avatar
Member
5 posts
Joined: 4月 2023
Offline
I'm running 20.0.751 on Rocky 9 with python 3.10.6 installed and I'm struggling to get hou integrated into my python scripts. I dont want to use hython because its an existing python app I am running, I want to integrate houdini functions into this existing script.


$ source houdini_setup
The Houdini 20.0.751 environment has been initialized.

$ python
Python 3.10.6 (main, Mar 4 2024, 09:24:28) on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import hou
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'hou'



$ hython
Python 3.10.10 (main, Sep 7 2023, 14:12:34) on linux
Houdini 20.0.751 hou module imported.
>>>




$ export PYTHONPATH=/opt/hfs20.0.751/houdini/python3.10libs/
$ python
Python 3.10.6 (main, Mar 4 2024, 09:24:28) on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import hou
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/hfs20.0.751/houdini/python3.10libs/hou.py", line 25, in <module>
import _hou
ImportError: libpython3.10.so.1.0: cannot open shared object file: No such file or directory
>>>

any ideas on why I cant import hou?

LD_LIBRARY_PATH is not set to anything in my environment
User Avatar
Member
5 posts
Joined: 4月 2023
Offline
just to update. installing python 3.10.10 to match houdini is giving the same error
User Avatar
Member
297 posts
Joined: 1月 2013
Offline
Yes, you can do that
https://www.sidefx.com/docs/houdini/hom/commandline.html [www.sidefx.com]
User Avatar
Member
5 posts
Joined: 4月 2023
Offline
couldnt get it working with python 3.10

installed the py3.9 version of houdini and that works if I also switch to python3.9 in my alternatives
  • Quick Links