You are here

Question about py import rosetta.core

4 posts / 0 new
Last post
Question about py import rosetta.core
#1

When I run the py file,it occured:

 from rosetta.core.scoring.sasa import SasaCalc
ModuleNotFoundError: No module named 'rosetta.core'
 

I don't know how to handle it, thanks for every help

Post Situation: 
Thu, 2022-01-13 00:40
danbo

In recent versions of PyRosetta, the rosetta module is now a submodule of pyrosetta.

Change the line to the following:

               from pyrosetta.rosetta.core.scoring.sasa import SasaCalc

Thu, 2022-01-13 09:18
rmoretti

I tried as you said,but it still occued

from pyrosetta.rosetta.core.scoring.sasa import SasaCalc
ModuleNotFoundError: No module named 'pyrosetta'

I also tried "pip install pyrosetta",it doesn;t work
 

 

Thu, 2022-01-13 17:56
danbo

PyRosetta is separately licensed (https://www.rosettacommons.org/software/license-and-download), and must be obtained and installed manually (https://www.pyrosetta.org/downloads), using the username and password provided to you with the license - there's not a convienient pip install command which works out of the box.

You also need to install PyRosetta for the particular Python interpreter you're using. One common issue is to install pyrosetta to one Python interpreter, but accidentally launch another one. If you've installed PyRosetta, but are still seeing the "No module named 'pyrosetta'" issue check which python interpreters you're using.

Fri, 2022-01-14 07:27
rmoretti