[Pythonmac-SIG] python.org 2.7rc1 problem

Stephen M. Gava stephen.gava at gmail.com
Wed Jun 9 03:21:40 CEST 2010


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?

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.


More information about the Pythonmac-SIG mailing list