Showing results for 
Search instead for 
Did you mean: 

pykx error when import

New Contributor

Hi guys, 


I believe I've successfully installed pykx on my Linux server and no license error was thrown. However, I still got a weird error after loading init q code:


File "pykx/_wrappers.pyx", line 499, in pykx._wrappers._factory
File "pykx/_wrappers.pyx", line 492, in pykx._wrappers.factory
pykx.exceptions.QError: /home/user/anaconda3/envs/pykx/lib/python3.9/site-packages/pykx/lib/l64/ cannot open shared object file: No such file or directory


so basically it says no in that dir but there is one for sure as it's the site-package folder installed by pip. 


Has anyone encountered this and what does this exactly mean? 


Thank you!



Valued Contributor
Valued Contributor

1. Does the file definitely exist?


 ls -l /home/user/anaconda3/envs/pykx/lib/python3.9/site-packages/pykx/lib/l64/


2. Does forcing the package to reinstall help?


pip install --upgrade --force-reinstall pykx


3. Is the conda environment pykx activated when a) You ran pip install? b) You started python?

4. When exactly do you get the error? Are you just starting python and running import pykx?