mailgui vs wx python


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by Sébastien Morin on April 24, 2011 - 21:30:
Hi,

I just installed wxPython on my Mac running OS X in order to be able to run the relax gui.

I installed "wxPython2.8-osx-unicode-py2.6" from "http://www.wxpython.org/download.php#stable";.

When trying to start the gui, I get the following message:

    ""RelaxError: To use the GUI, the wx python module must be installed."

When I try to import wx withon python, the module seems there, but not working, as I get the following error:

====
import wx
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
File "//usr/local/lib/wxPython-unicode-2.8.12.0/lib/python2.6/site-packages/wx-2.8-mac-unicode/wx/__init__.py", line 45, in <module>
    from wx._core import *
File "//usr/local/lib/wxPython-unicode-2.8.12.0/lib/python2.6/site-packages/wx-2.8-mac-unicode/wx/_core.py", line 4, in <module>
    import _core_
ImportError: /usr/local/lib/wxPython-unicode-2.8.12.0/lib/python2.6/site-packages/wx-2.8-mac-unicode/wx/_core_.so: no appropriate 64-bit architecture (see "man python" for running in 32-bit mode)
====

On the wx python website, it is said that "These binaries should work on all versions of OSX from 10.3.9 onwards on either PPC or i386 architectures. Since they use the Carbon API they are limited to running in 32-bit mode."

However, my machine, a Macbook pro, is 64 bit and python runs in 64 bits by default. I found that python can be set to use 32 or 64 bits. However, I am afraid that these settings are system-wide. Would there be a way that relax tells the system to run python in 32 bit mode, maybe only when the gui is invoked ?

Maybe this is too much asked... However, if it is simple, I guess it would simplify the life of many users with recent Mac computers...

Thanks a lot !


Séb  :)

--
Sébastien Morin, Ph.D.
Postdoctoral fellow
S. Grzesiek NMR Laboratory
Biozentrum, Universität Basel
Basel, Switzerland




Related Messages


Powered by MHonArc, Updated Mon Apr 25 10:40:13 2011