You are here

Error when trying to import 'get_secstruct'

5 posts / 0 new
Last post
Error when trying to import 'get_secstruct'
#1

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.

Category: 
Post Situation: 
Thu, 2019-04-11 03:50
quantumnumber

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]:

 

 

 

Mon, 2019-04-22 09:18
Amy F

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()
Mon, 2019-04-22 10:09
jadolfbr

is there a more recent tutorial available?  thank you so much, Amy

Mon, 2019-04-22 10:25
Amy F

Thanks a lot!

quantum.

Fri, 2019-05-10 02:25
quantumnumber