compile problems
Michele Petrazzo
michele.petrazzo at unipex.it
Tue Dec 19 06:54:38 PST 2006
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?
Thanks!
Michele
My commands are
#goto dir
cd /opt/wxwidgets2.8-2.8.0.1/wxPython
#Remove the last files
rm -rfv build-gtk2.unicode/temp.linux-i686-2.4/src/gtk/*rich* wx/*ric* =
src/gtk/rich*
#Create with swig the files
swig -Isrc/ -python -c++ -outdir src/gtk/ src/richtext.i
#move that to the right place
mv src/richtext_wrap.cxx src/gtk/richtext_wrap.cpp
#say to python to build
python setup.py build_ext --inplace
#move the compiled files to the default python dir
rm -fv /usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/*ric*
cp -v /opt/wxwidgets2.8-2.8.0.1/wxPython/wx/*ric* =
/usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3273 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.wxwidgets.org/pipermail/wxpython-dev/attachments/2006121=
9/2da2ee09/smime.bin
More information about the wxpython-dev
mailing list