problem with running demo.py version 2.8.10.2- segmentation fault

Hi I am sure I am running wxpython version 2.8.10.2
I compiled this myself without any erros using the build scripts.

Now I can run

python -c “import wx ; print wx.version

returns :

2.8.10.2

I have pythongtk version 2.8 installed on my Ubuntu hardy machine.

However, when I try to run the demo.py from wxwidgets-read-only/wxPython/demo

I get a segmentation fault and erorr :

(python:28570): GLib-GObject-WARNING **: cannot register existing type `GtkPizza’

(python:28570): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)’ failed

(python:28570): Gtk-CRITICAL **: gtk_container_add: assertion `GTK_IS_WIDGET (widget)’ failed
Segmentation fault

Curiously , I can run the individual demos one by one without any problem. However thats a pain because the demo.py listed all the demos ina neatly browseable window.

~/wxwidgets-read-only/wxPython/demo$ python GIFAnimationCtrl.py
wx.version: 2.8.10.2 (gtk2-ansi)
pid: 28575

.My demo.py reads
#!/usr/bin/python
#import wxversion
#wxversion.select(“2.8.10.2”)
import Main
Main.main()

If I force the selection of wx version by uncommenting the wxversion.select line. I get a non-sensical window popup error saying that I am using 2.8.7.,1 but the demos are written for 2.8.10.2

Your help in geting my demo.py running will be much appreciated
Thanks
Hari

hari jayaram wrote:

Hi I am sure I am running wxpython version 2.8.10.2
I compiled this myself without any erros using the build scripts.

Now I can run

python -c "import wx ; print wx.__version__"

returns :

2.8.10.2

I have pythongtk version 2.8 installed on my Ubuntu hardy machine.

However, when I try to run the demo.py from wxwidgets-read-only/wxPython/demo

I get a segmentation fault and erorr :
[...] <http://groups.google.com/group/wxPython-users?hl=en&gt;

wxPython 2.8.10.2? As far as I know, there is no such release.
wxpython 2.8.10.2 - Google Suche only returns 9 results, some of which mention an incorrect versioning being applied to some Linux packages.

Perhaps you could install wx from a package that is pre-built by following these simple instructions: InstallingOnUbuntuOrDebian - wxPyWiki

···

--
Steven Sproat, BSc
http://www.basicrpg.com/

Thanks Steven , I did install as indicated on http://wiki.wxpython.org/InstallingOnUbuntuOrDebian .
I now have the offical 2.8.10.1 release

The reason I have the release number specified as 2.8.10.2 was because I compiled it from an svn repository.
After installing 2.8.10.2 even though the svn compiled 2.8.10.2 module is the first in my PYTHONPATH, I am still seeing an error saying that I am running 2.8.10.1 (which apt installed) , but the demo was runing using 2.8.10.2

Just wondering demo.py in the wxwidgets distribution was overruling my pythonpath declaration and working using a system wxpython 2.8.10.1 and not wxpython 2.8.10 the top entity in my pythonpath

Thanks
Hari

···

On Wed, Jan 27, 2010 at 9:38 PM, Steven Sproat sproaty@gmail.com wrote:

hari jayaram wrote:

Hi I am sure I am running wxpython version 2.8.10.2

I compiled this myself without any erros using the build scripts.

Now I can run

python -c “import wx ; print wx.version

returns :

2.8.10.2

I have pythongtk version 2.8 installed on my Ubuntu hardy machine.

However, when I try to run the demo.py from wxwidgets-read-only/wxPython/demo

I get a segmentation fault and erorr :

[…] <http://groups.google.com/group/wxPython-users?hl=en>
wxPython 2.8.10.2? As far as I know, there is no such release.

http://www.google.com/search?q=wxpython+2.8.10.2 only returns 9 results, some of which mention an incorrect versioning being applied to some Linux packages.

Perhaps you could install wx from a package that is pre-built by following these simple instructions: http://wiki.wxpython.org/InstallingOnUbuntuOrDebian

Steven Sproat, BSc

http://www.basicrpg.com/

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

Double check what the sys.path becomes after the Python startup code has executed. The .pth files and some other things can modify the path such that things are inserted before those that are on PTYHONPATH. Running this command will help:

     python -c "import sys,pprint; pprint.pprint(sys.path)"

···

On 1/28/10 10:41 AM, hari jayaram wrote:

Thanks Steven , I did install as indicated on
InstallingOnUbuntuOrDebian - wxPyWiki .
I now have the offical 2.8.10.1 release

The reason I have the release number specified as 2.8.10.2 was because I
compiled it from an svn repository.
After installing 2.8.10.2 even though the svn compiled 2.8.10.2 module
is the first in my PYTHONPATH, I am still seeing an error saying that I
am running 2.8.10.1 (which apt installed) , but the demo was runing
using 2.8.10.2

Just wondering demo.py in the wxwidgets distribution was overruling my
pythonpath declaration and working using a system wxpython 2.8.10.1 and
not wxpython 2.8.10 the top entity in my pythonpath

--
Robin Dunn
Software Craftsman

Hi Robin ,
Thanks for your reply. I still cannot get my system python to not give
me the error message "you are running 2.8.10.1 but these demos are
written for 2.8.10.2".
If I pretty print the path using
python -c "import sys,pprint; pprint.pprint(sys.path)"

I clearly get that the self installed subversion wxpython version
2.8.10.2 is the first item in my PYTHONPATH.

But despite this running the demo.py in wxPython/demo directory makes
it popup the error message saying it is running 2.8.10.1 ( the ubuntu
system wx which I installed to get around this popup). This is no big
deal , but I am hoping to understand why python is not loading the
module from the right place.

