Member Site › Forums › PyRosetta › PyRosetta – Build/Install › PyRosetta init() error (Linux)
- This topic has 2 replies, 3 voices, and was last updated 8 years, 7 months ago by Anonymous.
-
AuthorPosts
-
-
April 25, 2016 at 8:21 am #2413Anonymous
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!
-
April 29, 2016 at 4:43 pm #11555Anonymous
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”).
-
April 29, 2016 at 6:03 pm #11557Anonymous
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.
-
-
AuthorPosts
- You must be logged in to reply to this topic.