[GRASS-dev] Errors when trying to start wxpython GUI
Tobias Conradt
conradt at pik-potsdam.de
Tue Jul 13 05:42:38 EDT 2010
Dear Glynn, thanks for the quick reply!
The Python I use is system-wide installed in /usr/bin.
I've tried it with PYTHONHOME=/usr/lib64/python2.6 and
PYTHONHOME=/usr/lib64 to show the way to the standard
libraries, and I've tried PYTHONHOME=/usr/bin to tell
Python where to find itself. The result kept stable:
'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
Best regards,
conradt
Glynn Clements wrote:
> 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.
>
More information about the grass-dev
mailing list