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 #30

Open
AlexDuchnowski opened this issue Oct 4, 2024 · 0 comments
Open

Circular Import #30

AlexDuchnowski opened this issue Oct 4, 2024 · 0 comments

Comments

@AlexDuchnowski
Copy link

AlexDuchnowski commented Oct 4, 2024

When running a simply test file with just one line (import grinpy as gp), I get a circular import error:

Traceback (most recent call last):
  File "c:\Users\<USER>\OneDrive\Documents\Python Scripts\test.py", line 1, in <module>
    import grinpy as gp
  File "C:\Users\<USER>\AppData\Local\Programs\Python\Python310\lib\site-packages\grinpy\__init__.py", line 36, in <module>
    import grinpy.invariants  # noqa
  File "C:\Users\<USER>\AppData\Local\Programs\Python\Python310\lib\site-packages\grinpy\invariants\__init__.py", line 2, in <module>
    from grinpy.invariants.clique import *  # noqa
  File "C:\Users\<USER>\AppData\Local\Programs\Python\Python310\lib\site-packages\grinpy\invariants\clique.py", line 12, in <module>
    from grinpy import graph_clique_number
ImportError: cannot import name 'graph_clique_number' from partially initialized module 'grinpy' (most likely due to a circular import) (C:\Users\<USER>\AppData\Local\Programs\Python\Python310\lib\site-packages\grinpy\__init__.py)
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

1 participant