You are here

Import Error from >>>from rosetta import * - SOLVED tried Pyrosetta v 1.1 rather than the 2.0 and now it works

4 posts / 0 new
Last post
Import Error from >>>from rosetta import * - SOLVED tried Pyrosetta v 1.1 rather than the 2.0 and now it works
#1

Hello,
have downloaded PyRosetta onto a machine with Ubuntu 8.04. Python 2.5 and/or 2.6 both configured with the enable shared flag. I tried the first line of the pyrosetta tutorial and I rec'd the following:

>>> from rosetta import *
Traceback (most recent call last):
File "", line 1, in
File "rosetta/__init__.py", line 11, in
import utility
File "rosetta/utility/__init__.py", line 1, in
from __utility_all_at_once_ import *
ImportError: rosetta/libboost_python.so.1.42.0: undefined symbol: PyUnicodeUCS4_AsUTF8String

I have looked and also tried running the command with either python 2.5 or 2.6 either inside of ipython or out and get the same error. I am a big time novice with python and pyrosetta/rosetta and can't find the answer anywhere I have looked. Help? Please...

Thanks in advance,

Judy

Post Situation: 
Fri, 2011-02-18 14:27
juden99

I've pointed it out to the admin but the answer is likely to be "try a different version".

Fri, 2011-02-18 14:52
smlewis

The tutorial states that it is good to use ipython - which I think only works with 2.5 or 2.6. Are you meaning a different binary for Pyrosetta?

I am wondering does this error have something to do with how the pyrosetta binary is compiled versus the flags used for compiling the python version?

Still wondering...

Judy

Fri, 2011-02-18 15:54
juden99

Wich build of PyRosetta have you tried? Scientific Linux or Ubuntu?

This error is due to different boost unicode settings in older Ubuntu versions. You can ether try to updating to newer ubuntu (we use 10.04) or try to replace lib boost with this one from this archive: http://graylab.jhu.edu/pyrosetta/downloads/release/libboost_python_for_u...

Fri, 2011-02-18 20:31
Sergey