PyRosetta init() error (Linux)

Member Site Forums PyRosetta PyRosetta – Build/Install PyRosetta init() error (Linux)

Viewing 2 reply threads
  • Author
    Posts
    • #2413
      Anonymous

        Dear all,

        I’ve been trying (and failing) to build PyRosetta (monolith release 95) for a couple of days now.

        I’m running Kubuntu 15.10 64bit.

        I’ve tried running PyRosetta with Python 2.6, 2.6.6 and python 2.7 (ipython & regular).

        I never get complaints for from rosetta import * or import rosetta, but when I try to init() I get

        Traceback (most recent call last):

          File “<stdin>”, line 1, in <module>

          File “<string>”, line 318, in init

        MemoryError

        in Python or


        MemoryError                               Traceback (most recent call last)

        <ipython-input-2-644eaf736525> in <module>()

        —-> 1 init()

        <string> in init(options, extra_options, set_logging_handler, notebook)

        MemoryError:

        in ipython.

        When I try tu run pyrosetta_toolkit.py I get

        Traceback (most recent call last):

          File “pyrosetta_toolkit.py”, line 37, in <module>

            from Tkinter import *

          File “/home/master/.pythonbrew/pythons/Python-2.6/lib/python2.6/lib-tk/Tkinter.py”, line 39, in <module>

            import _tkinter # If this fails your Python may not be configured for Tk

        ImportError: No module named _tkinter

        This persists even after manualy updating tkinter.

        Thanks a bunch!

      • #11555
        Anonymous

          How much memory do you have on your machine, and how much of it are you using? Try running “free -m” in a terminal to get the memory usage report (in Megabytes). (Py)Rosetta is rather memory hungry, so it’s best to have 500+ MB free. If you don’t have enough, you’re likely to run into the MemoryError issue when you run init().

          On the tinker error, you need to have a python build that has tinker bindings. This will be seperate from the general tkinter install. I’m not entirely familiar with Kubuntu, but you may need to install the python-tk package (“sudo apt-get install python-tk”).

        • #11557
          Anonymous

            Hi FRiemer, if you have resonable amount of free memory on your machine (at least ~4gb per thread for monolith build) i would recommend to double check that Python interpreter you use to import rosetta is exactly the same one that you linked PyRosetta with (ie libpython). You can do this by running 

              % ldd rosetta.so

            And checking path of libpython dynamic library to make sure it match with interpreter path.

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