You are here

Mistake about rosetta.init()

4 posts / 0 new
Last post
Mistake about rosetta.init()

Dear All:

I have a mistake about rosetta.init() as 'AttributeError:'module' object has no attribute 'init''.

From rosetta import * ; from pyrosetta import * and pyrosetta.init() are all fine. My os is ubuntu 16.04.  Pyrosetta is 'PyRosetta4.Release.python27.ubuntu.release-151.tar.bz2'.

Post Situation: 
Tue, 2017-09-26 09:46

Also, When I run pose_from_pdb(protease, "1d41.pdb"), there mistake as list :

TypeError                                 Traceback (most recent call last)
<ipython-input-14-52d0421e315f> in <module>()
----> 1 pose_from_pdb(protease,"1d41.pdb")

TypeError: pose_from_pdb() takes exactly 1 argument (2 given)

Before it, I have runed protease = Pose() and go into the right directory where 1d41.pdb are in.

Tue, 2017-09-26 10:13

You'll want to remove the pyrosetta component and just do init.  It is not needed with PyRosetta-4. 


I'm not sure about pose_from_pdb, that may not have been ported when we updated the underlying machinery for importing PDBs in order to be able to load mmCIF files.  You'll want to do protease  = pose_from_pdb("path_to_my_file.pdb")

Tue, 2017-09-26 14:58

Thank you very much for your help. Yes, I have made it using your method. Thanks.

Wed, 2017-09-27 09:17