You are here

PyRosetta init() error (Linux)

3 posts / 0 new
Last post
PyRosetta init() error (Linux)

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

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)


in ipython.

When I try tu run I get

Traceback (most recent call last):
  File "", line 37, in <module>
    from Tkinter import *
  File "/home/master/.pythonbrew/pythons/Python-2.6/lib/python2.6/lib-tk/", 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!

Post Situation: 
Mon, 2016-04-25 01:21

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

Fri, 2016-04-29 09:43

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

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

Fri, 2016-04-29 11:03