[DB-SIG] installing MySQLdb.py

ian@mulvany.net ian@mulvany.net
22 Aug 2001 11:46:05 -0700


Hi,

I am new to using DB modules in Python. 
I am trying to install in MySQLdb.py module 
and am having the difficulties shown below, 

If anyone could explain to me the problem, 
and suggest lines of attack I would be really 
gratefull, 

many thanks,

-Ian


----

this is the version and system info:

[root@linux MySQL-python-0.3.5]# python
Python 2.0 (#1, Apr 11 2001, 19:18:08)
[GCC 2.96 20000731 (Linux-Mandrake 8.0 2.96-0.48mdk)] on linux-i386

this is the result I have been staring at after attempting to install MySQLdb.py:

[root@linux MySQL-python-0.3.5]# python setup.py build
running build
running build_py
not copying MySQLdb.py (output up-to-date)
not copying CompatMysqldb.py (output up-to-date)
not copying _mysql_const/__init__.py (output up-to-date)
not copying _mysql_const/CR.py (output up-to-date)
not copying _mysql_const/FIELD_TYPE.py (output up-to-date)
not copying _mysql_const/ER.py (output up-to-date)
not copying _mysql_const/FLAG.py (output up-to-date)
not copying _mysql_const/REFRESH.py (output up-to-date)
not copying _mysql_const/CLIENT.py (output up-to-date)
running build_ext
Traceback (most recent call last):
  File "setup.py", line 102, in ?
    extra_objects=extra_objects,
  File "/usr/lib/python2.0/distutils/core.py", line 138, in setup
    dist.run_commands()
  File "/usr/lib/python2.0/distutils/dist.py", line 829, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.0/distutils/dist.py", line 849, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.0/distutils/command/build.py", line 106, in run
    self.run_command(cmd_name)
  File "/usr/lib/python2.0/distutils/cmd.py", line 328, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.0/distutils/dist.py", line 849, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.0/distutils/command/build_ext.py", line 200, in run
    customize_compiler(self.compiler)
  File "/usr/lib/python2.0/distutils/sysconfig.py", line 106, in customize_compiler
    (cc, opt, ccshared, ldshared, so_ext) = \
  File "/usr/lib/python2.0/distutils/sysconfig.py", line 368, in get_config_vars
    func()
  File "/usr/lib/python2.0/distutils/sysconfig.py", line 280, in _init_posix
    raise DistutilsPlatformError, my_msg
distutils.errors.DistutilsPlatformError: invalid Python installation: unable to open /usr/lib/python2.0/config/Makefile (No such file or directory)



|Ian Mulvany ;0| www.mulvany.net|