unable to install MySQLdb (version 0.3.5 ) using ActivePython (build 203) on Win 98

Gerhard Häring gerhard.nospam at bigfoot.de
Thu Apr 5 17:26:49 EDT 2001


Gerhard Häring wrote:
> 
> Either robin, jim or somebody else wrote:
> >
> > Hello,
> >
> > I just downloaded the 2001-03-28 build of MySQLdb (version 0.3.5 ) from
> > http://home.t-online.de/home/err666/ (thanks Gerhard!) and issued the
> > command:
> >
> > python setup.py install
> >
> > using ActivePython (build 203) on a Windows 98 (2nd edition) computer.
> >
> > Below is the result.  Any suggestions about what I'm doing wrong.  Thanks.
> >
> > [... snipped, actual exception follows:]
> >
> >   File "c:\python20\lib\distutils\core.py", line 138, in setup
> >     dist.run_commands()
> >   File "c:\python20\lib\distutils\dist.py", line 829, in run_commands
> >     self.run_command(cmd)
> >   File "c:\python20\lib\distutils\dist.py", line 849, in run_command
> >     cmd_obj.run()
> >   File "c:\python20\lib\distutils\command\install.py", line 483, in run
> >     self.run_command(cmd_name)
> >   File "c:\python20\lib\distutils\cmd.py", line 328, in run_command
> >     self.distribution.run_command(command)
> >   File "c:\python20\lib\distutils\dist.py", line 849, in run_command
> >     cmd_obj.run()
> >   File "c:\python20\lib\distutils\command\install_lib.py", line 93, in run
> >     self.byte_compile(outfiles)
> >   File "c:\python20\lib\distutils\command\install_lib.py", line 130, in
> > byte_com
> > pile
> >     verbose=self.verbose, dry_run=self.dry_run)
> >   File "c:\python20\lib\distutils\util.py", line 423, in byte_compile
> >     compile(file, cfile, dfile)
> >   File "c:\python20\lib\py_compile.py", line 60, in compile
> >     codeobject = __builtin__.compile(codestring, dfile or file, 'exec')
> > TypeError: compile, argument 1: expected string without null bytes, string
> > found
> 
> I am sorry, but I don't know what's happening here. I just confirmed
> that it really works under my configuration (ActivePython build 202,
> Windows 2000 SP 1 en). Maybe downloading the file again will help. Maybe
> reverting to build 202 will, though if it build 203 is still Python 2.0,
> it shouldn't matter.

OK, I checked this again and was quite shocked about the lack of
compatibility of the various "Python 2.0" Windows distributions. As I
see, ActiveState build 202, build 203 and the Pythonware build are not
binary compatible with each other, at least for the MySQLdb/Windows
binary distribution.

I have yet to make up my mind how to handle this in the future, but for
now a special build of MySQLdb 0.3.5 for ActivePython build 203 is
available at the usual place.

desillusioned-about-python-on-windows-ly yours

Gerhard
-- 
Sorry for the fake email, please use the real one below to reply.
contact: g e r h a r d @ b i g f o o t . d e
web:     http://highqualdev.com



More information about the Python-list mailing list