Hi all,
So I finally got things loaded. I used the RPMs for fc7 py2.5 and used the
ansi versions:
wxPython-common-gtk2-ansi-2.8.9.1-fc7_py2.5.i386.rpm*
wxPython2.8-devel-gtk2-ansi-2.8.9.1-fc7_py2.5.i386.rpm*
wxPython2.8-gtk2-ansi-2.8.9.1-fc7_py2.5.i386.rpm*
I did:
rpm -i -f --nodeps *rpm
And everything loaded.
I previously rebuilt python2.5 --without-unicode
I started python2.5 and did
sys.path
['', '/usr/local/lib/python25.zip', '/usr/local/lib/python2.5',
'/usr/local/lib/python2.5/plat-linux2', '/usr/local/lib/python2.5/lib-tk',
'/usr/local/lib/python2.5/lib-dynload',
'/usr/local/lib/python2.5/site-packages',
'/usr/local/lib/python2.5/site-packages/wx-2.8-gtk2-ansi',
'/MNSN/Temp/pySrc/utilSrc']
which looks correct
then I did
os.chdir("/usr/local/src/wxPython-src-2.8.9.1/wxPython/demo/")
execfile("demo.py")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "demo.py", line 3, in <module>
import Main
File "/usr/local/src/wxPython-src-2.8.9.1/wxPython/demo/Main.py", line 34, in
<module>
import wx
File
"/usr/local/lib/python2.5/site-packages/wx-2.8-gtk2-ansi/wx/__init__.py", line
45, in <module>
from wx._core import *
File "/usr/local/lib/python2.5/site-packages/wx-2.8-gtk2-ansi/wx/_core.py",
line 4, in <module>
import _core_
ImportError:
/usr/local/lib/python2.5/site-packages/wx-2.8-gtk2-ansi/wx/_core_.so: undefined
symbol: PyUnicodeUCS4_AsEncodedString
how do I get rid of this?
I tried modifying demo.py by adding the lines
import wxversion
wxversion.select('2.8-gtk2-ansi')
to Main.py but that had no effect.
I tried rebuilding the wxPython package from source being sure that it was only
ansi and I got the following
when I tried to run demo.py
Traceback (most recent call last):
File "demo.py", line 3, in <module>
import Main
File "/usr/local/src/wxPython-src-2.8.9.1/wxPython/demo/Main.py", line 39, in
<module>
import wx
File
"/usr/local/lib/python2.5/site-packages/wx-2.8-gtk2-ansi/wx/__init__.py", line
45, in <module>
from wx._core import *
File "/usr/local/lib/python2.5/site-packages/wx-2.8-gtk2-ansi/wx/_core.py",
line 4, in <module>
import _core_
ImportError: libwx_gtk2ud_richtext-2.8.so.0: cannot open shared object file: No
such file or directory
I'm lost the file libwx_gtk2ud_richtext-2.8.so.0 looks like a unicode double
wide version of the library. There is a libwx_gtk2_richtext-2.8.so.0 library
and if I make the ud a link to it I get another
ImportError: libwx_gtk2ud_aui-2.8.so.0: cannot open shared object file: No such
file or directory
Why is it trying to use the ud libraries I built using unicode NO and did the
setup.py with UNICODE=0
I'm totally lost at this point I've tried loading from RPMs, source, with
unicode4, without unicode
nothing works. when I did --with-unicode=UCS4 in everthing the demo code ran
and immediately crashed with an x11 error BAD_PARAMETER.
Nick
nbuchholz@noao.edu
Day phone: (520) 318-8203
"Time is an illusion, Lunchtime doubly so" - Ford Prefect
Time is an illusion perpetrated by the manufacturers of space.