[wxPython-dev] compile problems
Robin Dunn
robin at alldunn.com
Tue Dec 19 11:02:22 PST 2006
Michele Petrazzo wrote:
> Hi list,
> I'm trying to make some test for modify and build the richtext
> extension, but I find a lot of problems when I try to recreate the .py
> and the .cpp with swig (I think). All the process seem to work, but when
> I use the new extension created, I receive an error:
>
> >>> import wx
> >>> import wx.richtext
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File
> "/usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/richtext.py",
> line 578, in ?
> class wxRichTextCtrl(_windows.wxScrolledWindow):
> AttributeError: 'module' object has no attribute 'wxScrolledWindow'
>
>
> also if I try to compile the richtext.i without modifications, so I
> think that this is a compile/generating problem. So what are the right
> commands to do for compile wxpyhon?
1. Are you using swig 1.3.29 with my patches applied? See
wxPython/SWIG/README.txt
2. You should just use setup.py to build and install the wxPython
extension modules, including letting it run swig for you. See
wxPython/docs/BUILD.txt
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-dev
mailing list