[GRASS-user] wxgrass: porblem with combo

Hi
That problem was described on FreegeoCZ, but I have problem with some Czech words :))

on ubuntu feisty with wxWidgeds installed from repository:
generally after when wxgrass is started I have the message:

Traceback (most recent call last):
  File "/usr/local/grass-6.3.cvs/etc/wx/wxgui.py", line 29, in <module>
    import wx.combo
ImportError: No module named combo

generally:

wxGRASS have started in recent (btw: congratulations, intuitive fast interface, and times faster display!!!!!)
some elemenst works, some not (I know, it is in early development stage) but in next start mentioned message appeared.

Meanwhile I tried (without success) compile Ggis with Python support. Because there were problems in finding Python Include dir, I make some changes in ld.conf.so (path to Python2.4 includes needded by qgis). I cancelled all the changes (and run ldconfig, of course)

Generaly, it worked, and without any particular reasons have stopped. Any ideas??

I have wx installed in /usr/include/wx-2.8/wx it is 2.8.1. version
I have both python 2.4 and 2.5 installed in /usr

Jarek

Jarek Jasiewicz wrote:

Hi
That problem was described on FreegeoCZ, but I have problem with some SLOVAK words :))

on ubuntu feisty with wxWidgeds installed from repository:
generally after when wxgrass is started I have the message:

Traceback (most recent call last):
File "/usr/local/grass-6.3.cvs/etc/wx/wxgui.py", line 29, in <module>
   import wx.combo
ImportError: No module named combo

possible reason problme occures when both wxPython 2.6 and 2.8 are installed. Some aplications requiers wx2.6 as thier dependiency
If only 2.8 is installed wxgrass works
I don't know if it is the reason but it occurs
maybe it is if 2.6 is installed AFTER 2.8?

Jarek

Jarek,

On 6/2/07 8:11 AM, "Jarek Jasiewicz" <jarekj@amu.edu.pl> wrote:

Hi
That problem was described on FreegeoCZ, but I have problem with some
Czech words :))

on ubuntu feisty with wxWidgeds installed from repository:
generally after when wxgrass is started I have the message:

Traceback (most recent call last):
  File "/usr/local/grass-6.3.cvs/etc/wx/wxgui.py", line 29, in <module>
    import wx.combo
ImportError: No module named combo

See a bit below.

generally:

wxGRASS have started in recent (btw: congratulations, intuitive fast
interface, and times faster display!!!!!)

Thanks. And thanks for going to the trouble of testing this.

some elemenst works, some not (I know, it is in early development stage)
but in next start mentioned message appeared.

Meanwhile I tried (without success) compile Ggis with Python support.
Because there were problems in finding Python Include dir, I make some
changes in ld.conf.so (path to Python2.4 includes needded by qgis). I
cancelled all the changes (and run ldconfig, of course)

This is not necessary for the wxPython gui. It is only needed if you want to
use the Python SWIG interface.

Generaly, it worked, and without any particular reasons have stopped.
Any ideas??

I have wx installed in /usr/include/wx-2.8/wx it is 2.8.1. version
I have both python 2.4 and 2.5 installed in /usr

This could be a problem. You can have multiple pythons installed, but only
one will be the default. I (and at least some others) are currently using
2.5 for development, but trying to maintain 2.4 compatibility. So either one
should be OK for the wxgrass gui.

You mention in another post that you have wxPython 2.6 and 2.8 installed.
This will almost certainly be a problem unless 2.8.x is your default. This
is probably the source of the error with wx.combo--a module that comes with
2.8. These are in ../wx/lib and need to be in your python path. I don't know
if wxPython 2.6 can be in your python path without causing problems.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

Michael Barton napisał(a):

Jarek,

On 6/2/07 8:11 AM, "Jarek Jasiewicz" <jarekj@amu.edu.pl> wrote:

Hi
That problem was described on FreegeoCZ, but I have problem with some
Czech words :))

on ubuntu feisty with wxWidgeds installed from repository:
generally after when wxgrass is started I have the message:

Traceback (most recent call last):
File "/usr/local/grass-6.3.cvs/etc/wx/wxgui.py", line 29, in <module>
   import wx.combo
ImportError: No module named combo
   
See a bit below.

generally:

wxGRASS have started in recent (btw: congratulations, intuitive fast
interface, and times faster display!!!!!)
   
Thanks. And thanks for going to the trouble of testing this.

some elemenst works, some not (I know, it is in early development stage)
but in next start mentioned message appeared.

