View previous topic :: View next topic |
Author |
Message |
chrisR Tux's lil' helper
Joined: 16 Sep 2002 Posts: 127 Location: UK
|
Posted: Sun May 04, 2003 1:27 am Post subject: Boa Constructor Starting Problem |
|
|
Hi
I have a problem getting boa-constructor to work.
Python 2.2 is installed of course, I've emerged dev-python/wxpython 2.4.0.2 and dev-utils/boa-constructor 0.1.0_alpha, all seemed well. Created a KDE desktop link to application, to run in a terminal.
'/usr/bin/python2.2' '/usr/lib/python2.2/site-packages/boa/Boa.py'
Error message on desktop, 'flags' is an invalid keyword argument for this function. [OK]
Terminal contents:
Starting Boa Constructor v0.1.0-alpha
importing wxPython
setting user preferences
running main...
Clicking [OK] crashes terminal out.
Any ideas, command line python works, so does pycrust etc.
Regards
|
|
Back to top |
|
|
chrisR Tux's lil' helper
Joined: 16 Sep 2002 Posts: 127 Location: UK
|
Posted: Sun May 04, 2003 1:30 pm Post subject: Boa Constructor Starting Problem |
|
|
A bit more info from the terminal on crashing:
running main...
Traceback (most recent call last):
File "/usr/lib/python2.2/site-packages/boa/Boa.py", line 495, in ?
main()
File "/usr/lib/python2.2/site-packages/boa/Boa.py", line 475, in main
app = BoaApp()
File "/usr/lib/python2.2/site-packages/boa/Boa.py", line 310, in __init__
wxApp.__init__(self, false)
File "/usr/lib/python2.2/site-packages/wxPython/wx.py", line 1742, in __init__ _wxStart(self.OnInit)
File "/usr/lib/python2.2/site-packages/boa/Boa.py", line 321, in OnInit
abt = About.createSplash(None, modTot, fileTot)
File "/usr/lib/python2.2/site-packages/boa/About.py", line 132, in createSplash
return AboutBoxSplash(parent, modTot, fileTot)
File "/usr/lib/python2.2/site-packages/boa/About.py", line 151, in __init__
self.html = Utils.wxUrlClickHtmlWindow(self.blackback, -1, flags=wxCLIP_CHILDREN)
File "/usr/lib/python2.2/site-packages/wxPython/html.py", line 634, in __init__
self.this = apply(htmlc.new_wxHtmlWindow,_args,_kwargs)
TypeError: 'flags' is an invalid keyword argument for this function
Exception exceptions.TypeError: "'NoneType' object is not callable" in ignored
bash-2.05b$
Anyone any ideas? It looks like a python problem with versions maybe? |
|
Back to top |
|
|
Decibels Veteran
Joined: 16 Aug 2002 Posts: 1623 Location: U.S.A.
|
Posted: Wed Jun 11, 2003 3:54 am Post subject: |
|
|
Thought I might find some help, but your having the same problem. I have gtk2 in my compile flags also.
I checked emerge wxPython and wxGTK with -pv and it said +gtk2 and +opengl.
Tried both, still no go, get same error you do. |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Wed Jun 11, 2003 5:12 am Post subject: |
|
|
I use boa with wxPython 2.4.0.7, -gtk2. wxpython doesn't work well with gtk2 according to the author, and its been my experience too (wxStyledText doesn't work).
wxPython 2.4.0.7 is stable for me, I use it daily and the author of boa generally keeps it in sync with the latest wxPython release.
wxGlade seems pretty nice too. |
|
Back to top |
|
|
Decibels Veteran
Joined: 16 Aug 2002 Posts: 1623 Location: U.S.A.
|
Posted: Wed Jun 11, 2003 2:08 pm Post subject: |
|
|
Tried it but still no go.
USE="-gtk2" emerge wxPython
got this:
Code: | In file included from /usr/include/gtk-1.2/gdk/gdk.h:31,
from /usr/include/gtk-1.2/gtk/gtk.h:31,
from src/helpers.cpp:26:
/usr/include/gtk-1.2/gdk/gdktypes.h:52: conflicting types for `typedef gulong
GdkAtom'
/usr/include/wx/defs.h:2050: previous declaration as `typedef struct
_GdkAtom*GdkAtom'
/usr/include/gtk-1.2/gdk/gdktypes.h:57: conflicting types for `typedef struct
_GdkWindow GdkWindow'
/usr/include/wx/defs.h:2051: previous declaration as `typedef struct
_GdkDrawable GdkWindow'
/usr/include/gtk-1.2/gdk/gdktypes.h:58: conflicting types for `typedef struct
_GdkWindow GdkPixmap'
/usr/include/wx/defs.h:2053: previous declaration as `typedef struct
_GdkDrawable GdkPixmap'
/usr/include/gtk-1.2/gdk/gdktypes.h:59: conflicting types for `typedef struct
_GdkWindow GdkBitmap'
/usr/include/wx/defs.h:2052: previous declaration as `typedef struct
_GdkDrawable GdkBitmap'
error: command 'gcc' failed with exit status 1
!!! ERROR: dev-python/wxPython-2.4.0.2 failed.
!!! Function src_compile, Line 53, Exitcode 1
!!! build failed
|
|
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Wed Jun 11, 2003 6:52 pm Post subject: |
|
|
Did you unmerge wxGTK first? Both wxGTK and wxPython will need to be compiled with -gtk2 |
|
Back to top |
|
|
Decibels Veteran
Joined: 16 Aug 2002 Posts: 1623 Location: U.S.A.
|
Posted: Wed Jun 11, 2003 7:41 pm Post subject: |
|
|
just unmerge both and then remerged with "-gtk2" and still boa-constructor fails. Maybe I will try to get the source and build it myself. |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Wed Jun 11, 2003 10:58 pm Post subject: |
|
|
Decibels wrote: | just unmerge both and then remerged with "-gtk2" and still boa-constructor fails. Maybe I will try to get the source and build it myself. |
Quote: | !!! ERROR: dev-python/wxPython-2.4.0.2 failed |
Your last post showed wxPython 2.4.0.2. I'm pretty sure Boa won't work with it. Try 2.4.0.7, if you haven't already. |
|
Back to top |
|
|
Decibels Veteran
Joined: 16 Aug 2002 Posts: 1623 Location: U.S.A.
|
Posted: Thu Jun 12, 2003 2:36 am Post subject: |
|
|
Nope, 2.4.0.7 doesn't work either. For such a unimportant program it sure is persistant and picky. |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
|
Back to top |
|
|
Decibels Veteran
Joined: 16 Aug 2002 Posts: 1623 Location: U.S.A.
|
Posted: Thu Jun 12, 2003 11:07 pm Post subject: |
|
|
I feel your pain! Seriously. Last year lost part of my ear to my dog (former dog). The plastic surgery hurt worse though.
Anyway's. I am going to remerge the newer boa-constructor and the wxPython you suggested and wxGTK all with '-gtk2'.
I am pretty busy writing a program in python and mysql database right now so doing this inbetween. Will post the results when done. |
|
Back to top |
|
|
Decibels Veteran
Joined: 16 Aug 2002 Posts: 1623 Location: U.S.A.
|
Posted: Thu Jun 12, 2003 11:58 pm Post subject: |
|
|
That worked.
Code: | USE="-gtk2" emerge boa-constructor-0.2.3_alpha.ebuild |
after doing the same for the other two.
Code: | USE="-gtk2" emerge wxPython-2.4.0.7.ebuild wxGTK |
Thanks for the help. Now when get the program done I can use it to work on a GUI. |
|
Back to top |
|
|
|