Graylab / IgFold

Fast, accurate antibody structure prediction from deep learning on massive set of natural antibodies
Other
319 stars 60 forks source link

Circular import errors #63

Open BobbyLangan opened 9 months ago

BobbyLangan commented 9 months ago

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 commented 9 months ago

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.