how to setup mysql-python support

40 views
Skip to first unread message

Hatem El-Zanaty

unread,
Feb 7, 2010, 5:13:02 AM2/7/10
to utahp...@googlegroups.com
hi all ,
i downloaded MySQL-python-1.2.3c1 but when installing it i get those errors
[root@localhost MySQL-python-1.2.3c1]# python setup.py build
Traceback (most recent call last):
  File "setup.py", line 5, in ?
    from setuptools import setup, Extension
ImportError: No module named setuptools
[root@localhost MySQL-python-1.2.3c1]# python setup.py install
Traceback (most recent call last):
  File "setup.py", line 5, in ?
    from setuptools import setup, Extension
ImportError: No module named setuptools
[root@localhost MySQL-python-1.2.3c1]#

can any body help me to get mysql-python installed and configured right and send me a working example if possible
thanks in advance
Best Regards
hatem gamal

Hatem El-Zanaty

unread,
Feb 7, 2010, 6:05:49 AM2/7/10
to utahp...@googlegroups.com
hi all,
conciderning chartDirector for python at http://www.advsofteng.com/download.html
can any body guide me how to configure it so that it makes unicode support on the generated image would you please help me in that as soon as possible.please see the attached code and help me to modify it for unicode support
Best Regards
hatem gamal

axisscale.py

EAW

unread,
Feb 8, 2010, 10:27:48 AM2/8/10
to utahp...@googlegroups.com
You're missing the python distutils library. In Ubuntu, this package is
called python-setuptools. Not sure what it would be called in CentOS,
but doing a "yum search setuptools" might lead you in the right direction.

Good luck,

e.

> --
> You received this message because you are subscribed to the Google
> Groups "Utah Python User Group" group.
> To post to this group, send email to utahp...@googlegroups.com.
> To unsubscribe from this group, send email to
> utahpython+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/utahpython?hl=en.

--
er...@xmtp.net
Freelance Software Developer

Byron Clark

unread,
Feb 8, 2010, 10:41:38 AM2/8/10
to utahp...@googlegroups.com
On Sun, Feb 07, 2010 at 12:13:02PM +0200, Hatem El-Zanaty wrote:
> i downloaded MySQL-python-1.2.3c1 but when installing it i get those errors
> [root@localhost MySQL-python-1.2.3c1]# python setup.py build
> Traceback (most recent call last):
> File "setup.py", line 5, in ?
> from setuptools import setup, Extension
> ImportError: No module named setuptools

It would appear that you're missing setuptools. Since a Google search
for "ImportError: No module named setuptools" doesn't turn up the best
instructions on how to install setuptools, here's the setuptools
instructions athe the cheese shop: http://pypi.python.org/pypi/setuptools/0.6c11

--
Byron Clark

Hatem El-Zanaty

unread,
Feb 9, 2010, 2:34:01 AM2/9/10
to utahp...@googlegroups.com
hi e,
thanks for your help the package name is python-setuptools
Best Regards
hatem gamal
Reply all
Reply to author
Forward
0 new messages