#35689: py27-wxpython: NameError: global name 'log' is not defined --------------------------------------+------------------------------------- Reporter: Deil.Christoph@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: py27-wxpython --------------------------------------+------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => jwa@… * cc: jwa@… (removed) Comment: Replying to [ticket:35689 Deil.Christoph@…]:
After upgrading from XCode 4.3 to 4.4 on my Lion Macbook, I got the following error: {{{ $ python -c 'import wx' [snip] ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/wx-2.8-mac-unicode/wx/_core_.so, 2): no suitable image found. Did find: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/wx-2.8-mac-unicode/wx/_core_.so: mach-o, but wrong architecture }}}
The wxpython software is only available in a 32-bit version. You must therefore run python in 32-bit mode if you want to use wxpython. {{{ $ arch -i386 python -c 'import wx' }}}
but now the py27-wxpython install fails with a {{{ NameError: global name 'log' is not defined }}}
Yes it had problems locating the "log" function for some reason, but more importantly, what it was trying to use the log function to display was the message "Compiling with an SDK that doesn't seem to exist". The SDKs are in a different location in Xcode 4.3 and 4.4 than in earlier versions and the port might need an update to accommodate that. -- Ticket URL: <https://trac.macports.org/ticket/35689#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS