[MacPorts] #35689: py27-wxpython: NameError: global name 'log' is not defined
MacPorts
noreply at macports.org
Wed Aug 15 21:58:39 PDT 2012
#35689: py27-wxpython: NameError: global name 'log' is not defined
--------------------------------------+-------------------------------------
Reporter: Deil.Christoph@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Keywords: | Port: py27-wxpython
--------------------------------------+-------------------------------------
After upgrading from XCode 4.3 to 4.4 on my Lion Macbook, I got the
following error:
{{{
$ python -c 'import wx'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/wx-2.8-mac-unicode/wx/__init__.py", line 45, in <module>
from wx._core import *
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/wx-2.8-mac-unicode/wx/_core.py", line 4, in <module>
import _core_
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
christoph-deils-macbook:Downloads deil$ file
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/wx-2.8-mac-unicode/wx/_core_.so
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/wx-2.8-mac-unicode/wx/_core_.so: Mach-O bundle i386
christoph-deils-macbook:Downloads deil$ otool -L
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/wx-2.8-mac-unicode/wx/_core_.so
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/wx-2.8-mac-unicode/wx/_core_.so:
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
version 52.0.0)
/opt/local/lib/libwx_macu_richtext-2.8.0.dylib (compatibility
version 9.0.0, current version 9.0.0)
/opt/local/lib/libwx_macu_aui-2.8.0.dylib (compatibility version
9.0.0, current version 9.0.0)
/opt/local/lib/libwx_macu_xrc-2.8.0.dylib (compatibility version
9.0.0, current version 9.0.0)
/opt/local/lib/libwx_macu_qa-2.8.0.dylib (compatibility version
9.0.0, current version 9.0.0)
/opt/local/lib/libwx_macu_html-2.8.0.dylib (compatibility version
9.0.0, current version 9.0.0)
/opt/local/lib/libwx_macu_adv-2.8.0.dylib (compatibility version
9.0.0, current version 9.0.0)
/opt/local/lib/libwx_macu_core-2.8.0.dylib (compatibility version
9.0.0, current version 9.0.0)
/opt/local/lib/libwx_base_carbonu_xml-2.8.0.dylib (compatibility
version 9.0.0, current version 9.0.0)
/opt/local/lib/libwx_base_carbonu_net-2.8.0.dylib (compatibility
version 9.0.0, current version 9.0.0)
/opt/local/lib/libwx_base_carbonu-2.8.0.dylib (compatibility
version 9.0.0, current version 9.0.0)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
(compatibility version 1.0.0, current version 275.0.0)
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
(compatibility version 2.0.0, current version 153.0.0)
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
(compatibility version 1.0.0, current version 17.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 159.1.0)
/System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
(compatibility version 1.0.0, current version 2315.0.0)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
(compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/AGL.framework/Versions/A/AGL
(compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
(compatibility version 1.0.0, current version 41.0.0)
}}}
So I tried to uninstall and reinstall
{{{
sudo port uninstall py27-wxpython
sudo port uninstall wxWidgets
sudo port install py27-wxpython
}}}
but now the py27-wxpython install fails with a
{{{
NameError: global name 'log' is not defined
}}}
The full log is attached.
--
Ticket URL: <https://trac.macports.org/ticket/35689>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list