Install MySQL-python-0.9.1

C

Cathy Hui

I am trying to install MySQL-Python 0.9.1 on my Solaris 8 system. The
system has Python 2.3.3 and Mysql 4.0.21 installed.

This is where I downloaded the distribution of the Mysql-python
package:

http://www.ravenbrook.com/project/p.../MySQL-python-0.9.1/MySQL-python-0.9.1.tar.gz

I have been doing whatever instructed from the README file.

i.e.

change the setup.py according to what OS I'm using:

elif sys.platform == "sunos5": # Solaris 2.8
include_dirs = ['/usr/local/mysql/include/mysql']
library_dirs = ['/usr/local/mysql/lib/mysql']
libraries = [mysqlclient, "z"]
runtime_library_dirs =
['/usr/local/lib:/usr/openwin/lib:/usr/dt/lib']
extra_objects = []

Then run the setup.py script with Python, here is the problem.

I am encountering the following issue when running the setup.py script.
Do u know why is that? Thanks!

======================================================================

python setup.py build
Traceback (most recent call last):
File "setup.py", line 123, in ?
extra_objects=extra_objects,
File "/usr/local/lib/python2.3/distutils/core.py", line 101, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/local/lib/python2.3/distutils/dist.py", line 130, in
__init__
setattr(self, method_name, getattr(self.metadata, method_name))
AttributeError: DistributionMetadata instance has no attribute
'get___doc__'


python setup.py install
Traceback (most recent call last):
File "setup.py", line 123, in ?
extra_objects=extra_objects,
File "/usr/local/lib/python2.3/distutils/core.py", line 101, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/local/lib/python2.3/distutils/dist.py", line 130, in
__init__
setattr(self, method_name, getattr(self.metadata, method_name))
AttributeError: DistributionMetadata instance has no attribute
'get___doc__'
 
A

Andy Dustman

Cathy said:
I am trying to install MySQL-Python 0.9.1 on my Solaris 8 system. The
system has Python 2.3.3 and Mysql 4.0.21 installed.

You're wasting your time. Use MySQL-python-1.2.0.
 
C

Cathy Hui

Thanks, now I am trying with Mysql-python-1.2.0.

There is an other issue I am encoutering when trying to build, do u
know why? (please see below)

===========================================

ld: fatal: relocations remain against allocatable but non-writable
sections
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top