[GRASS-dev] making py.monitor listen to external commands
Benjamin Ducke
benjamin.ducke at ufg.uni-kiel.de
Thu Jun 15 12:13:38 EDT 2006
OK, I installed wxpython on my Gentoo Linux box.
This is what I get now:
/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core.py:13155:
UserWarning: wxPython/wxWidgets release number mismatch
warnings.warn("wxPython/wxWidgets release number mismatch")
Traceback (most recent call last):
File "mon.py", line 314, in ?
main()
File "mon.py", line 293, in main
pymonitor = Monitor(0)
File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core.py",
line 7473, in __init__
self._BootstrapApp()
File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core.py",
line 7125, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "mon.py", line 54, in OnInit
self.initDrawArea()
File "mon.py", line 101, in initDrawArea
self.back.getRegion()
File "/home/benni/grass-cvs/py.monitor-06-06-14-4/map/raster.py",
line 138, in getRegion
key,value = line.split(":")
ValueError: too many values to unpack
Obviously due to a minor difference in library versions.
But I don't understand the message well enough to know what exactly
the problem is.
Benjamin
Jáchym Čepický wrote:
> Hallo,
>
> yes, most of the developers desided, that wxwindows and python are the best tools which are working on *every* supported platform. I personaly would choose pygtk. But as long as you have wxwidgest and python in your system, this should work. This should also work, if you try it on ms windows - you should not need xdriver at least for the basic operation.
>
> anyway, if you want to get rid of xdriver, you need somethign else - some other dependency.
>
> look after thy wxpython package, it should help
>
> jachym
> ______________________________________________________________
>
>>Od: benjamin.ducke at ufg.uni-kiel.de
>>Komu: grass-dev at grass.itc.it
>>Datum: 15.06.2006 10:17
>>Předmět: Re: [GRASS-dev] making py.monitor listen to external commands
>>
>>OK, I don't know much about Python, but this is what I get
>>when I do: ./py.mon start=py0
>>
>> File "mon.py", line 15, in ?
>> import wx
>> File
>
> "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/__init__.py", line
> 42, in ?
>
>> from wx._core import *
>> File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core.py",
>
> line 4, in ?
>
>> import _core_
>>ImportError:
>
> /usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core_.so: symbol
> _ZTV17wxMemoryFSHandler, version WX_2.6 not defined in file
> libwx_gtk2_core-2.6.so.0 with link time reference
>
>>... so one more dependency to worry about in the future?
>>
>>Or is this something that can easily be taken care of with a
>>modified configure script?
>>
>>Best,
>>
>>Benjamin
>>
>>Jachym Cepicky wrote:
>>
>>>Hallo,
>>>
>>>>bugfix version of py.monitor scripts. Some people tested the scripts
>
> and
>
>>>they found it nice. What about you, developers?
>>>
>>>>Current version avaliable on
>>>
>>>http://les-ejk.cz/programs/grass/py.monitor-06-06-14-4.tgz
>>>
>>>>tar xzf py.monitor-06-06-14-4.tgz
>>>
>>>cd py.monitor
>>>py.mon start=py0
>>>py.rast soils -o
>>>py.vect roads
>>>py.erase
>>>...
>>>
>>>>Everything, what should work (all toolbar buttons, etc.) works.
>
> Zoom/Unzoom
>
>>>avaliable via mouse wheel. Mapcontent manageable via py.* commands
>
> (this
>
>>>should move to d.* commands in the future) from commandline and via any
>>>other interface via LOCATION/MAPSET/.pyX file.
>>>
>>>>Starting with the morning, I will not have much time and I will not
>
> be
>
>>>so close to internet for a week, so I will not spam your mailboxes
>>>for a while. > > It would be good just to send me some note, e.g., that
>
> you tryed, but it did
>
>>>not work. It is not so easy to develop GUI without any feedback.
>>>
>>>>Looking forward > > Jachym
>>>>On Wed, Jun 14, 2006 at 11:34:09AM +0200, Jachym Cepicky wrote:
>>>>
>>>>>Hallo,
>>>>
>>>>after long discussion with Michael and a bit coding, I would like to
>>>>present new new concept of GRASS monitors.
>>>>
>>>>I prepared set of py.* commands, which IMHO *should* became parts of
>
> d.*
>
>>>>commands. This is just a workaround this.
>>>>
>>>>General concept is, each monitor has it's own LOCATION/MAPSET/.pyX
>
> file,
>
>>>>in which the d.* files are stored. This file is checked from the GUI
>
> and
>
>>>>if there is some change, it's content serves for creating the map.
>>>>
>>>>Advantage of this approach is, that this file can be modified from any
>>>>GUI/CLI. Target is, to have py.mons *independent* on any UI, however
>>>>managable from *any* of them.
>>>>
>>>>Screenshot can be found on [1], set of new tools can be found on [2].
>>>>
>>>>Example session (in xterm) can look like follows:
>>>>
>>>>py.mon start=x0
>>>>py.mon start=py0
>>>>py.rast soils
>>>>py.vect roads
>>>>py.ctrl -l
>>>>py.ctrl remove=vect
>>>>py.rast fields -o
>>>>py.vect fields fcol=yellow >>py.ctrl -l
>>>>
>>>>(see screenshot [1] for details and possible outputs).
>>>>
>>>>py.rast and py.vect commands can be used just like the old d.* commands
>>>>
>>>>for installation just untar [2] and cd new py.monitor directory
>>>>
>>>>[1] http://les-ejk.cz/tmp/py.mon.png
>>>>[2] http://les-ejk.cz/programs/grass/py.monitor.tgz
>>>>
>>>>Please test and discusse.
>>>>
>>>>Jachym
>>>>-- >>Jachym Cepicky
>>>>e-mail: jachym.cepicky at centrum.cz
>>>>URL: http://les-ejk.cz
>>>>GPG:
>
> http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
>
>>>>----------------------------------------- >>OFFICE:
>
> >>GDF-Hannover
>
>>>>Mengendamm 16d
>>>>30177 Hannover
>>>>Germany
>>>>e-mail: cepicky at gdf-hannover.de
>>>>URL: http://gdf-hannover.de
>>>>Tel.: +49 511-39088507
>>>>
>>>>>>>>_______________________________________________
>>>>
>>>>grass-dev mailing list
>>>>grass-dev at grass.itc.it
>>>>http://grass.itc.it/mailman/listinfo/grass-dev
>>>>
> ------------------------------------------------------------------------
>
>>>>_______________________________________________
>>>
>>>grass-dev mailing list
>>>grass-dev at grass.itc.it
>>>http://grass.itc.it/mailman/listinfo/grass-dev
>>
>>-- Benjamin Ducke, M.A.
>>Archäoinformatik
>>(Archaeoinformation Science)
>>Institut für Ur- und Frühgeschichte
>>(Inst. of Prehistoric and Historic Archaeology)
>>Christian-Albrechts-Universität zu Kiel
>>Johanna-Mestorf-Straße 2-6
>>D 24098 Kiel
>>Germany
>>
>>Tel.: ++49 (0)431 880-3378 / -3379
>>Fax : ++49 (0)431 880-7300
>>www.uni-kiel.de/ufg
>>
>>_______________________________________________
>>grass-dev mailing list
>>grass-dev at grass.itc.it
>>http://grass.itc.it/mailman/listinfo/grass-dev
>>
>
>
>
>
--
Benjamin Ducke, M.A.
Archäoinformatik
(Archaeoinformation Science)
Institut für Ur- und Frühgeschichte
(Inst. of Prehistoric and Historic Archaeology)
Christian-Albrechts-Universität zu Kiel
Johanna-Mestorf-Straße 2-6
D 24098 Kiel
Germany
Tel.: ++49 (0)431 880-3378 / -3379
Fax : ++49 (0)431 880-7300
www.uni-kiel.de/ufg
More information about the grass-dev
mailing list