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 errors #63

Open
BobbyLangan opened this issue Dec 2, 2023 · 1 comment
Open

Circular import errors #63

BobbyLangan opened this issue Dec 2, 2023 · 1 comment

Comments

@BobbyLangan
Copy link

BobbyLangan commented Dec 2, 2023

Hello! I was able to install IgFold from git using the git clone command, and install it and its requirements into my conda environment. However, igfold does not import and is throwing an error about circular imports. This error occurs when installing through pip itself (separate from downloading the git repo). For error see below

Traceback (most recent call last):
  File "/Users/bobbylangan/projects/rlangan-scripts/project_folder/igfold.py", line 1, in <module>
    from igfold import IgFoldRunner
  File "/Users/bobbylangan/projects/rlangan-scripts/project_folder/igfold.py", line 1, in <module>
    from igfold import IgFoldRunner
ImportError: cannot import name 'IgFoldRunner' from partially initialized module 'igfold' (most likely due to a circular import) (/Users/bobbylangan/projects/rlangan-scripts/project_folder/igfold.py)

I am running using the copy/pasted code from the README.md. I was also unable to run through CoLab receiving the same error as Issue #57 (which is also an import error). I was unable to locate the error in my cursory search, is there an earlier branch or tag that you know works we could use in the meantime?

@zguignardi
Copy link

I had this issue when my python file was named 'igfold'. Once I changed it to something other than the module name, the ImportError was resolved.

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