From: "Benjamin Bruheim" on
Hi.

I just compiled wxPython 2.7 and 2.8 CVS under GoboLinux and run into
a problem when I was done compiling. I followed the build instructions
in BUILD.html and added just --enable-unicode.

For some reason wx.pth wouldn't work so I instead made a symbolic link
"wx" pointing to "wx-2.8-gtk2-unicode/wx". This at least made me able
to import wx.

I get this traceback from my demo.py:
raceback (most recent call last):
File "/Programs/WxPython/CVS/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_misc.py",
line 1341, in Notify
self.notify()
File "/Programs/WxPython/CVS/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 13903, in Notify
self.result = self.callable(*self.args, **self.kwargs)
File "/Files/Compile/Sources/wxPython-src-2.6.1.0/wxPython/demo/Main.py",
line 1699, in ShowMain
frame = wxPythonDemo(None, "wxPython: (A Demonstration)")
File "/Files/Compile/Sources/wxPython-src-2.6.1.0/wxPython/demo/Main.py",
line 1309, in __init__
self.LoadDemo(self.overviewText)
File "/Files/Compile/Sources/wxPython-src-2.6.1.0/wxPython/demo/Main.py",
line 1376, in LoadDemo
self.LoadDemoSource()
File "/Files/Compile/Sources/wxPython-src-2.6.1.0/wxPython/demo/Main.py",
line 1394, in LoadDemoSource
self.codePage = DemoCodePanel(self.nb, self)
File "/Files/Compile/Sources/wxPython-src-2.6.1.0/wxPython/demo/Main.py",
line 572, in __init__
wx.RIGHT | wx.LEFT | wx.ALIGN_CENTER_VERTICAL, 5)
File "/Programs/WxPython/CVS/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 11946, in Add
return _core_.Sizer_Add(*args, **kwargs)
TypeError: wx.Window, wx.Sizer, wx.Size, or (w,h) expected for item

item is a StaticText: <wx._controls.StaticText; proxy of <Swig Object
of type 'wxStaticText *' at 0x8510c08> >

I suspect this is a problem with my build, however I am at loss where
to start figuring out what is wrong... I hope anyone can help?

(cross posted to forum. I will post solution there when this is sorted out)

---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org

From: Robin Dunn on
Benjamin Bruheim wrote:
> Hi.
>
> I just compiled wxPython 2.7 and 2.8 CVS under GoboLinux and run into
> a problem when I was done compiling. I followed the build instructions
> in BUILD.html and added just --enable-unicode.
>
> For some reason wx.pth wouldn't work so I instead made a symbolic link
> "wx" pointing to "wx-2.8-gtk2-unicode/wx". This at least made me able
> to import wx.
>
> I get this traceback from my demo.py:
> raceback (most recent call last):
> File
> "/Programs/WxPython/CVS/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_misc.py",


> File "/Files/Compile/Sources/wxPython-src-2.6.1.0/wxPython/demo/Main.py",
> line 572, in __init__
> wx.RIGHT | wx.LEFT | wx.ALIGN_CENTER_VERTICAL, 5)
> File
> "/Programs/WxPython/CVS/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
>
> line 11946, in Add
> return _core_.Sizer_Add(*args, **kwargs)
> TypeError: wx.Window, wx.Sizer, wx.Size, or (w,h) expected for item

The first thing you should try is a newer version of the demo. 2.6.1.0
is 1.5 years old, and you are trying to use it with a brand-new version
of wxPython.

>
> item is a StaticText: <wx._controls.StaticText; proxy of <Swig Object
> of type 'wxStaticText *' at 0x8510c08> >

But even so this should not fail. It would seem to indicate that there
is a problem with the data type data that SWIG maintains. (That's what
is used to know if one swig object (a proxy of a C++ object) is an
instance of a particular type.)

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


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org