#11998 closed defect (fixed)
wxPython cannot be imported
Reported by: | jochen@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.4.42 |
Keywords: | python, wxWidgets, wxPython, matplotlib | Cc: | jyrkiwahlstedt, jochen@…, roederja, mww@… |
Port: |
Description
I get the following error when importing wx from python:
> python -E Python 2.4.4 (#1, May 8 2007, 21:00:03) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import wx /opt/local/lib/python2.4/site-packages/wx-2.8-mac-unicode/wx/_core.py:13967: UserWarning: wxPython/wxWidgets release number mismatch warnings.warn("wxPython/wxWidgets release number mismatch") Traceback (most recent call last): File "<stdin>", line 1, in ? File "/opt/local/lib/python2.4/site-packages/wx-2.8-mac-unicode/wx/__init__.py", line 45, in ? from wx._core import * File "/opt/local/lib/python2.4/site-packages/wx-2.8-mac-unicode/wx/_core.py", line 14007, in ? default = locale.getpreferredencoding() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/locale.py", line 399, in getpreferredencoding import _locale ImportError: No module named _locale >>>
Already submitted a report to the wxpython-mac mailing list
Change History (5)
comment:1 Changed 18 years ago by jochen@…
Summary: | wxPythoncannot be imported → wxPython cannot be imported |
---|
comment:2 Changed 18 years ago by roederja
Cc: | jann@… mww@… added |
---|
comment:4 Changed 18 years ago by roederja
Resolution: | → fixed |
---|---|
Status: | new → closed |
Should be fixed in r25391. Please re-open if not
Note: See
TracTickets for help on using
tickets.
There's already another bug report about the _locale module: #10875 . However I have no idea why Python2.4.4 doesn't build this module anymore...