Also and contradictorily , running the python shell and importing
python , makes it read the correct wxpython installation.

ubuntu41:~/wxwidgets-read-only/wxPython/demo$ python
Python 2.5.2 (r252:60911, Jan 20 2010, 23:14:04)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import wx
print wx.__version__

2.8.10.2

So I still dont know why it happens

Hari

···

On Thu, Jan 28, 2010 at 2:51 PM, Robin Dunn <robin@alldunn.com> wrote:

On 1/28/10 10:41 AM, hari jayaram wrote:

Thanks Steven , I did install as indicated on
InstallingOnUbuntuOrDebian - wxPyWiki .
I now have the offical 2.8.10.1 release

The reason I have the release number specified as 2.8.10.2 was because I
compiled it from an svn repository.
After installing 2.8.10.2 even though the svn compiled 2.8.10.2 module
is the first in my PYTHONPATH, I am still seeing an error saying that I
am running 2.8.10.1 (which apt installed) , but the demo was runing
using 2.8.10.2

Just wondering demo.py in the wxwidgets distribution was overruling my
pythonpath declaration and working using a system wxpython 2.8.10.1 and
not wxpython 2.8.10 the top entity in my pythonpath

Double check what the sys.path becomes after the Python startup code has
executed. The .pth files and some other things can modify the path such
that things are inserted before those that are on PTYHONPATH. Running this
command will help:

python -c "import sys,pprint; pprint.pprint(sys.path)"

--
Robin Dunn
Software Craftsman
http://wxPython.org

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

hari jayaram wrote:

Hi Robin ,
Thanks for your reply. I still cannot get my system python to not give
me the error message "you are running 2.8.10.1 but these demos are
written for 2.8.10.2".
If I pretty print the path using
python -c "import sys,pprint; pprint.pprint(sys.path)"

I clearly get that the self installed subversion wxpython version
2.8.10.2 is the first item in my PYTHONPATH.

But despite this running the demo.py in wxPython/demo directory makes
it popup the error message saying it is running 2.8.10.1 ( the ubuntu
system wx which I installed to get around this popup). This is no big
deal , but I am hoping to understand why python is not loading the
module from the right place.

Also and contradictorily , running the python shell and importing
python , makes it read the correct wxpython installation.

ubuntu41:~/wxwidgets-read-only/wxPython/demo$ python
Python 2.5.2 (r252:60911, Jan 20 2010, 23:14:04)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
  

Did you try the specific 2.8.10.1 demo?
http://downloads.sourceforge.net/wxpython/wxPython-demo-2.8.10.1.tar.bz2

Interestingly , when I launch the 2.8.10.1 demos that I downloaded I
get the opposite error i.e It says I am running 2.8.10.2 and trying to
launch the 2.8.10.1 demos and now I get a segmentation fault ( see
below).
So with the 2.8.10.2 which is the first on my PYTHONPATH , I get
1) When I run the 2.8.10.2 demos it complains I am running the demos
with version 2.8.10.1
2) When I run the 2.8.10.1 demos it contradictorily compains the
opposite ,i.e I am running the demos with version 2.8.10.2 and crashes
with a segmantation fault.

Any idea why the error messages are contradictory?

The seg fault msg is listed below
Thanks
Hari

ubuntu41:~$ python wxPython-2.8.10.1/demo/demo.py

(python:7975): GLib-GObject-WARNING **: cannot register existing type `GtkPizza'

(python:7975): GLib-GObject-CRITICAL **: g_object_new: assertion
`G_TYPE_IS_OBJECT (object_type)' failed

(python:7975): Gtk-CRITICAL **: gtk_container_add: assertion
`GTK_IS_WIDGET (widget)' failed
Segmentation fault

···

On Wed, Feb 3, 2010 at 6:11 PM, Steven Sproat <sproaty@gmail.com> wrote:

hari jayaram wrote:

Hi Robin ,
Thanks for your reply. I still cannot get my system python to not give
me the error message "you are running 2.8.10.1 but these demos are
written for 2.8.10.2".
If I pretty print the path using
python -c "import sys,pprint; pprint.pprint(sys.path)"

I clearly get that the self installed subversion wxpython version
2.8.10.2 is the first item in my PYTHONPATH.

But despite this running the demo.py in wxPython/demo directory makes
it popup the error message saying it is running 2.8.10.1 ( the ubuntu
system wx which I installed to get around this popup). This is no big
deal , but I am hoping to understand why python is not loading the
module from the right place.

Also and contradictorily , running the python shell and importing
python , makes it read the correct wxpython installation.

ubuntu41:~/wxwidgets-read-only/wxPython/demo$ python
Python 2.5.2 (r252:60911, Jan 20 2010, 23:14:04)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

Did you try the specific 2.8.10.1 demo?
Download wxPython-demo-2.8.10.1.tar.bz2 (wxPython)

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

Are you using the same Python each time? For example, is it possible that you are using Python 2.5 with one and 2.6 with the other?

···

On 2/3/10 6:34 PM, hari jayaram wrote:

Interestingly , when I launch the 2.8.10.1 demos that I downloaded I
get the opposite error i.e It says I am running 2.8.10.2 and trying to
launch the 2.8.10.1 demos and now I get a segmentation fault ( see
below).
So with the 2.8.10.2 which is the first on my PYTHONPATH , I get
1) When I run the 2.8.10.2 demos it complains I am running the demos
with version 2.8.10.1
2) When I run the 2.8.10.1 demos it contradictorily compains the
opposite ,i.e I am running the demos with version 2.8.10.2 and crashes
with a segmantation fault.

Any idea why the error messages are contradictory?

--
Robin Dunn
Software Craftsman