[Tutor] MySQLdb saga continues :(

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Thu, 1 Nov 2001 12:49:19 -0800 (PST)


On Wed, 31 Oct 2001, Pijus Virketis wrote:

> well, my helpfull ISP admin sent me this message:
> 
> --------------------- error message ----------------------
> OK, I downloaded Disutils and followed the install instructions and got the 
> following error:
> 
> python setup.py install
> 
> Error in %s at %d: %s ('setup.cfg', 21, "'[bdist_rpm]\\012'")
> Error in %s at %d: %s ('setup.cfg', 24, "'doc_files = CHANGES.txt\\012'")
> Traceback (innermost last):
>    File "setup.py", line 13, in ?
>      setup (name = "Distutils",
>    File "distutils/core.py", line 110, in setup
>      dist.parse_config_files()
>    File "distutils/dist.py", line 323, in parse_config_files
>      parser.read(filename)
>    File "/usr/lib/python1.5/ConfigParser.py", line 154, in read
>      self.__read(fp)
>    File "/usr/lib/python1.5/ConfigParser.py", line 232, in __read
>      cursect = cursect[optname] + '\n ' + value
> TypeError: expected integer index
> --------------------- end error message ----------------------
> 
> Sorry to bother you with this, but this is really what I know nothing about
> in Python. Any ideas as to how to do this thing?


Yikes.  It looks like Distutils doesn't work well with Python 1.51.  I
just took a closer look at MySQLdb's README, and there are disheartening
words:

"""Prerequisites:

Python 1.5.2 or higher
-- http://www.python.org/
-- Versions lower than 1.5.2 WON'T WORK.
-- All versions from 1.5.2 should work. 1.6.x versions have not been
   tested. 2.0.1, 2.1.1, and 2.2a3 have all been tested.
...
"""

Is there any way you can convince your ISP to install a newer version of
Python?