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

Partially initialized module #1083

Open
ergodaveh opened this issue Jul 20, 2022 · 2 comments
Open

Partially initialized module #1083

ergodaveh opened this issue Jul 20, 2022 · 2 comments

Comments

@ergodaveh
Copy link

Not sure how to approach a fix.

Using a pip install for a django backend and I get this message

File "C:.venv\lib\site-packages\nnabla_init_.py", line 18, in
from . import _init # Must be imported first
ImportError: cannot import name 'init' from partially initialized module 'nnabla' (most likely due to a circular import) (C:.venv\lib\site-packages\nnabla_init.py)

@TomonobuTsujikawa
Copy link
Contributor

I think this issue is not caused by django. But sorry I've never seen this error when importing nnabla.

Could you please try to uninstall nnabla and nnabla-ext-cuda (if you installed), then reinstall them?
If the issue still occurs after reinstalling, could you please provide this information?

To confirm simple command line has issue:

  • the output of python -c "import nnabla"

To confirm python3.8 - python3.10:

  • the output of python --version
  • the output of pip --version or python -m pip --version

To confirm the environment:

  • the output of pip list or python -m pip list

Also, it would be helpful if you could tell me how to create an environment to reproduce it.

@TomonobuTsujikawa
Copy link
Contributor

@ergodaveh
Have you already solved this problem?
If so, I would be very grad if you could teach me what the cause was.

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