[GRASS-dev] Errors when trying to start wxpython GUI

Glynn Clements glynn at gclements.plus.com
Mon Jul 12 13:38:12 EDT 2010


Tobias Conradt wrote:

> I've successfully compiled and installed GRASS 6.4.0 svn
> (status of 7th July 2010). While the tcltk GUI runs fine,
> any attempt to start the wxpython GUI produces one of the
> following error messages:
> 
> either:
> 
>   ERROR: wxGUI requires wxPython. No module named wxversion
> 
> or (after having specified the path to wxversion.py via
>   export PYTHONPATH=...):
> 
>   'import site' failed; use -v for traceback
>   Traceback (most recent call last):
>     File "/home/conradt/usr/local/grass-6.4.0svn/etc/wxpython/wxgui.py", line 23, in <module>
>       import os
>   ImportError: No module named os
> 
> Interestingly, the same messages appear when setting PYTHONPATH
> to anything else (even non-existing paths).

This suggests that your Python installation is broken, and is relying
upon PYTHONPATH to find the standard library. It should be able to
find the standard library without any PYTHONPATH setting.

If you're trying to use a "non-installed" version of Python, use
PYTHONHOME to tell Python where to find itself.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list