H_B
October 25, 2006, 6:28am
1
Hi,
I am trying to get the WxPython GUIs started on Debian/stable (sarge).
cd grass63/gui/wxpython
G:wxpython > r.shaded.relief --interface-description | ./grassgui.py
Traceback (most recent call last):
File "./grassgui.py", line 33, in ?
import wx
ImportError: No module named wx
# apt-get install libwxgtk2.4-python # Version: 2.4.3.1
G:wxpython > r.shaded.relief --interface-description | ./grassgui.py
Traceback (most recent call last):
File "./grassgui.py", line 45, in ?
import subprocess
ImportError: No module named subprocess
where do I get "subprocess" ?
interesting: "python-opengl" package
Description: Python binding to OpenGL
PyOpenGL is a cross-platform open source Python binding to the standard
OpenGL API providing 2D and 3D graphic drawing. PyOpenGL supports the
GL, GLU, GLE, and GLUT libraries. The library can be used with the Tkinter,
wxPython, FxPy, and Win32GUI windowing libraries (or almost any Python
windowing library which can provide an OpenGL context).
thanks,
Hamish
hallo,
On Wed, Oct 25, 2006 at 07:28:13PM +1300, Hamish wrote:
Hi,
# apt-get install libwxgtk2.4-python # Version: 2.4.3.1
G:wxpython > r.shaded.relief --interface-description | ./grassgui.py
Traceback (most recent call last):
File "./grassgui.py", line 45, in ?
import subprocess
ImportError: No module named subprocess
where do I get "subprocess" ?
subprocess should be part of the python package:
http://packages.debian.org/cgi-bin/search_contents.pl?word=%2Fusr%2Flib%2Fpython2.4%2Fsubprocess.py&searchmode=searchfiles&case=insensitive&version=stable&arch=i386
jachym
--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------
OFFICE:
Department of Geoinformation Technologies
Zemedelska 3
613 00, Brno
Czech Republick
e-mail: xcepicky@node.mendelu.cz
URL: http://mapserver.mendelu.cz
Tel.: +420 545 134 514
H_B
October 25, 2006, 7:39am
3
Jachym Cepicky wrote:
> # apt-get install libwxgtk2.4-python # Version: 2.4.3.1
>
> G:wxpython > r.shaded.relief --interface-description | ./grassgui.py
> Traceback (most recent call last):
> File "./grassgui.py", line 45, in ?
> import subprocess
> ImportError: No module named subprocess
>
>
> where do I get "subprocess" ?
>
subprocess should be part of the python package:
$ apt-file search subprocess.py
python2.4: usr/lib/python2.4/subprocess.py
so it is.
I have python 2.3 installed, which doesn't have it.
and for some reason Debian/Sarge's Wx 2.4 is a python2.3 lib.. ?
libwxgtk2.4-python: /usr/lib/python2.3/site-packages/wxPython/wx.py
maybe just wait for Etch to be released..
thanks,
Hamish
Hamish wrote:
Jachym Cepicky wrote:
# apt-get install libwxgtk2.4-python # Version: 2.4.3.1
G:wxpython > r.shaded.relief --interface-description | ./grassgui.py Traceback (most recent call last):
File "./grassgui.py", line 45, in ?
import subprocess
ImportError: No module named subprocess
where do I get "subprocess" ?
subprocess should be part of the python package:
$ apt-file search subprocess.py
python2.4: usr/lib/python2.4/subprocess.py
so it is.
I have python 2.3 installed, which doesn't have it.
and for some reason Debian/Sarge's Wx 2.4 is a python2.3 lib.. ?
libwxgtk2.4-python: /usr/lib/python2.3/site-packages/wxPython/wx.py
the version of wx is 2.4, the version of python is 2.3
I think that for the wxpython GRASS gui you actually need wx version 2.6 with python 2.4.
maybe just wait for Etch to be released..
Yes.
Moritz
Hamish wrote on 10/25/2006 09:39 AM:
Jachym Cepicky wrote:
# apt-get install libwxgtk2.4-python # Version: 2.4.3.1
G:wxpython > r.shaded.relief --interface-description | ./grassgui.py
Traceback (most recent call last):
File "./grassgui.py", line 45, in ?
import subprocess
ImportError: No module named subprocess
where do I get "subprocess" ?
subprocess should be part of the python package:
$ apt-file search subprocess.py
python2.4: usr/lib/python2.4/subprocess.py
so it is.
I have python 2.3 installed, which doesn't have it.
and for some reason Debian/Sarge's Wx 2.4 is a python2.3 lib.. ?
libwxgtk2.4-python: /usr/lib/python2.3/site-packages/wxPython/wx.py
maybe just wait for Etch to be released..
In my office, I am on RHEL4 with Python 2.3. I think that I solved it
like this
1. cp subprocess.py into
gui/py_gm/compat/subprocess.py
2. Add to grassgui.py:
try:
import subprocess
except:
from compat import subprocess
Something like this may solve the backward compatibility problem.
Markus