I/O Serial and Parallel

Skender skender at webman.com
Tue Mar 25 10:26:13 CET 2003


Les Smithson wrote:

>>>>>> "Skender" == Skender  <skender at webman.net> writes:
> 
>     Skender> Hi, Is there any modules out there which will allow you
>     Skender> to address hardware I/O ports from Python. I foud a site
>     Skender> "http://www.hare.demon.co.uk/ioport/ioport.html", but
>     Skender> this does not seem to compile/work.
> 
>     Skender> Skender.
> 
> Works for me. What didn't compile/work for you?


I got the following message:


skender at webman ioport0.2]$ python ./setup.py build
running build
running build_ext
Traceback (most recent call last):
  File "./setup.py", line 11, in ?
    ext_modules=[module_ioport])
  File "/usr/lib/python2.2/distutils/core.py", line 138, in setup
    dist.run_commands()
  File "/usr/lib/python2.2/distutils/dist.py", line 893, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.2/distutils/dist.py", line 913, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.2/distutils/command/build.py", line 107, in run
    self.run_command(cmd_name)
  File "/usr/lib/python2.2/distutils/cmd.py", line 330, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.2/distutils/dist.py", line 913, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.2/distutils/command/build_ext.py", line 231, in run
    customize_compiler(self.compiler)
  File "/usr/lib/python2.2/distutils/sysconfig.py", line 145, in
customize_compiler
    (cc, opt, ccshared, ldshared, so_ext) = \
  File "/usr/lib/python2.2/distutils/sysconfig.py", line 427, in
get_config_vars
    func()
  File "/usr/lib/python2.2/distutils/sysconfig.py", line 332, in _init_posix
    raise DistutilsPlatformError(my_msg)
distutils.errors.DistutilsPlatformError: invalid Python installation: unable
to open /usr/lib/python2.2/config/Makefile (No such file or directory)








More information about the Python-list mailing list