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

Can't import package? #57

Open
skandermoalla opened this issue Nov 21, 2024 · 1 comment
Open

Can't import package? #57

skandermoalla opened this issue Nov 21, 2024 · 1 comment

Comments

@skandermoalla
Copy link

Installed successfully, then when trying to import I get

Traceback (most recent call last):
  File "/Users/moalla/mambaforge/envs/deep-rts/lib/python3.9/site-packages/DeepRTS/__init__.py", line 2, in <module>
    from DeepRTS import Engine
ImportError: cannot import name 'Engine' from partially initialized module 'DeepRTS' (most likely due to a circular import) (/Users/moalla/mambaforge/envs/deep-rts/lib/python3.9/site-packages/DeepRTS/__init__.py)

If I remove it from the init.py and try to import Engine or Player independently I get

ImportError: cannot import name 'Engine' from 'DeepRTS'
or 
ImportError: cannot import name 'Engine' from 'DeepRTS.python'

Any ideas?

@asd417
Copy link

asd417 commented Jan 25, 2025

Same issue here. I checked whether this is the issue with pybind11 not building something but I didn't get any pybind11 error from sudo pip3 install . -vvv

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