Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined symbol error while 'import cudaq_solvers as solvers'. #11

Open
Amogh1506 opened this issue Nov 23, 2024 · 3 comments
Open

undefined symbol error while 'import cudaq_solvers as solvers'. #11

Amogh1506 opened this issue Nov 23, 2024 · 3 comments

Comments

@Amogh1506
Copy link

Amogh1506 commented Nov 23, 2024

I get below error at 'import cudaq_solvers as solvers'.I have pip installed cudaq_solvers in python.

Error:
lib/libcudaq-python-interop.so: undefined symbol: _ZN5cudaq17get_qu............

@boschmitt
Copy link
Collaborator

Hello @Amogh1506. Thank you for submitting this issue, we're glad to see you are using the library!

Can you post the full output and details about your environment? It would be important to know whether you are using the docker image or not, and which operating system (linux distribution you are using).

@Amogh1506
Copy link
Author

@boschmitt

full error:

ImportError: /home/xxxx_ubuntu/miniconda3/envs/cuda-quantum/lib/python3.10/site-packages/cudaq_solvers/../lib/libcudaq-python-interop.so: undefined symbol: _ZN5cudaq17get_quake_by_nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8optionalIS5_E

uname -r
5.15.167.4-microsoft-standard-WSL2

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS

@bmhowe23
Copy link
Collaborator

bmhowe23 commented Dec 6, 2024

Hi @Amogh1506 - I am wondering if you have a 0.8.0 version of the cuda-quantum wheel installed in your environment. (CUDA-QX requires version 0.9.0.) Would it be possible to run pip list | grep cuda-quantum, and if you see cuda-quantum 0.8.0 in there, could you please do the following?

  1. pip uninstall cuda-quantum
  2. pip install --upgrade --force-reinstall cudaq

A little bit of backstory: the top-level CUDA-Q wheel name changed from cuda-quantum to cudaq in 0.9. Normally it would be impossible to have two versions of a given wheel installed in the exact same environment, but due to the name change, I have been able to reproduce your error by having both cuda-quantum==0.8.0 and cudaq==0.9.0 installed, so the instructions above attempt to remedy that by removing the old one and reinstalling the new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants