re:
Are you sure that the python2.4 you excuted was the one
from the RPM and not the one you built yourself?
You are likely right. The machine I ran that on is at home, but
I have a nearly identically configured machine at work, and
loading the 2.4.1 python RPMs, 2.6.0.1 wxPython RPMs, and
running /usr/bin/python2.4 got me going fine. The demo
came right up, when I typed:
cd /home/nara/dnld/wxPython-2.6.0.1/demo # wxPython demo dir
/usr/bin/python2.4 Main.py
I will repeat this process later on my home machine.
Thanks a heap.
You might want to mention the fact that people should use the
python2.4 RPMs from pydotorg along with the fc2 wxPython RPMS,
rather than building python2.4 from source,
right on the wxPython.org download page.
/Nara
FYI, my python2.4 and rpms are the same as the ones you show:
[nara@nonhpnnl demo]$ rpm -qa | grep python2.4
python2.4-devel-2.4.1-1pydotorg
python2.4-tools-2.4.1-1pydotorg
python2.4-tkinter-2.4.1-1pydotorg
python2.4-2.4.1-1pydotorg
[nara@nonhpnnl demo]$ rpm -qa | grep wxPython
wxPython-common-gtk2-ansi-2.6.0.1-fc2_py2.4
wxPython2.6-gtk2-ansi-2.6.0.1-fc2_py2.4
And sys.maxunicode checks out:
[nara@nonhpnnl demo]$ /usr/bin/python2.4
Python 2.4.1 (#1, Apr 1 2005, 16:45:07)
[GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import sys
sys.maxunicode
1114111
Robin Dunn wrote:
> Nara Narasimhan wrote:
>
>> Ok, here is how far I got after installing the python2.4 from
>> pydotorg and th wxPython2.6.0.1 for python2.4 rpms. The good
>> news is that it got past the "No module named wx" error, but
>> hit a snag later.
>>
>>
>> nara@orwell demo]$ python2.4 Main.py
>> Traceback (most recent call last):
>> File "Main.py", line 32, in ?
>> import wx # This module uses the new wx namespace
>> File
>> "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/__init__.py", line
>> 44, in ?
>> from wx._core import *
>> File
>> "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core.py", line 4,
>> in ?
>> import _core_
>> ImportError:
>> /usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core_.so:
>> undefined symbol: PyUnicodeUCS4_AsEncodedString
>
>
> Hmm... Sorry, I thought that I had worked out the kinks there and
> gotten the Python unicode configure flag consistent with the available
> packages. Something must have changed somewhere, I'll check into it...
I've just double checked and the pydotorg RPM *does* have the same ucs4
unicode setting as the others, and so should be compatible with the
wxPython RPMs. Are you sure that the python2.4 you excuted was the one
from the RPM and not the one you built yourself?
# python2.4
Python 2.4.1 (#1, Apr 1 2005, 16:45:07)
[GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.maxunicode
1114111
>>>
>>> import wx
>>> wx.__file__
'/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/__init__.pyc'
>>>
# rpm -qa | grep python2.4
python2.4-2.4.1-1pydotorg
python2.4-devel-2.4.1-1pydotorg
python2.4-tools-2.4.1-1pydotorg
python2.4-tkinter-2.4.1-1pydotorg
# rpm -qa | grep wx
wxPython-common-gtk2-ansi-2.6.0.1-fc2_py2.4
wxPython2.6-gtk2-ansi-2.6.0.1-fc2_py2.4
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
/Nara Narasimhan
e-mail nara19@yahoo.com
phone 510 623 9230
fax 510 770 1377
···
--- Robin Dunn <robin@alldunn.com> wrote:
__________________________________
Discover Yahoo!
Find restaurants, movies, travel and more fun for the weekend. Check it out!
http://discover.yahoo.com/weekend.html