Meanwhile I tried (without success) compile Ggis with Python support.
Because there were problems in finding Python Include dir, I make some
changes in ld.conf.so (path to Python2.4 includes needded by qgis). I
cancelled all the changes (and run ldconfig, of course)
   
This is not necessary for the wxPython gui. It is only needed if you want to
use the Python SWIG interface.

Generaly, it worked, and without any particular reasons have stopped.
Any ideas??

I have wx installed in /usr/include/wx-2.8/wx it is 2.8.1. version
I have both python 2.4 and 2.5 installed in /usr
   
This could be a problem. You can have multiple pythons installed, but only
one will be the default. I (and at least some others) are currently using
2.5 for development, but trying to maintain 2.4 compatibility. So either one
should be OK for the wxgrass gui.

You mention in another post that you have wxPython 2.6 and 2.8 installed.
This will almost certainly be a problem unless 2.8.x is your default. This
is probably the source of the error with wx.combo--a module that comes with
2.8. These are in ../wx/lib and need to be in your python path. I don't know
if wxPython 2.6 can be in your python path without causing problems.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

Thanks Michel

I tested it more, and I confirm: having 2.6 cousing problmes with wx.combo, but this not allow install aplications depending on wxPython2.6
The only solution is to install 2.6 on very fresh system, next 2.8 next other aplication. But At least two aplications on Ubuntu installed from repos (for examle wxGlade and pgAdmin3 if installed after) made wx2.6 default

I don't know if idea of depending wxGRASS on at least 2.8.1 is good idea (I red this in last Jachym article on his page). Generally most ubuntu application are dependend on wx2.6. I don't know if following example is good but may give you addational asspumtion:
Probably every grass user know pgadmin3 (postgreSQL manager) for now in ubuntu repositories is version 1.4.3 depending on wx2.6. I asked developers why not 1.6.1 wchich is more advanced. It is because, 1.6.1 is dependend on wx2.8, ad as long as they will not be sure if wx2.8 is fully compatibile with other aplications they will not add 1.6.1

that all I can say

greetings and tahnks for all your effort on new (and better) grasss interface

BTW: I sbscribed grassgui list so next massages on wxGRASS I will post there

Jarek

Jarek Jasiewicz wrote:

possible reason problme occures when both wxPython 2.6 and 2.8 are
installed. Some aplications requiers wx2.6 as thier dependiency
If only 2.8 is installed wxgrass works
I don't know if it is the reason but it occurs
maybe it is if 2.6 is installed AFTER 2.8?

from my very small understanding of wx, the differences between 2.6 and
2.8 are small*, so aplications which require wx2.6 should be quickly
ported to 2.8, and the problem goes away.

[*] vs. 2.4->2.6 or 2.8->+; ie the 2.8 release was more of a "finish
2.6" release than a full new feature release.

but just my impression,
Hamish

Hamish wrote:

Jarek Jasiewicz wrote:
  

possible reason problme occures when both wxPython 2.6 and 2.8 are installed. Some aplications requiers wx2.6 as thier dependiency
If only 2.8 is installed wxgrass works
I don't know if it is the reason but it occurs
maybe it is if 2.6 is installed AFTER 2.8?
    
from my very small understanding of wx, the differences between 2.6 and
2.8 are small*, so aplications which require wx2.6 should be quickly
ported to 2.8, and the problem goes away.

[*] vs. 2.4->2.6 or 2.8->+; ie the 2.8 release was more of a "finish
2.6" release than a full new feature release.

but just my impression,
Hamish
  

Yes, they are generally compatibile, but it is problem of dependency construcion. You have installed wx2.8, but if you want to install some application it will check if wx2.6 is installed and generally, if not - install it

generally now there is no package on ubuntu feisty dependend on wx2.8 all depend on wx2.6, and what more, 2.8 is in conflict with 2.6 - they cannot exist together

so suggestion to developers of wxGRASS: I don't know when wxPython interface has to be publish to public tests - i.e to official unstable branch, but maybe the dependency on wx2.8 shall to be verified??

greetings
Jarek

Jarek,

On 6/4/07 1:03 AM, "Jaros³aw Jasiewicz" <jarekj@amu.edu.pl> wrote:

Thanks Michel

I tested it more, and I confirm: having 2.6 cousing problmes with
wx.combo, but this not allow install aplications depending on wxPython2.6
The only solution is to install 2.6 on very fresh system, next 2.8 next
other aplication. But At least two aplications on Ubuntu installed from
repos (for examle wxGlade and pgAdmin3 if installed after) made wx2.6
default

