Hi,
I'm a new wxPython user, but very familiar with wxWidgets. I'm trying to install wxPython, but am having trouble. In particular, when following the website installation directions, I issue the command "python setup.py build" and receive the following:
wolfpack04.larc.nasa.gov% python setup.py build
Traceback (most recent call last):
File "setup.py", line 10, in ?
from my_distutils import run_swig, contrib_copy_tree
File "/home/stuart/MySpace/Applications/wxPython/wxPython-2.2.5/my_distutils.py", line 125, in ?
Is there some special reason you need a version of wxPython that is more than 7 years old? If not then I'd strongly recommend that you use something a lot newer than that.
ccompiler.default_compiler['nt'] = 'my_msvc'
AttributeError: 'module' object has no attribute 'default_compiler'--
IIRC that was a hack that was needed for an old version of distutils. If you're using a more modern version of Python then either the hack is not needed anymore (probably) or it has to be done using different hooks in distutils. Again, if you use a newer version of wxPython they this problem will magically disappear.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Thanks for your reply. I've updated my version of python to 2.5 and now when I try to install the rpm, I get this message:
error: Failed dependencies:
python(abi) = 2.5 is needed by wxPython-common-gtk2-ansi-2.8.7.1-fc7_py2.5.i386
Any insight on what to do now? Thanks!
Stuart Pope
···
D Stuart Pope wrote:
Hi,
I'm a new wxPython user, but very familiar with wxWidgets. I'm trying to install wxPython, but am having trouble. In particular, when following the website installation directions, I issue the command "python setup.py build" and receive the following:
wolfpack04.larc.nasa.gov% python setup.py build
Traceback (most recent call last):
File "setup.py", line 10, in ?
from my_distutils import run_swig, contrib_copy_tree
File "/home/stuart/MySpace/Applications/wxPython/wxPython-2.2.5/my_distutils.py", line 125, in ?
Is there some special reason you need a version of wxPython that is more than 7 years old? If not then I'd strongly recommend that you use something a lot newer than that.
ccompiler.default_compiler['nt'] = 'my_msvc'
AttributeError: 'module' object has no attribute 'default_compiler'--
IIRC that was a hack that was needed for an old version of distutils. If you're using a more modern version of Python then either the hack is not needed anymore (probably) or it has to be done using different hooks in distutils. Again, if you use a newer version of wxPython they this problem will magically disappear.
--
_________________________________________________________________
Stuart Pope Mail Stop 461
Analytical Services & Materials (757) 864-5775 (Voice)
Aeroacoustics Branch, BLDG 1208 (757) 864-8290 (FAX)
NASA Langley Research Center
Hampton, VA d.s.pope@larc.nasa.gov
"There is no greater joy than soaring high on the wings of
your dreams...except maybe the joy of watching a dreamer
who has nowhere to land but in the ocean of reality"
________________________________________________________________