cancel
Showing results for 
Search instead for 
Did you mean: 

pykx error when import

xzhai125
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/pykx.so: cannot open shared object file: No such file or directory

 

so basically it says no pykx.so 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!

 

1 REPLY 1

rocuinneagain
Contributor III
Contributor III

1. Does the file definitely exist?

 

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

 

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?