[Pythonmac-SIG] python.org 2.7rc1 problem

Stephen Gava stephen.gava at gmail.com
Fri Jun 11 03:03:55 CEST 2010



On 11/06/10 1:21 AM, Ronald Oussoren wrote:
>
> On 8 Jun, 2010, at 18:21, Stephen M. Gava wrote:
>
>> hi there,
>>
>> i was happily running the python.org build of 2.7b2, howver since i installed 2.7rc1 i am getting errors when importing Tkinter or wx (wxpython) libraries.
>>
>> perhaps i'm making some simple mistake here. can anyone tell me what the problem is caused by?
>
>
> Which installer did you use? I'd guess you used "Mac Installer disk image (2.7rc1) for OS X 10.5 and later" and used the other one for previous releases.   If you're on a modernish intel system you'll get a 64-bit process when you start the "10.5 and later" python, and wx and Tkinter are likely only 32-bit which would explain the error.

i did a complete wipe of python 2.7 and all libraries and then a fresh 
install of python 2.7 and wx.  still get exactly the same error for 
Tkinter and wx.

this is osx snow leopard on a 64bit capable intel aluminium imac.

i also double checked, and i definately never installed any 2.7 package 
other than the '10.5 or later...' one. i don't even have any versions 
other than that in my downloads directory.

stephen.


>
> Ronald
>
>>
>> here is an example of trying the imports from a 2.7rc1 python shell:
>>
>> Python 2.7rc1 (r27rc1:81810, Jun  7 2010, 16:54:02)
>> [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
>> Type "help", "copyright", "credits" or "license" for more information.
>>>>> import wx
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in<module>
>>   File "/usr/local/lib/wxPython-unicode-2.8.11.0/lib/python2.7/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.11.0/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core.py", line 4, in<module>
>>     import _core_
>> ImportError: dlopen(/usr/local/lib/wxPython-unicode-2.8.11.0/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core_.so, 2): no suitable image found.  Did find:
>> 	/usr/local/lib/wxPython-unicode-2.8.11.0/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core_.so: no matching architecture in universal wrapper
>>>>> import tkinter
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in<module>
>> ImportError: No module named tkinter
>>>>> import Tkinter
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in<module>
>>   File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 39, in<module>
>>     import _tkinter # If this fails your Python may not be configured for Tk
>> ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_tkinter.so, 2): no suitable image found.  Did find:
>> 	/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_tkinter.so: no matching architecture in universal wrapper
>>>>>
>>
>> thanks,
>> stephen.
>> _______________________________________________
>> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
>> http://mail.python.org/mailman/listinfo/pythonmac-sig
>> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
>


More information about the Pythonmac-SIG mailing list