You are not logged in.

#1 2007-05-29 12:57:11

G_Syme
Member
Registered: 2007-01-04
Posts: 83

[SOLVED] strange wxpython problems...

Hi,

I'm running Arch64 and I have major problems running taskcoach and faces. Both programs depend on wxpython, and both build without problems (taskcoach from AUR and faces form a PKGBUILD I've tried to make myself).

taskcoach did run fine a few months ago before python-2.5 came out. But as it runs without problems for Arch (i686) users, I guess that the problem lies in one of the (new) *python* packages, perhaps wxpython, because it seems to be the only common dependency for both taskcoach and faces.

I've tried to rebuild wxpython, and even to upgrade to wxpython-2.8.4.0 and wxgtk-2.8.4. But the result is still the same. Both programs compile fine but crash with the following (quite similar) errors:

$ taskcoach.py
Traceback (most recent call last):
  File "/usr/bin/taskcoach.py", line 93, in <module>
    start()
  File "/usr/bin/taskcoach.py", line 84, in start
    app = App(options, args)
  File "/usr/bin/taskcoach.py", line 33, in __init__
    self.init(**kwargs)
  File "/usr/bin/taskcoach.py", line 65, in init
    settings, splash)
  File "/usr/lib/python2.5/site-packages/taskcoachlib/gui/mainwindow.py", line 54, in __init__
    self.createWindowComponents()
  File "/usr/lib/python2.5/site-packages/taskcoachlib/gui/mainwindow.py", line 68, in createWindowComponents
    self.initLayout()
  File "/usr/lib/python2.5/site-packages/taskcoachlib/gui/mainwindow.py", line 88, in initLayout
    self._sizer.Add(self.viewer, proportion=1, flag=wx.EXPAND)
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 12203, in Add
    return _core_.Sizer_Add(*args, **kwargs)
TypeError: wx.Window, wx.Sizer, wx.Size, or (w,h) expected for item
$ faces
Traceback (most recent call last):
  File "/usr/bin/faces", line 5, in <module>
    sys.exit(main())
  File "/usr/lib/python2.5/site-packages/faces/gui/plangui.py", line 1649, in main
    app.add_model(app.session)
  File "/usr/lib/python2.5/site-packages/metapie/gui/controller.py", line 900, in add_model
    active=activate)
  File "/usr/lib/python2.5/site-packages/metapie/gui/menupanel.py", line 253, in insert_title
    content = _ContentPanel(self, cid)
  File "/usr/lib/python2.5/site-packages/metapie/gui/menupanel.py", line 178, in __init__
    sizer.Add(_SpacePanel(self), 1, flag=wx.EXPAND)
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 12203, in Add
    return _core_.Sizer_Add(*args, **kwargs)
TypeError: wx.Window, wx.Sizer, wx.Size, or (w,h) expected for item

Does anybody have the same issues or perhaps a solution to this problem?

Thanks in advance!

Last edited by G_Syme (2007-07-20 11:02:46)


The courageous enter dark caves alone.
The clever send in the courageous first.
The cleverest wait behind the clever.

Offline

#2 2007-07-20 11:01:44

G_Syme
Member
Registered: 2007-01-04
Posts: 83

Re: [SOLVED] strange wxpython problems...

G_Syme wrote:

[...] I've tried to rebuild wxpython, and even to upgrade to wxpython-2.8.4.0 and wxgtk-2.8.4. But the result is still the same. [...]

Now, after a few months, I've given it another try, and now the upgrade to wxpython-2.8.4.0 and wxgtk-2.8.4 has made both taskcoach and faces run once again. smile
Probably there were also other packages causing the problem which have been updated in the meantime...

Either way, problem solved.


The courageous enter dark caves alone.
The clever send in the courageous first.
The cleverest wait behind the clever.

Offline

#3 2007-08-06 14:30:08

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: [SOLVED] strange wxpython problems...

Hi G_Syme, I'm having the same problem... Have you rebuilt from abs or is there a pkg already built somewhere?
thanx

Offline

#4 2007-08-06 19:07:15

G_Syme
Member
Registered: 2007-01-04
Posts: 83

Re: [SOLVED] strange wxpython problems...

Unfortunately both wxgtk and wxpython lack a maintainer at the moment...

Here are the modified PKGBUILDs from abs which work for me without problems:

pkgname=wxgtk
pkgver=2.8.4
pkgrel=1
pkgdesc="wxGTK - GTK+ implementation of wxWidgets API for GUI"
arch=('i686' 'x86_64')
url="http://wxwidgets.org"
license=('LGPL')
depends=('gtk2>=2.10.9' 'mesa')
source=(http://downloads.sourceforge.net/wxwindows/wxGTK-$pkgver.tar.bz2)
md5sums=('22e42c1601d9759530c875ffa2c3c554')
sha512sums=('655678285e50d672df58672455f17cf607905ef5a2c7940e0ffbd700c08a48bf0aa07067a8c2f3519e80d62807cfd12f0347727a1561d13b4702e5a99157fccb')

build() {
  cd ${startdir}/src/wxGTK-$pkgver
  autoconf
  ./configure --prefix=/usr --with-gtk=2 --with-opengl --enable-unicode \
      --without-gnomeprint --disable-optimize || return 1
  make || return 1
  make -C locale allmo
  make DESTDIR=${startdir}/pkg install || return 1
  cd contrib/src
  make || return 1
  make DESTDIR=${startdir}/pkg install || return 1
}
pkgname=wxpython
pkgver=2.8.4.0
pkgrel=1
force=y
pkgdesc="A wxWidgets GUI toolkit for Python."
arch=('i686' 'x86_64')
license=('LGPL')
url="http://www.wxpython.org"
depends=('wxgtk>=2.8.0.1' 'python>=2.5')
source=(http://downloads.sourceforge.net/wxpython/wxPython-src-${pkgver}.tar.bz2)
md5sums=('424f5a569635646eb805adfe4e4dd9ec')
sha512sums=('aad0e0a46987967d4908ddd20c13d3d851041bb93f5fb4372ebf4fe838fb4d8384245aeb442b936286b6573c04c34c56ac056e8cc9a001529d0b609020bc0e8c')

build() {
  cd ${startdir}/src/wxPython-src-${pkgver}/wxPython
  python setup.py \
    WXPORT=gtk2 \
    UNICODE=1 \
    build install --root=${startdir}/pkg
}

Good luck!


The courageous enter dark caves alone.
The clever send in the courageous first.
The cleverest wait behind the clever.

Offline

#5 2007-08-06 20:33:56

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: [SOLVED] strange wxpython problems...

Thanx it worked.

Offline

Board footer

Powered by FluxBB