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 22:24:01 EDT 2001


Gerhard Häring wrote:
> 
> 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.

Unfortunately, the build against ActivePython 203 didn't work. So I
pulled it back. I could confirm Jim's problems and installing my own
binary distribution didn't work, either on any (?) of A.Py. 202 or 203.
I ditched A.Py. from my harddisk and I am now back to vanilla Python 2.0
plus win32all from Mark Hammond. The MySQLdb build works with Python
1.5.2, 2.0 and 2.1 from python.org.

In short: people, if you want to use my build of MySQLdb, use the
standard Python or expect problems.

if-i-could-think-more-clearly-i-d-submit-a-bug-report-to-activestate'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