ipython can’t find PyRosetta files

Member Site Forums PyRosetta PyRosetta – Build/Install ipython can’t find PyRosetta files

Viewing 2 reply threads
  • Author
    Posts
    • #3239
      Anonymous

        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/__init__.py in <module>()

             89

             90 # Double-checked right order…

        —> 91 import rosetta.utility

             92 import rosetta.utility.py

             93 import rosetta.utility.excn

        /usr/local/PyRosetta/rosetta/utility/__init__.py in <module>()

        —-> 1 from _utility_ import *

              2

              3 vector1_double = vector1_Real

              4 from _utility_ import *

        ImportError: /usr/local/PyRosetta/rosetta/utility/_utility_.so: wrong

        ELF class: ELFCLASS64

        Please help!

      • #14921
        Anonymous

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

          from pyrosetta.rosetta import *

          ?

          ps.

          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: https://docs.conda.io/en/latest/miniconda.html

        • #14922
          Anonymous

            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.)

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