Can't build RPM for wxPython (openSUSE 11.1)

Hello,

Last November I posted about this problem:

sib@Elend ~ $ python
Python 2.5.2 (r252:60911, Nov 1 2008, 12:05:29)
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import wx
wx.__version__

'2.8.9.1'

app = wx.App()
rect1 = wx.Rect(0, 50, 10, 100)
rect2 = wx.Rect(0, 25, 50, 200)
wx.IntersectRect(rect1, rect2)

Speicherzugriffsfehler
sib@Elend ~ $

With a SUSE 11.0 live CD this code worked as it should, so I thought the reason might be the old gcc version used by Gentoo.

Now I changed to openSUSE 11.1, using Python 2.6 and wxPython 2.8.8, and, again, only with new package versions:

sib@Elend:~> python
Python 2.6 (r26:66714, Dec 3 2008, 06:05:48)
[GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import wx
wx.__version__

'2.8.8.1'

app = wx.App()
rect1 = wx.Rect(0, 50, 10, 100)
rect2 = wx.Rect(0, 25, 50, 200)
wx.IntersectRect(rect1, rect2)

Speicherzugriffsfehler
sib@Elend:~>

So I got wxPython2.8-2.8.9.1-1.src.rpm from the wxPython website and tried to build a rpm from that:

rpmbuild --rebuild --define 'pyver 2.6' wxPython2.8-2.8.9.1-1.src.rpm

That ended with this error message:

...
running build_ext
running install
running build
running build_py
running install_lib
running install_data
copying src/wx.pth -> /var/tmp/wxPython-buildroot/usr/local/lib/python2.6/site-packages/
running install_egg_info
Writing /var/tmp/wxPython-buildroot/usr/local/lib/python2.6/site-packages/wxPython_common-2.8.9.1-py2.6.egg-info
+ rm /var/tmp/wxPython-buildroot/usr/lib/wxPython-2.8.9.1-gtk2-unicode/bin/wx-config
+ strip '/var/tmp/wxPython-buildroot/usr/lib*/python2.6/site-packages/wx-2.8*-gtk2-unicode/wx/*.so'
strip: '/var/tmp/wxPython-buildroot/usr/lib*/python2.6/site-packages/wx-2.8*-gtk2-unicode/wx/*.so': No such file
error: Bad exit status from /var/tmp/rpm-tmp.85200 (%install)

RPM build errors:
    user robind does not exist - using root
    group robind does not exist - using root
    user robind does not exist - using root
    group robind does not exist - using root
    Bad exit status from /var/tmp/rpm-tmp.85200 (%install)

I hope I copied enough from the very lengthy output of the rpmbuild command. What did I do wrong?

Sibylle

···

_______________________________________________________________________
Sensationsangebot verlängert: WEB.DE FreeDSL - Telefonanschluss + DSL
für nur 16,37 Euro/mtl.!* http://dsl.web.de/?ac=OM.AD.AD008K15039B7069a

Hello Sibylle,

I cannot answer the second part of your question (building wxPython from the rpm) but I looked at least into the first part.

Here is my own dialog under IDLE:

import wx
wx.version
‘2.8.8.1’

app = wx.App(False)
r1 = wx.Rect(0, 50, 10, 100)
r2 = wx.Rect(0, 25, 50, 200)
r3 = wx.IntersectRect(r1, r2)

r3.height
100

r3.width
10

r3.x
0

r3.y
50

r3 == r1
True

As you can see, I have the earlier version (2.8.8.1) rather than the later (2.8.9.1). I’m running Python 2.5.2 on Windows XP Pack 3. However:

  1. I wrote app = wx.App(False) because I tried the usual wx.App() - as you did - and it crashed. By writing wx.App(False) there is no redirection of the standard output / standard error into an independent window. So, I do believe there is something wrong in that case. After a while, the stdout/error displyas “Not Responding”.

  2. I write r3 = wx.IntersectRect(r1, r2). If you don’t do this there is no name to allocate the function’s return. And you can then use r3 and sees its properties like width and height.

  3. As you can see, with the data you have chosen, the intersection (r3) is exactly r1 because r1 is within r2. I guess you have seen the various ways of instanciating a rectangle: rect = wx.Rect(0, 50, 10, 100) is different from rect = wx.Rect((0,50), (10, 100)). As you may know, anytime there is a wx.Position or wx.Size object you can substitute it by a tuple (p, q).

Sorry for not being of further help but I’m too new in Python and wx.Python.

Regards, Rene

···

On Mon, Jan 5, 2009 at 4:23 PM, Sibylle Koczian nulla.epistola@web.de wrote:

Hello,

Last November I posted about this problem:

sib@Elend ~ $ python
Python 2.5.2 (r252:60911, Nov 1 2008, 12:05:29)

[GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

import wx
wx.version
‘2.8.9.1’

app = wx.App()
rect1 = wx.Rect(0, 50, 10, 100)
rect2 = wx.Rect(0, 25, 50, 200)
wx.IntersectRect(rect1, rect2)
Speicherzugriffsfehler
sib@Elend ~ $

With a SUSE 11.0 live CD this code worked as it should, so I thought the reason might be the old gcc version used by Gentoo.

Now I changed to openSUSE 11.1, using Python 2.6 and wxPython 2.8.8, and, again, only with new package versions:

sib@Elend:~> python
Python 2.6 (r26:66714, Dec 3 2008, 06:05:48)
[GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

import wx
wx.version
‘2.8.8.1’

app = wx.App()
rect1 = wx.Rect(0, 50, 10, 100)
rect2 = wx.Rect(0, 25, 50, 200)
wx.IntersectRect(rect1, rect2)

Speicherzugriffsfehler
sib@Elend:~>

So I got wxPython2.8-2.8.9.1-1.src.rpm from the wxPython website and tried to build a rpm from that:

rpmbuild --rebuild --define ‘pyver 2.6’ wxPython2.8-2.8.9.1-1.src.rpm

That ended with this error message:


running build_ext
running install
running build
running build_py
running install_lib
running install_data
copying src/wx.pth -> /var/tmp/wxPython-buildroot/usr/local/lib/python2.6/site-packages/

running install_egg_info
Writing /var/tmp/wxPython-buildroot/usr/local/lib/python2.6/site-packages/wxPython_common-2.8.9.1-py2.6.egg-info

  • rm /var/tmp/wxPython-buildroot/usr/lib/wxPython-2.8.9.1-gtk2-unicode/bin/wx-config

  • strip ‘/var/tmp/wxPython-buildroot/usr/lib*/python2.6/site-packages/wx-2.8*-gtk2-unicode/wx/.so’
    strip: '/var/tmp/wxPython-buildroot/usr/lib
    /python2.6/site-packages/wx-2.8*-gtk2-unicode/wx/*.so’: No such file

error: Bad exit status from /var/tmp/rpm-tmp.85200 (%install)

RPM build errors:
user robind does not exist - using root
group robind does not exist - using root
user robind does not exist - using root

group robind does not exist - using root
Bad exit status from /var/tmp/rpm-tmp.85200 (%install)

I hope I copied enough from the very lengthy output of the rpmbuild command. What did I do wrong?

Sibylle


Sensationsangebot verlängert: WEB.DE FreeDSL - Telefonanschluss + DSL
für nur 16,37 Euro/mtl.!* http://dsl.web.de/?ac=OM.AD.AD008K15039B7069a


wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

Sibylle Koczian wrote:

Hello,

Last November I posted about this problem:

...

With a SUSE 11.0 live CD this code worked as it should, so I thought the reason might be the old gcc version used by Gentoo.

Now I changed to openSUSE 11.1, using Python 2.6 and wxPython 2.8.8, and, again, only with new package versions:

sib@Elend:~> python
Python 2.6 (r26:66714, Dec 3 2008, 06:05:48)
[GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import wx
wx.__version__

'2.8.8.1'

app = wx.App()
rect1 = wx.Rect(0, 50, 10, 100)
rect2 = wx.Rect(0, 25, 50, 200)
wx.IntersectRect(rect1, rect2)

Speicherzugriffsfehler
sib@Elend:~>

So I got wxPython2.8-2.8.9.1-1.src.rpm from the wxPython website and tried to build a rpm from that:

rpmbuild --rebuild --define 'pyver 2.6' wxPython2.8-2.8.9.1-1.src.rpm

That ended with this error message:

Sibylle,

the newest wx packages are available on Packman.
You can include the Packman repository with yast/software
repositories/add/community repositories.

Here is the link to packman:
http://packman.links2linux.de/package/wxwidgets

Uwe

Uwe Grauer wrote:

Sibylle,

the newest wx packages are available on Packman.
You can include the Packman repository with yast/software
repositories/add/community repositories.

Here is the link to packman:
http://packman.links2linux.de/package/wxwidgets

Uwe

Bad news:
I just tested your code in my virtualbox test-vm running opensuse 11.1
with python-wxGTK 2.8.9.1 from packman - and it segfaults.

I'm glad i didn't upgrade my opensuse 11.0 box.
And i will not upgrade until i see a stabel KDE4 on opensuse 11.1.

Stick with opensuse 11.0 too. It's much better than the brand new 11.1
which will need a long time to get that stable.

Uwe

Rene Heymans wrote:

Hello Sibylle,
I cannot answer the second part of your question (building wxPython from the rpm) but I looked at least into the first part.
Here is my own dialog under IDLE:
  >>> import wx
>>> wx.__version__
'2.8.8.1'
>>> app = wx.App(False)
>>> r1 = wx.Rect(0, 50, 10, 100)
>>> r2 = wx.Rect(0, 25, 50, 200)
>>> r3 = wx.IntersectRect(r1, r2)
>>> r3.height
100
>>> r3.width
10
>>> r3.x
0
>>> r3.y
50
>>> r3 == r1
True
>>>
As you can see, I have the earlier version (2.8.8.1) rather than the later (2.8.9.1). I'm running Python 2.5.2 on Windows XP Pack 3. However:

On Windows at least that was a Py2.6 specific problem, and has been fixed in the SVN version of the code.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Sibylle Koczian wrote:

...
running build_ext
running install
running build
running build_py
running install_lib
running install_data
copying src/wx.pth -> /var/tmp/wxPython-buildroot/usr/local/lib/python2.6/site-packages/
running install_egg_info
Writing /var/tmp/wxPython-buildroot/usr/local/lib/python2.6/site-packages/wxPython_common-2.8.9.1-py2.6.egg-info
+ rm /var/tmp/wxPython-buildroot/usr/lib/wxPython-2.8.9.1-gtk2-unicode/bin/wx-config
+ strip '/var/tmp/wxPython-buildroot/usr/lib*/python2.6/site-packages/wx-2.8*-gtk2-unicode/wx/*.so'
strip: '/var/tmp/wxPython-buildroot/usr/lib*/python2.6/site-packages/wx-2.8*-gtk2-unicode/wx/*.so': No such file
error: Bad exit status from /var/tmp/rpm-tmp.85200 (%install)

I hope I copied enough from the very lengthy output of the rpmbuild command. What did I do wrong?

Look in site-packages in the build dir ('/var/tmp/wxPython-buildroot/usr/lib*/python2.6/site-packages/). Is there a wx-* folder there? Does it have any *.so files under it? If not, are they located somewhere else in the build tree?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!