I am replying to myself because I just realised
my silly mistake. The original wx directory from 2.4 was being picked up. I
only renamed the wxPython directory.
Bob
I am trying to migrate a
2.4 application to 2.6. on Windows. I have installed the 2.6 unicode release
alongside my 2.4 release. Wxversion only seemed to see the 2.6 version but my
application still picked up 2.4 so I renamed the directory. I am using Boa
0.4.4 which seems happy with using 2.6.
Clearly 2.6 works as Boa
loads and runs. However, the code that Boa drops does not work and the packages
don’t seem to be as described in the migration document.
import wx
Traceback (most recent
call last):
File
“<pyshell#0>”, line 1, in -toplevel-
import
wx
File
“C:\PYTHON~1\lib\site-packages\wx_init_.py”, line 45, in
-toplevel-
from
wxPython import wx
File
“C:\PYTHON~1\Lib\site-packages\wx-2.6-msw-unicode\wxPython_init_.py”,
line 10, in -toplevel-
import
_wx
File
“C:\PYTHON~1\Lib\site-packages\wx-2.6-msw-unicode\wxPython_wx.py”,
line 3, in -toplevel-
from
_core import *
File
“C:\PYTHON~1\Lib\site-packages\wx-2.6-msw-unicode\wxPython_core.py”,
line 15, in -toplevel-
import
wx._core
ImportError: No module
named _core
import
wxPython
import wx
I thought there was also
a compatibility mode where I could still say:
From wxPython.wx import *
Could someone please put
me straight on this.
Thanks
Bob
*** Confidentiality Notice ***
Proprietary/Confidential
Information belonging to CGI Group Inc. and its affiliates
may be contained in this message. If you are not a recipient
indicated or intended in this message (or responsible for
delivery of this message to such person), or you think for
any reason that this message may have been addressed to you
in error, you may not use or copy or deliver this message
to anyone else. In such case, you should destroy this
message and are asked to notify the sender by reply email.
*** Confidentiality Notice ***
Proprietary/Confidential
Information belonging to CGI Group Inc. and its affiliates
may be contained in this message. If you are not a recipient
indicated or intended in this message (or responsible for
delivery of this message to such person), or you think for
any reason that this message may have been addressed to you
in error, you may not use or copy or deliver this message
to anyone else. In such case, you should destroy this
message and are asked to notify the sender by reply email.