Skip to content

cannot import name 'interface' from 'mxfold2' #16

@erik-whiting

Description

@erik-whiting

I cloned the repository into my university's cluster. To work around importing issues and get things working properly, I put this file in my home directory:

# Called `mf2`
import re
import sys
from mxfold2.mxfold2.__main__ import main
if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
    sys.exit(main())

and have this repository cloned in the same directory, and when I run

python mf2 predict some_sequence.fasta

I get the following errors:

Traceback (most recent call last):
  File "/home/ewhiting/mxfold2/mf2", line 5, in <module>
    from mxfold2.__main__ import main
  File "/home/ewhiting/mxfold2/mxfold2/__main__.py", line 5, in <module>
    from .predict import Predict
  File "/home/ewhiting/mxfold2/mxfold2/predict.py", line 14, in <module>
    from .fold.mix import MixedFold
  File "/home/ewhiting/mxfold2/mxfold2/fold/mix.py", line 2, in <module>
    from .. import interface
ImportError: cannot import name 'interface' from 'mxfold2' (/home/ewhiting/mxfold2/mxfold2/__init__.py)

Is there a better workaround for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions