You are here

ipython can't find PyRosetta files

3 posts / 0 new
Last post
ipython can't find PyRosetta files

I'm trying to get interactive rosetta to work on a linux virtual machine. I have zero experience coding so I've been struggling royally. I first tried Ubuntu 18.04, but after having some difficulty I decided to switch to as close of a setup as what is in the interactive rosetta install video as I could. I tried Ubuntu 12.04 64 bit with python 2.7.3 and PyRosetta 3 release 104. When I try to import rosetta into ipython this appears:

ImportError                               Traceback (most recent call last)
/home/jason/<ipython-input-1-b5ed8db2e37c> in <module>()
----> 1 from rosetta import *

/usr/local/PyRosetta/rosetta/ in <module>()
     90 # Double-checked right order...

---> 91 import rosetta.utility
     92 import
     93 import rosetta.utility.excn

/usr/local/PyRosetta/rosetta/utility/ in <module>()
----> 1 from _utility_ import *
      3 vector1_double = vector1_Real
      4 from _utility_ import *

ImportError: /usr/local/PyRosetta/rosetta/utility/ wrong

Please help!

Post Situation: 
Thu, 2019-08-29 17:48

I think importing directly from rosetta is deprecated. What happens if you instead use:

from pyrosetta.rosetta import *



I always create a python environment, so that any packages updates/changes by the installation  does not affect my systems python. I use miniconda to take of most of these things. you can read about it here:

Fri, 2019-08-30 07:03

The "wrong ELF class: ELFCLASS64" message means that you have 64-bit/32-bit incompatibility issues. You say you're running it on a 64-bit version of Ubuntu 12.04, but I'm guessing something in the process is 32 bit, and thus can't work with the 64-bit compiled libraries. (Is your IPython version compiled for 64-bit? Some of the older 64-bit Linuxes had a mix of 64-bit and 32-bit components.)

At any rate, unless you really need to run on the no-longer-supported-by-Ubuntu version 12.04, I'd recommend against it. I'd recommend setting things up on the system/layout you're actually interested in, using recent(ish) versions of the OS/IPython/PyRosetta, and then ask for help with the difficulties you have there. (Because, after all, even if you get it to work on 12.04, you're likely going to want to transition to the version you actually want to use, and will run into issue eventually. There's not much point in stacking the 12.04 issues on top of the 18.04 issues.)

Fri, 2019-08-30 08:40