unable to install MySQLdb (version 0.3.5 ) using ActivePython (build 203) on Win 98
robin and jim
robinjim at earthlink.net
Sat Mar 31 08:57:30 EST 2001
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.
running install
running build
running build_py
not copying MySQLdb.py (output up-to-date)
not copying MySQLdb.pyc (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\CR.pyc (output up-to-date)
not copying _mysql_const\FIELD_TYPE.py (output up-to-date)
not copying _mysql_const\FIELD_TYPE.pyc (output up-to-date)
not copying _mysql_const\ER.py (output up-to-date)
not copying _mysql_const\ER.pyc (output up-to-date)
not copying _mysql_const\FLAG.py (output up-to-date)
not copying _mysql_const\FLAG.pyc (output up-to-date)
not copying _mysql_const\REFRESH.py (output up-to-date)
not copying _mysql_const\REFRESH.pyc (output up-to-date)
not copying _mysql_const\CLIENT.py (output up-to-date)
not copying _mysql_const\CLIENT.pyc (output up-to-date)
running build_ext
skipping '_mysql' extension (up-to-date)
running install_lib
not copying build\lib.win32-2.0\MySQLdb.py (output up-to-date)
not copying build\lib.win32-2.0\CompatMysqldb.py (output up-to-date)
not copying build\lib.win32-2.0\_mysql_const\__init__.py (output up-to-date)
not copying build\lib.win32-2.0\_mysql_const\CR.py (output up-to-date)
not copying build\lib.win32-2.0\_mysql_const\FIELD_TYPE.py (output
up-to-date)
not copying build\lib.win32-2.0\_mysql_const\ER.py (output up-to-date)
not copying build\lib.win32-2.0\_mysql_const\FLAG.py (output up-to-date)
not copying build\lib.win32-2.0\_mysql_const\REFRESH.py (output up-to-date)
not copying build\lib.win32-2.0\_mysql_const\CLIENT.py (output up-to-date)
not copying build\lib.win32-2.0\_mysql.pyd (output up-to-date)
byte-compiling C:\PYTHON20\MySQLdb.py to MySQLdb.pyc
[... maybe lost some output here -- jv]
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
More information about the Python-list
mailing list