[DB-SIG] Installing MySQL-python on python 2.2
Clement
clement@ans.com.au
Mon, 3 Jun 2002 12:29:06 +1000
Hi Andy and Kevin,
Yes, Python 1.5.2 are Python 2.2.1 are both installed. Python 2.1, however,
is not.
I have checked all the environment variables and there is no reference at
all to python 2.1. I have also removed the /usr/lib/python2.1 directory
tree.
I have tried the tar ball and get the following error message:
# python2 setup.py build
running build
running build_py
not copying CompatMysqldb.py (output up-to-date)
not copying _mysql_exceptions.py (output up-to-date)
not copying MySQLdb/__init__.py (output up-to-date)
not copying MySQLdb/converters.py (output up-to-date)
not copying MySQLdb/connections.py (output up-to-date)
not copying MySQLdb/cursors.py (output up-to-date)
not copying MySQLdb/sets.py (output up-to-date)
not copying MySQLdb/times.py (output up-to-date)
not copying MySQLdb/constants/__init__.py (output up-to-date)
not copying MySQLdb/constants/CR.py (output up-to-date)
not copying MySQLdb/constants/FIELD_TYPE.py (output up-to-date)
not copying MySQLdb/constants/ER.py (output up-to-date)
not copying MySQLdb/constants/FLAG.py (output up-to-date)
not copying MySQLdb/constants/REFRESH.py (output up-to-date)
not copying MySQLdb/constants/CLIENT.py (output up-to-date)
running build_ext
Traceback (most recent call last):
File "setup.py", line 123, in ?
extra_objects=extra_objects,
File "/var/tmp/python2-2.2.1-root/usr/lib/python2.2/distutils/core.py",
line 138, in setup
dist.run_commands()
File "/var/tmp/python2-2.2.1-root/usr/lib/python2.2/distutils/dist.py",
line 893, in run_commands
self.run_command(cmd)
File "/var/tmp/python2-2.2.1-root/usr/lib/python2.2/distutils/dist.py",
line 913, in run_command
cmd_obj.run()
File
"/var/tmp/python2-2.2.1-root/usr/lib/python2.2/distutils/command/build.py",
line 107, in run
self.run_command(cmd_name)
File "/var/tmp/python2-2.2.1-root/usr/lib/python2.2/distutils/cmd.py",
line 330, in run_command
self.distribution.run_command(command)
File "/var/tmp/python2-2.2.1-root/usr/lib/python2.2/distutils/dist.py",
line 913, in run_command
cmd_obj.run()
File
"/var/tmp/python2-2.2.1-root/usr/lib/python2.2/distutils/command/build_ext.p
y", line 231, in run
customize_compiler(self.compiler)
File
"/var/tmp/python2-2.2.1-root/usr/lib/python2.2/distutils/sysconfig.py", line
126, in customize_compiler
(cc, opt, ccshared, ldshared, so_ext) = \
File
"/var/tmp/python2-2.2.1-root/usr/lib/python2.2/distutils/sysconfig.py", line
408, in get_config_vars
func()
File
"/var/tmp/python2-2.2.1-root/usr/lib/python2.2/distutils/sysconfig.py", line
313, in _init_posix
raise DistutilsPlatformError(my_msg)
distutils.errors.DistutilsPlatformError: invalid Python installation: unable
to open /usr/lib/python2.2/config/Makefile (No such file or directory)
Regards,
Clement
> -----Original Message-----
> From: db-sig-admin@python.org [mailto:db-sig-admin@python.org]On Behalf
> Of Kevin Cole
> Sent: Monday, June 03, 2002 11:47 AM
> To: Andy Todd
> Cc: Clement; db-sig@python.org
> Subject: Re: [DB-SIG] Installing MySQL-python on python 2.2
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> > I am running RH7.2 (will upgrade to 7.3 soon) on P-III CPU. I got the
> > binary RPM from Sourceforge web site exactly as you have suggested.
> > However, that binary rpm, MySQL-python-0.9.1.tar.gz, installs in
> > /usr/lib/python2.1 instead of /usr/lib/python2.2. I cannot use it from
> > Python 2.2.1.
>
> One other potential source of trouble: Red Hat boxed themselves into a
> corner by making their installation program (and other stuff?) REQUIRE
> 1.5.2. So, when you install Python 2.x (if you installed Red Hat's RPM)
> it goes through some hoops to make sure that it has both the old and the
> new Python on there. Among other things, you end up with two execut-
> ables: "python" and "python2", as well as two sets of paths, etc. I'm
> not sure if this is impacting on you or if you've already taken care of
> such troubles.
>
> - --
> Kevin Cole, RHCE, Linux Admin | E-mail: kjcole@gri.gallaudet.edu
> Gallaudet Research Institute | WWW:
> http://gri.gallaudet.edu/~kjcole/
> Hall Memorial Bldg S-419 | Voice: (202) 651-5135
> Washington, D.C. 20002-3695 | FAX: (202) 651-5746
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
> iD8DBQE8+sqBh8702ObzMscRAmd3AJ0dpYWXktXMHhcFngHESE7NTmraAACfXWiC
> P4NZIuRrBP/uQFZSFm0w680=
> =q8Rq
> -----END PGP SIGNATURE-----
>
>
>
> _______________________________________________
> DB-SIG maillist - DB-SIG@python.org
> http://mail.python.org/mailman/listinfo/db-sig
>