I don't know if idea of depending wxGRASS on at least 2.8.1 is good idea
(I red this in last Jachym article on his page). Generally most ubuntu
application are dependend on wx2.6.

As Hamish says, 2.8 is largely a bug fix for 2.6. However, there are a few
new controls (or slightly modified versions of existing ones).

The reason for depending on 2.8.x is that once we go to serious production
testing and use, the version of wxPython may well get defacto frozen because
of the need to maintain backward compatibility for GRASS within a version
number. So we're developing in the most current version so that we don't
start out a couple versions behind when we go to widespread use.

I don't know if following example is
good but may give you addational asspumtion:
Probably every grass user know pgadmin3 (postgreSQL manager) for now in
ubuntu repositories is version 1.4.3 depending on wx2.6. I asked
developers why not 1.6.1 wchich is more advanced. It is because, 1.6.1
is dependend on wx2.8, ad as long as they will not be sure if wx2.8 is
fully compatibile with other aplications they will not add 1.6.1

AFAICT, 2.8 is fully backward compatible with 2.6. I ran into the version
problem with wxGlade, but found out that it is necessary to change only a
line or two to run with 2.8. Even easier, you can simply download the
wxGlade source code and use it. Because it's all in wxPython, there is
nothing to compile. Just build it and run from "source".

I don't know about pgadmin3. I thought that was in PHP rather than wxPython.
If in wxPython, however, you probably only need to find the place where it
check (and requires) 2.6 and change it to 2.8. Since wxPython files are all
text files, this should be pretty easy.

Hope this is helpful

Michael

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

Michael Barton wrote:

Jarek,

On 6/4/07 1:03 AM, "Jaros³aw Jasiewicz" <jarekj@amu.edu.pl> wrote:

Thanks Michel

I tested it more, and I confirm: having 2.6 cousing problmes with
wx.combo, but this not allow install aplications depending on wxPython2.6
The only solution is to install 2.6 on very fresh system, next 2.8 next
other aplication. But At least two aplications on Ubuntu installed from
repos (for examle wxGlade and pgAdmin3 if installed after) made wx2.6
default

I don't know if idea of depending wxGRASS on at least 2.8.1 is good idea
(I red this in last Jachym article on his page). Generally most ubuntu
application are dependend on wx2.6.
    
As Hamish says, 2.8 is largely a bug fix for 2.6. However, there are a few
new controls (or slightly modified versions of existing ones).

The reason for depending on 2.8.x is that once we go to serious production
testing and use, the version of wxPython may well get defacto frozen because
of the need to maintain backward compatibility for GRASS within a version
number. So we're developing in the most current version so that we don't
start out a couple versions behind when we go to widespread use.

I don't know if following example is
good but may give you addational asspumtion:
Probably every grass user know pgadmin3 (postgreSQL manager) for now in
ubuntu repositories is version 1.4.3 depending on wx2.6. I asked
developers why not 1.6.1 wchich is more advanced. It is because, 1.6.1
is dependend on wx2.8, ad as long as they will not be sure if wx2.8 is
fully compatibile with other aplications they will not add 1.6.1
    
AFAICT, 2.8 is fully backward compatible with 2.6. I ran into the version
problem with wxGlade, but found out that it is necessary to change only a
line or two to run with 2.8. Even easier, you can simply download the
wxGlade source code and use it. Because it's all in wxPython, there is
nothing to compile. Just build it and run from "source".

I don't know about pgadmin3. I thought that was in PHP rather than wxPython.
If in wxPython, however, you probably only need to find the place where it
check (and requires) 2.6 and change it to 2.8. Since wxPython files are all
text files, this should be pretty easy.

Hope this is helpful

Michael

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

Thanks for message
I use wxglade 0.5 "from source" it run fine without any modification. I give it only as a example ....
pgadmin3 is not php (this is phppgadmin) it is binary application just dependend on wx2.6 newest pgadmin3 is dependend on wx2.8 nad there are huge problem with its compilation on ubuntu just due to wx2.8 (this is information from pgadmin3, developers I don't ask anybody here how to solve this :)) )

see my next to message on wx2.6 and 2.8 conflict in dependences on ubuntu (and probably other linux distros) For now there is no package dependend on wx2.8 - I only point that depending grass on wx2.8 may conflict with other ubuntu (and other distro) dependencies in next to 12 month - it probably won't be a problem if realase is plannded later
greetings
Jarek