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

[Circular import] issues when importing postqe after installation #7

Open
yliu1240 opened this issue Sep 10, 2023 · 1 comment
Open

Comments

@yliu1240
Copy link

Hi, all!
I've installed the postqe in a virtual environment and the installation process works well. However, I encountered an issue when trying to launch postqe in Python:

"""

import postqe
Traceback (most recent call last):
File "", line 1, in
File "/.../miniconda3/envs/qez2/lib/python3.9/site-packages/postqe/init.py", line 9, in
from . import pyqe
File "/.../miniconda3/envs/qez2/lib/python3.9/site-packages/postqe/pyqe.py", line 2, in
from . import _pyqe
ImportError: cannot import name '_pyqe' from partially initialized module 'postqe' (most likely due to a circular import)
"""

Is there any other information I should provide to solve the issue?

Thanks in advance and have a nice day!

Best regards,

@pietrodelugas
Copy link
Member

Hello
Usually that error shows up when the compilation/linking of _pyqe.*.so fails.
Please check if in the lib//...//site-packages/postqe/ directory there is a _pyqe.*.so file.
And please send the log of the installation with the stderr part included.
Thanks and best regards

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

2 participants