[GRASS-dev] Re: problem with CheckForWx in wxGUI

Martin Landa landa.martin at gmail.com
Sun Jul 27 13:49:20 EDT 2008


Hi,

2008/7/27 Glynn Clements <glynn at gclements.plus.com>:

[...]

>>    File "//Library/Frameworks/Python.framework/Versions/2.5/lib/
>> python2.5/site-packages/wx-2.8-mac-unicode/wx/_core.py", line 4, in
>> <module>
>> ImportError: No module named _core_
>>  >>>
>>
>> Note, it is checking for _core.py.
>
> No it isn't. Look at the error message:
>
>        ImportError: No module named _core_
>
> It's looking for a module name _core_ (with a trailing underscore).
> This is the binary extension (_core_.so on Linux). It should be in
>
> The files listed in the backtrace are the Python files which were
> being executed at the point that the error occurred. The backtrace
> always refers to the .py files even if .pyc or .pyo files are actually
> used.

Michael, please check your wxPython installation (Robin Dunn's answer
[1]). There's no reason why the statements below should fail

import wxversion
wxversion.select('2.8')
import wx

Regards, Martin

[1] http://lists.wxwidgets.org/pipermail/wxpython-users/2008-July/077618.html

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *


More information about the grass-dev mailing list