On 11/06/10 13:39, Ronald Oussoren wrote:

On 10 Jun, 2010, at 18:03, Stephen Gava wrote:



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.

How did you install wx? wx won't work because AFAIK Tk 8.4 is 32-bit only on 
OSX 10.5 (the system I used to build the installer).

from the osx package for 2.7



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.

Try the 10.3 version, that installs a 32-bit only version of Python, most 
prebuild extensions are currently only available in 32-bit.

hmm. neither of these solutions explains why the 2.7b2 '10.5 or greater' version of python worked fine with both Tkinter and wx...

i guess i'll re-install python 2.7b2 again to double check, but this seems very odd...

also, are you then saying that no-one running snow leopard on a 64bit capable machine is able to use Tkinter anymore if they install the python.org package for '10.5.. +' osx...?



Ronald

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@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to