mysql-python failing with pip3

0 views
Skip to first unread message

Alan

unread,
Jun 21, 2016, 10:55:30 AM6/21/16
to co...@continuum.io
Hi there,

I came across this issue:

pip install mysql-python
Collecting mysql-python
  Using cached MySQL-python-1.2.5.zip
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-f40b2r2x/mysql-python/setup.py", line 13, in <module>
        from setup_posix import get_config
      File "/tmp/pip-build-f40b2r2x/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 /tmp/pip-build-f40b2r2x/mysql-python/

And it seems to happen because it should be

from configparser import SafeConfigParser # ConfigParser -> configparser (lowercase)

I guess it's not Conda fault, but is there a way to sort this issue?

Thanks,

Alan

Alexey Strokach

unread,
Jun 21, 2016, 2:03:52 PM6/21/16
to Alan, conda

MySQL-python is Python 2 only. You need to install mysqlclient instead.


--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+un...@continuum.io.
To post to this group, send email to co...@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/CAEznbz%3DK%2BsycxVtC4M-cYa0aN56rthECNVMiMF8DRej30taK0A%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Alan

unread,
Jun 22, 2016, 8:43:40 AM6/22/16
to Alexey Strokach, conda
Thanks for that!
--
Alan Wilter SOUSA da SILVA, DSc
Senior Bioinformatician, UniProt
European Bioinformatics Institute (EMBL-EBI)
European Molecular Biology Laboratory
Wellcome Trust Genome Campus
Hinxton
Cambridge CB10 1SD
United Kingdom
Reply all
Reply to author
Forward
0 new messages