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

Member Site Forums PyRosetta PyRosetta – Build/Install Import Error from >>>from rosetta import * – SOLVED tried Pyrosetta v 1.1 rather than the 2.0 and now it works

Viewing 3 reply threads
  • Author
    Posts
    • #795
      Anonymous

        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

      • #5057
        Anonymous

          I’ve pointed it out to the admin but the answer is likely to be “try a different version”.

        • #5058
          Anonymous

            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

          • #5059
            Anonymous

              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_ubuntu.zip

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