KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums PyKX pykx error when import

  • pykx error when import

    Posted by xzhai125 on May 23, 2023 at 12:00 am

    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!

     

    xzhai125 replied 8 months, 3 weeks ago 2 Members · 1 Reply
  • 1 Reply
  • rocuinneagain

    Member
    May 24, 2023 at 12:00 am

    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?

     

     

Log in to reply.