Member Site › Forums › PyRosetta › PyRosetta – General › Error when trying to import ‘get_secstruct’
- This topic has 4 replies, 3 voices, and was last updated 6 years, 7 months ago by
Anonymous.
-
AuthorPosts
-
-
April 11, 2019 at 10:50 am #3113
Anonymous
Hello everyone,
I just installed and started playing around with PyRosetta, following the corresponding workshops in the web page, when I got the following error:
In [3]: from pyrosetta.toolbox import get_secstruct
ImportError Traceback (most recent call last)
<ipython-input-3-cbfef6ceb324> in <module>()
—-> 1 from pyrosetta.toolbox import get_secstruct
ImportError: cannot import name get_secstruct
It looks like ‘get_secstruct’ is not contained in ‘pyrosetta.toolbox’ module.
Does anyone encountered this before? Could it be just due to a change in the latest PyRosetta version with respect to the version of the tutorial?
Many thanks in advance,
Dani.
-
April 22, 2019 at 4:18 pm #14667
Anonymous
I have the same problem as well
ImportError: cannot import name ‘get_secstruct’
In [22]: from pyrosetta.toolbox import get_secstruct
ImportError Traceback (most recent call last)
<ipython-input-22-0b79146a0f8b> in <module>()
—-> 1 from pyrosetta.toolbox import get_secstruct
ImportError: cannot import name ‘get_secstruct’
In [23]:
-
April 22, 2019 at 5:09 pm #14668
Anonymous
The tutorial is out of date, unfortunately. I don’t know who removed the secstruct function or why, but you can access it through a mover:
DSSP = pyrosetta.rosetta.protocols.moves.DsspMover()
DSSP.apply(pose) # populates the pose's Pose.secstruct
ss = pose.secstruct()
-
-
AuthorPosts
- You must be logged in to reply to this topic.
