Member Site › Forums › PyRosetta › PyRosetta – Build/Install › Problem of installing PyRosetta on Mac Lion
- This topic has 10 replies, 3 voices, and was last updated 11 years, 5 months ago by Anonymous.
-
AuthorPosts
-
-
July 1, 2013 at 8:13 pm #1629Anonymous
Hello,
I am currently a new user on both Rosetta and Python. I have a Mac and here are the information:
Mac Duo Core
OS 10.7.5
Python 2.6.2
GCC 4.0.1
Xcode installedI was trying to install PyRosetta according to the instruction on the website. However, when I get to the step
import rosetta; rosetta.init().
I got the following error message:
ImportError: dlopen(rosetta/utility/__utility_all_at_once_.so, 2): no suitable image found. Did find:
rosetta/utility/__utility_all_at_once_.so: mach-o, but wrong architectureCould anyone show me how I should solve the problem? I have only very little background on linux .
Thank you ver much
Sing
-
July 1, 2013 at 8:33 pm #8982Anonymous
Hi Sing,
‘wrong architecture’ usually means your mismatching the 64 bit PyRosetta version with a 32 bit, x86, cpu. First, double check your cpu. If it is 64 bit, there may be some other strange problem we might have to ask Sergey about. If it’s 32, you may need to try one of the older builds as the newest binaries are only 64 bit.
-J
-
July 2, 2013 at 3:13 am #8984Anonymous
Sing, could you please check your Python version? Just run ‘which python && python’ and see what output you get. I think you might be running 32bit version of Python. For Mac OS Lion you should see something like this:
/usr/bin/python
Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.
>>> -
July 4, 2013 at 6:23 am #8997Anonymous
Hey Sing,
That says that your hardware supports 64 bit mode. Not necessarily what mode Mac OS X is running in.
Check this page for machines that boot default 32 bit kernel vs 64 bit:
http://support.apple.com/kb/HT3770Then, try holding in 6 + 4 when restarting the mac. http://support.apple.com/kb/ht3773
Try and see if it will work. If not, than it is most likely an issue with python.
-
July 5, 2013 at 8:51 pm #9003Anonymous
Sing,
The 2.6 python is old 32 version. I am guessing that sometime in the past you have changed your default version from 2.7 to 2.6. So what you can do is ether:
– use python2.7 executable to run PyRosetta (just type ‘python2.7’ in command line instead of ‘python’) or
– you can switch your default python version back to 2.7 (Googling for it show: http://stackoverflow.com/questions/5752753/how-do-i-change-the-default-python-version-in-my-mac-snow-leopard )
Regarding the installing custom Python – that will not work, you have to use Apple build in Python for PyRosetta to work.
Hope that helps,
-
July 1, 2013 at 8:50 pm #8983Anonymous
Thanks Jadolfbr,
I tried to run sysctl and it said it is 64 bit computer
Therefore, I am wondering if there is any weird problem going on.
Sing
-
July 2, 2013 at 8:42 pm #8991Anonymous
Thank you for replying, Sergey!
Here is the information I got:
python 2.6.2 (r262:71600,, Apr 16 2009, 09:17:39)
[GCC 4.0.1 (Apple Computer, Inc. Build 5250)]Should I install a new python then?
-
July 3, 2013 at 4:31 pm #8995Anonymous
Be careful doing this. I have bricked or nearly-bricked my mac doing this a few years ago.
Just out of curiosity – which PyRosetta version do you have? It should have a number associated with it – ex for my ubuntu machine- PyRosetta.Ubuntu-12.04LTS-r55422.64Bit-J
P.S.
Can you check to make sure your running mac in 64 bit mode? I know 10.6 could boot in 32 bit mode, and 10.7 may be the same. There was a key you had to hold down to get it to work during startup.
-
July 3, 2013 at 5:48 pm #8996Anonymous
Hi jadolfbr,
I am trying to install PyRosetta.MacOSX.Lion-r55421.64Bit.tar
I was using this command:
sysctl hw.optional.x86_64
and it prints 1 which I assume it is 64 bit mode
Thank you!!
Sing
-
July 5, 2013 at 6:43 am #8999Anonymous
Thanks jadolfbr.
However, I cannot get it work at all. I looked up /usr/local/bin and I found that I have every version of python there. from 2.6 to 3.3. would it be the problem?
Sing
-
July 5, 2013 at 9:39 pm #9004Anonymous
Thank you Sergey!!
I tried python2.7 also. but the error message I got was:
Fatal Python error: Interpreter not initialized (version mismatch?)
Any suggestions are always welcome and appreciated~ I’m desperate now
-
-
AuthorPosts
- You must be logged in to reply to this topic.