When I use the following command, "python setup.py build", I get the following error message. What am I missing? I'm running Mandrake Linux 9.0...thanks in advance for any assistance...
[Fri Mar 07] [bob MySQL-python-0.9.2]$ python setup.py build
running build
running build_py
not copying CompatMysqldb.py (output up-to-date)
not copying _mysql_exceptions.py (output up-to-date)
not copying MySQLdb/__init__.py (output up-to-date)
not copying MySQLdb/converters.py (output up-to-date)
not copying MySQLdb/connections.py (output up-to-date)
not copying MySQLdb/cursors.py (output up-to-date)
not copying MySQLdb/sets.py (output up-to-date)
not copying MySQLdb/times.py (output up-to-date)
not copying MySQLdb/constants/__init__.py (output up-to-date)
not copying MySQLdb/constants/CR.py (output up-to-date)
not copying MySQLdb/constants/FIELD_TYPE.py (output up-to-date)
not copying MySQLdb/constants/ER.py (output up-to-date)
not copying MySQLdb/constants/FLAG.py (output up-to-date)
not copying MySQLdb/constants/REFRESH.py (output up-to-date)
not copying MySQLdb/constants/CLIENT.py (output up-to-date)
running build_ext
Traceback (most recent call last):
File "setup.py", line 139, in ?
extra_compile_args=extra_compile_args,
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 132, in customize_compi ler
(cc, opt, ccshared, ldshared, so_ext) = \
File "/usr/lib/python2.2/distutils/sysconfig.py", line 414, in get_config_vars
func()
File "/usr/lib/python2.2/distutils/sysconfig.py", line 319, 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)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I use the following command, "python setup.py build", I get the following error message. What am I missing? I'm running Mandrake Linux 9.0...thanks in advance for any assistance...
[Fri Mar 07] [bob MySQL-python-0.9.2]$ python setup.py build
running build
running build_py
not copying CompatMysqldb.py (output up-to-date)
not copying _mysql_exceptions.py (output up-to-date)
not copying MySQLdb/__init__.py (output up-to-date)
not copying MySQLdb/converters.py (output up-to-date)
not copying MySQLdb/connections.py (output up-to-date)
not copying MySQLdb/cursors.py (output up-to-date)
not copying MySQLdb/sets.py (output up-to-date)
not copying MySQLdb/times.py (output up-to-date)
not copying MySQLdb/constants/__init__.py (output up-to-date)
not copying MySQLdb/constants/CR.py (output up-to-date)
not copying MySQLdb/constants/FIELD_TYPE.py (output up-to-date)
not copying MySQLdb/constants/ER.py (output up-to-date)
not copying MySQLdb/constants/FLAG.py (output up-to-date)
not copying MySQLdb/constants/REFRESH.py (output up-to-date)
not copying MySQLdb/constants/CLIENT.py (output up-to-date)
running build_ext
Traceback (most recent call last):
File "setup.py", line 139, in ?
extra_compile_args=extra_compile_args,
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 132, in customize_compi ler
(cc, opt, ccshared, ldshared, so_ext) = \ File "/usr/lib/python2.2/distutils/sysconfig.py", line 414, in get_config_vars
func()
File "/usr/lib/python2.2/distutils/sysconfig.py", line 319, 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)