From: Luis W. S. <sev...@gv...> - 2003-11-19 12:55:27
|
I'm trying to evaluate OpenEV as a valid GIS platform on linux, but I'm having some installation/running problems: Are ther any way to assign a color to objects by attribute, on a vector layer (i.e. .shp file). If not ... where must I start to look for code such a feature ? Thanks |
From: Julien D. <de...@ac...> - 2003-11-19 13:49:13
|
At 13:45 19/11/2003 +0100, Luis W. Sevilla wrote: >Are ther any way to assign a color to objects by attribute, on a vector >layer (i.e. .shp file). If not ... where must I start to look for code >such a feature ? Yes, I believe you can classify the vector layer by one of its attributes and then apply a color ramp. Julien |
From: Frank W. <war...@po...> - 2003-11-19 14:24:23
|
Luis W. Sevilla wrote: > I'm trying to evaluate OpenEV as a valid GIS platform on linux, but I'm > having some installation/running problems: > > > Are ther any way to assign a color to objects by attribute, on a vector > layer (i.e. .shp file). If not ... where must I start to look for code > such a feature ? Luis, The toolbar icon with a "C" in it is for classifying raster or vector layers. The icon beside it should display a legend after you have classified a layer. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, war...@po... light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent |
From: Luis W. S. <sev...@gv...> - 2003-11-19 14:46:16
|
Frank Warmerdam wrote: > Luis W. Sevilla wrote: > >> I'm trying to evaluate OpenEV as a valid GIS platform on linux, but >> I'm having some installation/running problems: >> >> >> Are ther any way to assign a color to objects by attribute, on a >> vector layer (i.e. .shp file). If not ... where must I start to look >> for code such a feature ? > > > Luis, > > The toolbar icon with a "C" in it is for classifying raster or vector > layers. > The icon beside it should display a legend after you have classified a > layer. It thasn't work on my computer. I've got, compiled and instales gtk+extra and python-gtkextra from pkgsrc, but when trying to do that 'C' trick I says to me: Traceback (most recent call last): File "/usr/lib/python2.2/site-packages/gtk-1.2/gtk.py", line 2000, in __call__ return self.cb(_obj2inst(widget)) File "pymod/gvviewwindow.py", line 1230, in classify_cb self.viewarea.active_layer().classify() File "pymod/gview.py", line 2415, in classify from gvclassifydlg import GvClassificationDlg ImportError: cannot import name GvClassificationDlg On pymod/pgucombo.py it gived to me an error on line 44, and I changed the line from import pygtkextra to import gtkextra.pygtkextra that is where the default setup has installed the module. .... and now what must I do ? Luis |
From: Gillian W. <gil...@at...> - 2003-11-19 15:14:00
|
Hi, You have to cd to python's site-packages directory and move gtkextra to pygtkextra. OpenEV has a GtkExtra.py that conflicts with gtkextra on windows without the name change. Gillian Luis W. Sevilla wrote: > Frank Warmerdam wrote: > >> Luis W. Sevilla wrote: >> >>> I'm trying to evaluate OpenEV as a valid GIS platform on linux, but >>> I'm having some installation/running problems: >>> >>> >>> Are ther any way to assign a color to objects by attribute, on a >>> vector layer (i.e. .shp file). If not ... where must I start to look >>> for code such a feature ? >> >> >> >> Luis, >> >> The toolbar icon with a "C" in it is for classifying raster or vector >> layers. >> The icon beside it should display a legend after you have classified >> a layer. > > > It thasn't work on my computer. I've got, compiled and instales > gtk+extra and python-gtkextra from pkgsrc, but when trying to do that > 'C' trick I says to me: > > Traceback (most recent call last): > File "/usr/lib/python2.2/site-packages/gtk-1.2/gtk.py", line 2000, in > __call__ > return self.cb(_obj2inst(widget)) > File "pymod/gvviewwindow.py", line 1230, in classify_cb > self.viewarea.active_layer().classify() > File "pymod/gview.py", line 2415, in classify > from gvclassifydlg import GvClassificationDlg > ImportError: cannot import name GvClassificationDlg > > On pymod/pgucombo.py it gived to me an error on line 44, and I changed > the line from > import pygtkextra > to > import gtkextra.pygtkextra > that is where the default setup has installed the module. > > .... and now what must I do ? > Luis > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Openev-discuss mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openev-discuss |
From: Luis W. S. <sev...@gv...> - 2003-11-19 16:23:26
|
Gillian Walter wrote: > Hi, > > You have to cd to python's site-packages directory and move gtkextra > to pygtkextra. OpenEV has a GtkExtra.py that conflicts with gtkextra > on windows without the name change. > On my OpenEV there aren't any GtkExtra.py. A symbolic link doesn't seem to solve the problem. I'm a little bit puzzled. If the right direction of python-gtkextra is site-packages/gtkextra, OpenEv must got it from then, but if its not the case, and the right one is site-packages/pygtkextra, setup.py on python-gtkextra librery directory must place the package there ... isn't it ? I'm anxious to jump to next step of this vaults run ;-) thanks for your support > > Luis W. Sevilla wrote: > >> Frank Warmerdam wrote: >> >>> Luis W. Sevilla wrote: >>> >>>> I'm trying to evaluate OpenEV as a valid GIS platform on linux, but >>>> I'm having some installation/running problems: >>>> >>>> >>>> Are ther any way to assign a color to objects by attribute, on a >>>> vector layer (i.e. .shp file). If not ... where must I start to >>>> look for code such a feature ? >>> >>> >>> >>> >>> Luis, >>> >>> The toolbar icon with a "C" in it is for classifying raster or >>> vector layers. >>> The icon beside it should display a legend after you have classified >>> a layer. >> >> >> >> It thasn't work on my computer. I've got, compiled and instales >> gtk+extra and python-gtkextra from pkgsrc, but when trying to do that >> 'C' trick I says to me: >> >> Traceback (most recent call last): >> File "/usr/lib/python2.2/site-packages/gtk-1.2/gtk.py", line 2000, >> in __call__ >> return self.cb(_obj2inst(widget)) >> File "pymod/gvviewwindow.py", line 1230, in classify_cb >> self.viewarea.active_layer().classify() >> File "pymod/gview.py", line 2415, in classify >> from gvclassifydlg import GvClassificationDlg >> ImportError: cannot import name GvClassificationDlg >> >> On pymod/pgucombo.py it gived to me an error on line 44, and I >> changed the line from >> import pygtkextra >> to >> import gtkextra.pygtkextra >> that is where the default setup has installed the module. >> >> .... and now what must I do ? >> Luis >> >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: SF.net Giveback Program. >> Does SourceForge.net help you be more productive? Does it >> help you create better code? SHARE THE LOVE, and help us help >> YOU! Click Here: http://sourceforge.net/donate/ >> _______________________________________________ >> Openev-discuss mailing list >> Ope...@li... >> https://lists.sourceforge.net/lists/listinfo/openev-discuss > > > > > |
From: Gillian W. <gil...@at...> - 2003-11-19 17:42:05
|
Hi, I was mistaken, GtkExtra.py is part of pygtk- it's under lib/python/site-packages/gtk-1.2. Is /usr/local/lib in your LD_LIBRARY_PATH? If it isn't, that might be why libgtkextra-0.99.so.17 isn't being found. Gillian Luis W. Sevilla wrote: > Gillian Walter wrote: > >> Hi, >> >> You have to cd to python's site-packages directory and move gtkextra >> to pygtkextra. OpenEV has a GtkExtra.py that conflicts with gtkextra >> on windows without the name change. >> > On my OpenEV there aren't any GtkExtra.py. A symbolic link doesn't > seem to solve the problem. > I'm a little bit puzzled. If the right direction of python-gtkextra is > site-packages/gtkextra, OpenEv must got it from then, but if its not > the case, and the right one is site-packages/pygtkextra, setup.py on > python-gtkextra librery directory must place the package there ... > isn't it ? > > I'm anxious to jump to next step of this vaults run ;-) > > thanks for your support > >> >> Luis W. Sevilla wrote: >> >>> Frank Warmerdam wrote: >>> >>>> Luis W. Sevilla wrote: >>>> >>>>> I'm trying to evaluate OpenEV as a valid GIS platform on linux, >>>>> but I'm having some installation/running problems: >>>>> >>>>> >>>>> Are ther any way to assign a color to objects by attribute, on a >>>>> vector layer (i.e. .shp file). If not ... where must I start to >>>>> look for code such a feature ? >>>> >>>> >>>> >>>> >>>> >>>> Luis, >>>> >>>> The toolbar icon with a "C" in it is for classifying raster or >>>> vector layers. >>>> The icon beside it should display a legend after you have >>>> classified a layer. >>> >>> >>> >>> >>> It thasn't work on my computer. I've got, compiled and instales >>> gtk+extra and python-gtkextra from pkgsrc, but when trying to do >>> that 'C' trick I says to me: >>> >>> Traceback (most recent call last): >>> File "/usr/lib/python2.2/site-packages/gtk-1.2/gtk.py", line 2000, >>> in __call__ >>> return self.cb(_obj2inst(widget)) >>> File "pymod/gvviewwindow.py", line 1230, in classify_cb >>> self.viewarea.active_layer().classify() >>> File "pymod/gview.py", line 2415, in classify >>> from gvclassifydlg import GvClassificationDlg >>> ImportError: cannot import name GvClassificationDlg >>> >>> On pymod/pgucombo.py it gived to me an error on line 44, and I >>> changed the line from >>> import pygtkextra >>> to >>> import gtkextra.pygtkextra >>> that is where the default setup has installed the module. >>> >>> .... and now what must I do ? >>> Luis >>> >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.net email is sponsored by: SF.net Giveback Program. >>> Does SourceForge.net help you be more productive? Does it >>> help you create better code? SHARE THE LOVE, and help us help >>> YOU! Click Here: http://sourceforge.net/donate/ >>> _______________________________________________ >>> Openev-discuss mailing list >>> Ope...@li... >>> https://lists.sourceforge.net/lists/listinfo/openev-discuss >> >> >> >> >> >> > > > |
From: Luis W. S. <sev...@gv...> - 2003-11-19 18:15:30
|
Gillian Walter wrote: > Hi, > > I was mistaken, GtkExtra.py is part of pygtk- it's under > lib/python/site-packages/gtk-1.2. Is /usr/local/lib in your > LD_LIBRARY_PATH? If it isn't, that might be why > libgtkextra-0.99.so.17 isn't being found. > That was the solution. I had no LD_LIBRARY_PATH at all. After setting it to /usr/local/bin the dialog appeared and I'm testing the way it works right now. > Luis W. Sevilla wrote: > >> Gillian Walter wrote: >> >>> Hi, >>> >>> You have to cd to python's site-packages directory and move gtkextra >>> to pygtkextra. OpenEV has a GtkExtra.py that conflicts with >>> gtkextra on windows without the name change. >>> >> On my OpenEV there aren't any GtkExtra.py. A symbolic link doesn't >> seem to solve the problem. >> I'm a little bit puzzled. If the right direction of python-gtkextra >> is site-packages/gtkextra, OpenEv must got it from then, but if its >> not the case, and the right one is site-packages/pygtkextra, setup.py >> on python-gtkextra librery directory must place the package there ... >> isn't it ? >> >> I'm anxious to jump to next step of this vaults run ;-) >> >> thanks for your support >> >>> Luis W. Sevilla wrote: >>> >>>> Frank Warmerdam wrote: >>>> >>>>> Luis W. Sevilla wrote: >>>>> >>>>>> I'm trying to evaluate OpenEV as a valid GIS platform on linux, >>>>>> but I'm having some installation/running problems: >>>>>> >>>>>> >>>>>> Are ther any way to assign a color to objects by attribute, on a >>>>>> vector layer (i.e. .shp file). If not ... where must I start to >>>>>> look for code such a feature ? >>>>> >>>>> >>>>> Luis, >>>>> >>>>> The toolbar icon with a "C" in it is for classifying raster or >>>>> vector layers. >>>>> The icon beside it should display a legend after you have >>>>> classified a layer. >>>> >>>> >>>> >>>> It thasn't work on my computer. I've got, compiled and instales >>>> gtk+extra and python-gtkextra from pkgsrc, but when trying to do >>>> that 'C' trick I says to me: >>>> >>>> Traceback (most recent call last): >>>> File "/usr/lib/python2.2/site-packages/gtk-1.2/gtk.py", line 2000, >>>> in __call__ >>>> return self.cb(_obj2inst(widget)) >>>> File "pymod/gvviewwindow.py", line 1230, in classify_cb >>>> self.viewarea.active_layer().classify() >>>> File "pymod/gview.py", line 2415, in classify >>>> from gvclassifydlg import GvClassificationDlg >>>> ImportError: cannot import name GvClassificationDlg >>>> >>>> On pymod/pgucombo.py it gived to me an error on line 44, and I >>>> changed the line from >>>> import pygtkextra >>>> to >>>> import gtkextra.pygtkextra >>>> that is where the default setup has installed the module. >>>> >>>> .... and now what must I do ? >>>> Luis >>> |
From: Paul S. <pag...@ma...> - 2003-11-19 18:34:57
|
Luis, on linux you can also edit /etc/ld.so.conf and append /usr/local/lib. On RedHat systems (at least recent ones anyway) it is not there by default. This would be instead of setting LD_LIBRARY_PATH ... not sure what the difference is? Probably LD_LIBRARY_PATH is a user environment setting and ld.so.conf is system wide. Cheers, Paul Luis W. Sevilla wrote: > Gillian Walter wrote: > >> Hi, >> >> I was mistaken, GtkExtra.py is part of pygtk- it's under >> lib/python/site-packages/gtk-1.2. Is /usr/local/lib in your >> LD_LIBRARY_PATH? If it isn't, that might be why >> libgtkextra-0.99.so.17 isn't being found. >> > That was the solution. I had no LD_LIBRARY_PATH at all. After setting it > to /usr/local/bin the dialog appeared and I'm testing the way it works > right now. > >> Luis W. Sevilla wrote: >> >>> Gillian Walter wrote: >>> >>>> Hi, >>>> >>>> You have to cd to python's site-packages directory and move gtkextra >>>> to pygtkextra. OpenEV has a GtkExtra.py that conflicts with >>>> gtkextra on windows without the name change. >>>> >>> On my OpenEV there aren't any GtkExtra.py. A symbolic link doesn't >>> seem to solve the problem. >>> I'm a little bit puzzled. If the right direction of python-gtkextra >>> is site-packages/gtkextra, OpenEv must got it from then, but if its >>> not the case, and the right one is site-packages/pygtkextra, setup.py >>> on python-gtkextra librery directory must place the package there ... >>> isn't it ? >>> >>> I'm anxious to jump to next step of this vaults run ;-) >>> >>> thanks for your support >>> >>>> Luis W. Sevilla wrote: >>>> >>>>> Frank Warmerdam wrote: >>>>> >>>>>> Luis W. Sevilla wrote: >>>>>> >>>>>>> I'm trying to evaluate OpenEV as a valid GIS platform on linux, >>>>>>> but I'm having some installation/running problems: >>>>>>> >>>>>>> >>>>>>> Are ther any way to assign a color to objects by attribute, on a >>>>>>> vector layer (i.e. .shp file). If not ... where must I start to >>>>>>> look for code such a feature ? >>>>>> >>>>>> >>>>>> >>>>>> Luis, >>>>>> >>>>>> The toolbar icon with a "C" in it is for classifying raster or >>>>>> vector layers. >>>>>> The icon beside it should display a legend after you have >>>>>> classified a layer. >>>>> >>>>> >>>>> >>>>> >>>>> It thasn't work on my computer. I've got, compiled and instales >>>>> gtk+extra and python-gtkextra from pkgsrc, but when trying to do >>>>> that 'C' trick I says to me: >>>>> >>>>> Traceback (most recent call last): >>>>> File "/usr/lib/python2.2/site-packages/gtk-1.2/gtk.py", line 2000, >>>>> in __call__ >>>>> return self.cb(_obj2inst(widget)) >>>>> File "pymod/gvviewwindow.py", line 1230, in classify_cb >>>>> self.viewarea.active_layer().classify() >>>>> File "pymod/gview.py", line 2415, in classify >>>>> from gvclassifydlg import GvClassificationDlg >>>>> ImportError: cannot import name GvClassificationDlg >>>>> >>>>> On pymod/pgucombo.py it gived to me an error on line 44, and I >>>>> changed the line from >>>>> import pygtkextra >>>>> to >>>>> import gtkextra.pygtkextra >>>>> that is where the default setup has installed the module. >>>>> >>>>> .... and now what must I do ? >>>>> Luis >>>> >>>> > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Openev-discuss mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openev-discuss > -- ----------------------------------------------------------------- |Paul Spencer sp...@dm... | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- |
From: Luis W. S. <sev...@gv...> - 2003-11-19 18:46:33
|
Paul Spencer wrote: > Luis, on linux you can also edit /etc/ld.so.conf and append > /usr/local/lib. On RedHat systems (at least recent ones anyway) it is > not there by default. This would be instead of setting > LD_LIBRARY_PATH ... not sure what the difference is? Probably > LD_LIBRARY_PATH is a user environment setting and ld.so.conf is system > wide. On my /etc/ld.so.conf there are 15 directorys, /usr/local/lib among them, but doesn't work for python (and the library gtkextras). When I've setted LD_LIBRARY_PATH correctly thinks had solved ... Thanks for the interest (and sorry by my poor english, to all the list members) Luis > > Luis W. Sevilla wrote: > >> Gillian Walter wrote: >> >>> Hi, >>> >>> I was mistaken, GtkExtra.py is part of pygtk- it's under >>> lib/python/site-packages/gtk-1.2. Is /usr/local/lib in your >>> LD_LIBRARY_PATH? If it isn't, that might be why >>> libgtkextra-0.99.so.17 isn't being found. >> >> That was the solution. I had no LD_LIBRARY_PATH at all. After setting >> it to /usr/local/bin the dialog appeared and I'm testing the way it >> works right now. >> >>> Luis W. Sevilla wrote: >>> >>>> Gillian Walter wrote: >>>> >>>>> Hi, >>>>> >>>>> You have to cd to python's site-packages directory and move >>>>> gtkextra to pygtkextra. OpenEV has a GtkExtra.py that conflicts >>>>> with gtkextra on windows without the name change. >>>> >>>> On my OpenEV there aren't any GtkExtra.py. A symbolic link doesn't >>>> seem to solve the problem. >>>> I'm a little bit puzzled. If the right direction of python-gtkextra >>>> is site-packages/gtkextra, OpenEv must got it from then, but if its >>>> not the case, and the right one is site-packages/pygtkextra, >>>> setup.py on python-gtkextra librery directory must place the >>>> package there ... isn't it ? >>>> >>>> I'm anxious to jump to next step of this vaults run ;-) >>>> >>>> thanks for your support >>>> >>>>> Luis W. Sevilla wrote: >>>>> >>>>>> Frank Warmerdam wrote: >>>>>> >>>>>>> Luis W. Sevilla wrote: >>>>>>> >>>>>>>> I'm trying to evaluate OpenEV as a valid GIS platform on linux, >>>>>>>> but I'm having some installation/running problems: >>>>>>>> >>>>>>>> >>>>>>>> Are ther any way to assign a color to objects by attribute, on >>>>>>>> a vector layer (i.e. .shp file). If not ... where must I start >>>>>>>> to look for code such a feature ? >>>>>>> >>>>>>> Luis, >>>>>>> >>>>>>> The toolbar icon with a "C" in it is for classifying raster or >>>>>>> vector layers. >>>>>>> The icon beside it should display a legend after you have >>>>>>> classified a layer. >>>>>> >>>>>> It thasn't work on my computer. I've got, compiled and instales >>>>>> gtk+extra and python-gtkextra from pkgsrc, but when trying to do >>>>>> that 'C' trick I says to me: >>>>>> >>>>>> Traceback (most recent call last): >>>>>> File "/usr/lib/python2.2/site-packages/gtk-1.2/gtk.py", line >>>>>> 2000, in __call__ >>>>>> return self.cb(_obj2inst(widget)) >>>>>> File "pymod/gvviewwindow.py", line 1230, in classify_cb >>>>>> self.viewarea.active_layer().classify() >>>>>> File "pymod/gview.py", line 2415, in classify >>>>>> from gvclassifydlg import GvClassificationDlg >>>>>> ImportError: cannot import name GvClassificationDlg >>>>>> >>>>>> On pymod/pgucombo.py it gived to me an error on line 44, and I >>>>>> changed the line from >>>>>> import pygtkextra >>>>>> to >>>>>> import gtkextra.pygtkextra >>>>>> that is where the default setup has installed the module. >>>>>> >>>>>> .... and now what must I do ? >>>>>> Luis >>>>> >>>>> > |
From: Andrey K. <dr...@ak...> - 2003-11-19 19:21:54
|
On Wed, Nov 19, 2003 at 07:45:15PM +0100, Luis W. Sevilla wrote: > On my /etc/ld.so.conf there are 15 directorys, /usr/local/lib among > them, but doesn't work for python (and the library gtkextras). When I've > setted LD_LIBRARY_PATH correctly thinks had solved ... After adding a new library to the one of the locations, specified in /etc/ld.so.conf, you should update the run-time cache using ldconfig utility. Otherwise dynamic linker fails to load requested library. You don't need LD_LIBRARY_PATH in your configuration, you need to run ldconfig. Best regards, Andrey -- Andrey V. Kiselev Home phone: +7 812 5274898 ICQ# 26871517 |
From: Frank W. <war...@po...> - 2003-11-19 15:24:22
|
Luis W. Sevilla wrote: > It thasn't work on my computer. I've got, compiled and instales > gtk+extra and python-gtkextra from pkgsrc, but when trying to do that > 'C' trick I says to me: > > Traceback (most recent call last): > File "/usr/lib/python2.2/site-packages/gtk-1.2/gtk.py", line 2000, in > __call__ > return self.cb(_obj2inst(widget)) > File "pymod/gvviewwindow.py", line 1230, in classify_cb > self.viewarea.active_layer().classify() > File "pymod/gview.py", line 2415, in classify > from gvclassifydlg import GvClassificationDlg > ImportError: cannot import name GvClassificationDlg Luis, But it doesn't give any explanation for why it didn't work? Can you execute the statement "from gvclassifydlg import GvClassificationDlg" at the python commandline? What happens then? > On pymod/pgucombo.py it gived to me an error on line 44, and I changed > the line from > import pygtkextra > to > import gtkextra.pygtkextra > that is where the default setup has installed the module. I have committed a change to pgucombo so that it tries importing from your alternate location if the direct import fails. I am pretty sure I have run into this before myself. I would appreciate your verifying that the new version of pgucombo.py works without any alteration on your system. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, war...@po... light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent |
From: Luis W. S. <sev...@gv...> - 2003-11-19 16:13:06
|
Frank Warmerdam wrote: > Luis W. Sevilla wrote: > >> It thasn't work on my computer. I've got, compiled and instales >> gtk+extra and python-gtkextra from pkgsrc, but when trying to do that >> 'C' trick I says to me: >> >> Traceback (most recent call last): >> File "/usr/lib/python2.2/site-packages/gtk-1.2/gtk.py", line 2000, >> in __call__ >> return self.cb(_obj2inst(widget)) >> File "pymod/gvviewwindow.py", line 1230, in classify_cb >> self.viewarea.active_layer().classify() >> File "pymod/gview.py", line 2415, in classify >> from gvclassifydlg import GvClassificationDlg >> ImportError: cannot import name GvClassificationDlg > > > Luis, > > But it doesn't give any explanation for why it didn't work? Can you > execute the statement "from gvclassifydlg import GvClassificationDlg" > at the python commandline? What happens then? It happens nothing. Program continues running normaply. Maybe the problem it's before that: When running first time after instaling python-gtkextra, I've got folowing error: File "/usr/lib/python2.2/site-packages/gtk-1.2/gtk.py", line 2000, in __call__ return self.cb(_obj2inst(widget)) File "pymod/gvviewwindow.py", line 1230, in classify_cb self.viewarea.active_layer().classify() File "pymod/gview.py", line 2415, in classify from gvclassifydlg import GvClassificationDlg File "pymod/gvclassifydlg.py", line 120, in ? import gvogrfsgui File "pymod/gvogrfsgui.py", line 58, in ? import pgucombo File "pymod/pgucombo.py", line 44, in ? import pygtkextra File "/usr/lib/python2.2/site-packages/gtkextra/__init__.py", line 25, in ? import _gtkextra ImportError: libgtkextra-0.99.so.17: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio (last one means there's no file libgtkextra-0.99.so.17). Librarys are on /usr/local/lib: lrwxrwxrwx 1 root root 26 2003-11-19 12:44 /usr/local/lib/libgtkextra-0.99.so.17 -> libgtkextra-0.99.so.17.0.0 -rwxr-xr-x 2 root root 2768832 2003-11-19 12:44 /usr/local/lib/libgtkextra-0.99.so.17.0.0 -rw-r--r-- 1 root root 5136620 2003-11-19 12:44 /usr/local/lib/libgtkextra.a -rwxr-xr-x 1 root root 785 2003-11-19 12:44 /usr/local/lib/libgtkextra.la lrwxrwxrwx 1 root root 26 2003-11-19 12:44 /usr/local/lib/libgtkextra.so -> libgtkextra-0.99.so.17.0.0 but it seems python module it's unable to find them. I've thinked that doing a symlink on /usr/lib/python2.2/site-packages will work, but it doesn't. do you know can I tell python lo look for libraries on that directory? >> On pymod/pgucombo.py it gived to me an error on line 44, and I >> changed the line from >> import pygtkextra >> to >> import gtkextra.pygtkextra >> that is where the default setup has installed the module. > > > I have committed a change to pgucombo so that it tries importing from > your > alternate location if the direct import fails. I am pretty sure I > have run > into this before myself. I would appreciate your verifying that the new > version of pgucombo.py works without any alteration on your system. I've updated, and done also a little change on my site-packages directory following Gillian's Walter suggestion, but nothing has changed. My main surprise it's that I've done no change on library locations or names, and they haven worked fine 'out of de box'. |