Error when trying to import ‘get_secstruct’

Member Site Forums PyRosetta PyRosetta – General Error when trying to import ‘get_secstruct’

Viewing 2 reply threads
  • Author
    Posts
    • #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.

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

           

           

           

        • #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()

            • #14671
              Anonymous

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

              • #14720
                Anonymous

                  Thanks a lot!

                  quantum.

            Viewing 2 reply threads
            • You must be logged in to reply to this topic.