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

ModuleNotFoundError: No module named 'pairs_cython' #2

Open
liuxy1103 opened this issue Sep 27, 2021 · 2 comments
Open

ModuleNotFoundError: No module named 'pairs_cython' #2

liuxy1103 opened this issue Sep 27, 2021 · 2 comments

Comments

@liuxy1103
Copy link

ModuleNotFoundError: No module named 'pairs_cython'

@thouis
Copy link
Owner

thouis commented Sep 27, 2021

Did the Cython command in setup.py work as expected? Does it show some sort of error during installation?

@Maltimore
Copy link
Collaborator

I can reproduce a similar error.
When running python -c "import malis_large_volumes" from the root of this repository, I get the following error:

ImportError: cannot import name 'pairs_cython' from partially initialized module 'malis_large_volumes' (most likely due to a circular import)

But trying to do the same from any directory outside of this repository is no problem. @coder-people could you try whether that was your problem too?

By the way, while going through the code I could not detect any circular imports, even though that's what it says in my error message. I suppose this is a cython-specific problem. I found a popular repository that has a similar problem with cython:
zeromq/pyzmq#1460

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