Opened 17 years ago

Closed 17 years ago

Last modified 15 years ago

#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 17 years ago by jochen@…

Summary: wxPythoncannot be importedwxPython cannot be imported

comment:2 Changed 17 years ago by roederja

Cc: jann@… mww@… added

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...

comment:3 Changed 17 years ago by roederja

Actually I meant #11972 for the _locale thing...

comment:4 Changed 17 years ago by roederja

Resolution: fixed
Status: newclosed

Should be fixed in r25391. Please re-open if not

comment:5 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.