Dismiss
Announcing Stack Overflow Documentation

We started with Q&A. Technical documentation is next, and we need your help.

Whether you're a beginner or an experienced developer, you can contribute.

Sign up and start helping → Learn more about Documentation →

I'm integrating MySQL as backend with my Django application. At the time of installation i'm running following command (using mac os)

export PATH=$PATH:/usr/local/mysql/bin
start server from settings (i'm on mac os)
brew install mysql-connector-c
sudo pip install MySQL-python

while running last command i'm getting following error,

Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/tmp/pip-build-wd69ia4g/MySQL-python/setup.py", line 13, in <module>
    from setup_posix import get_config
  File "/private/tmp/pip-build-wd69ia4g/MySQL-python/setup_posix.py", line 2, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-wd69ia4g/MySQL-python/

I google the error and got the solutions as run following command

    export PATH=$PATH:/usr/local/mysql/bin

But it doesn't solve my error.

Can any body help me to get out of it or let me know the steps for the initial MySQL setup.

Can not getting the solution than i'm ready for the fresh installation. Post the exact steps here

share|improve this question
    
did you activated your virtalenvironment? – Dinesh Sunny Aug 23 at 6:02
1  
Why are you installing both mysql-connector and MySQL-python? They are alternatives. If the first one worked, you don't need the second. – Daniel Roseman Aug 23 at 6:20
    
@DineshSunny Yes Activated – Pinank Lakhani Aug 23 at 6:26
    
@DanielRoseman Can post the command or refer me a link please. I'm stuck from yeaterday – Pinank Lakhani Aug 23 at 6:31
    
@PinankLakhani are you using python 3 then ConfigParser Lib is renamed to configparser. You can try this post to solve your issue stackoverflow.com/a/23978968/2958795 – Dinesh Sunny Aug 23 at 6:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.