Murphy kicks in

Down but not out. Successfully installed Python and have it running, but wxPython is eluding me. On the last step on the installation instructions, my luck ran out, with error messages:

[root@localhost wxPython]# python \
WX_CONFIG=$WXPREF/bin.wx-config \
build install
Preparing CORE...
Preparing GLCANVAS...
Preparing OGL...
Preparing STC...
Preparing XRC...
Preparing GIZMOS...
Preparing DLLWIDGET...
usage: [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: --help [cmd1 cmd2 ...]
   or: --help-commands
   or: cmd --help
error: invalid command 'python' (no module named 'distutils.command.python')

Ooof. A quick Google for the bottom error (the cause of the rest, if I read it correctly) points to problems in the distutil package. Attempting to reinstall that from the source brings no joy, with more obscure errors:

[root@localhost Distutils-1.0.2]# python install
Traceback (most recent call last):
  File "", line 30, in ?
    packages = ['distutils', 'distutils.command'],
  File "/root/Distutils-1.0.2/distutils/", line 101, in setup
    _setup_distribution = dist = klass(attrs)
  File "/root/Distutils-1.0.2/distutils/", line 130, in __init__
    setattr(self, method_name, getattr(self.metadata, method_name))
AttributeError: DistributionMetadata instance has no attribute 'get___doc__'

So, at the end of the day, the score is tied: I won the Python install, Murphy the wxPython install. Tomorrow’s another day.

Powered by WordPress. Designed by Woo Themes

This work by Ted Roche is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States.