By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,742 Members | 1,227 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,742 IT Pros & Developers. It's quick & easy.

Install MySQL-python-0.9.1

P: n/a
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/p4...n-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__'

Jul 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Cathy Hui wrote:
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.

Jul 19 '05 #2

P: n/a
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

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.