Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #110411 > unrolled thread

not able to install mysqldb-python

Started byArshpreet Singh <arsh840@gmail.com>
First post2016-06-23 05:11 -0700
Last post2016-06-25 22:54 -0700
Articles 6 — 5 participants

Back to article view | Back to comp.lang.python


Contents

  not able to install mysqldb-python Arshpreet Singh <arsh840@gmail.com> - 2016-06-23 05:11 -0700
    Re: not able to install mysqldb-python INADA Naoki <songofacandy@gmail.com> - 2016-06-23 22:02 +0900
    RE: not able to install mysqldb-python Joaquin Alzola <Joaquin.Alzola@lebara.com> - 2016-06-23 12:21 +0000
      Re: not able to install mysqldb-python Arshpreet Singh <arsh840@gmail.com> - 2016-06-24 00:46 -0700
        Re: not able to install mysqldb-python Chris Warrick <kwpolska@gmail.com> - 2016-06-25 09:47 +0200
      Re: not able to install mysqldb-python Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-06-25 22:54 -0700

#110411 — not able to install mysqldb-python

FromArshpreet Singh <arsh840@gmail.com>
Date2016-06-23 05:11 -0700
Subjectnot able to install mysqldb-python
Message-ID<103a2db1-c5fb-40bc-92a4-19feb5f1de35@googlegroups.com>
I am trying to run django project in virtual environment. it needs mysql database library but when I try to install that it returns the error that configparser is not installed but I have installed configparser still the error remains same, is this ubuntu bug?


(env) ubuntu@ip-:~/clearapp$ pip install ConfigParser
Requirement already satisfied (use --upgrade to upgrade): ConfigParser in ./env/lib/python3.4/site-packages
(env) ubuntu@ip-172-31-56-59:~/clearapp$ pip install configparser
Requirement already satisfied (use --upgrade to upgrade): configparser in ./env/lib/python3.4/site-packages
(env) ubuntu@ip-172-31-56-59:~/clearapp$ 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-rrhl9079/MySQL-python/setup.py", line 13, in <module>
        from setup_posix import get_config
      File "/tmp/pip-build-rrhl9079/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-rrhl9079/MySQL-python/
(env) ubuntu@ip-172-31-56-59:~/clearapp$ 

[toc] | [next] | [standalone]


#110415

FromINADA Naoki <songofacandy@gmail.com>
Date2016-06-23 22:02 +0900
Message-ID<mailman.75.1466686975.11516.python-list@python.org>
In reply to#110411
Try this
https://pypi.python.org/pypi/mysqlclient

On Thu, Jun 23, 2016 at 9:11 PM, Arshpreet Singh <arsh840@gmail.com> wrote:
> I am trying to run django project in virtual environment. it needs mysql database library but when I try to install that it returns the error that configparser is not installed but I have installed configparser still the error remains same, is this ubuntu bug?
>
>
> (env) ubuntu@ip-:~/clearapp$ pip install ConfigParser
> Requirement already satisfied (use --upgrade to upgrade): ConfigParser in ./env/lib/python3.4/site-packages
> (env) ubuntu@ip-172-31-56-59:~/clearapp$ pip install configparser
> Requirement already satisfied (use --upgrade to upgrade): configparser in ./env/lib/python3.4/site-packages
> (env) ubuntu@ip-172-31-56-59:~/clearapp$ 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-rrhl9079/MySQL-python/setup.py", line 13, in <module>
>         from setup_posix import get_config
>       File "/tmp/pip-build-rrhl9079/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-rrhl9079/MySQL-python/
> (env) ubuntu@ip-172-31-56-59:~/clearapp$
> --
> https://mail.python.org/mailman/listinfo/python-list



-- 
INADA Naoki  <songofacandy@gmail.com>

[toc] | [prev] | [next] | [standalone]


#110438

FromJoaquin Alzola <Joaquin.Alzola@lebara.com>
Date2016-06-23 12:21 +0000
Message-ID<mailman.82.1466704092.11516.python-list@python.org>
In reply to#110411
>    ImportError: No module named 'ConfigParser'
 It is telling you the error
This email is confidential and may be subject to privilege. If you are not the intended recipient, please do not copy or disclose its content but contact the sender immediately upon receipt.

[toc] | [prev] | [next] | [standalone]


#110472

FromArshpreet Singh <arsh840@gmail.com>
Date2016-06-24 00:46 -0700
Message-ID<f6507dac-f816-4cff-8ee1-8dc2bcdf81c6@googlegroups.com>
In reply to#110438
On Thursday, 23 June 2016 23:18:27 UTC+5:30, Joaquin Alzola  wrote:
> >    ImportError: No module named 'ConfigParser'
>  It is telling you the error
> This email is confidential and may be subject to privilege. If you are not the intended recipient, please do not copy or disclose its content but contact the sender immediately upon receipt.

Thanks but somehow it fixed itself. :P now able to install mysql-python without any problem.

[toc] | [prev] | [next] | [standalone]


#110493

FromChris Warrick <kwpolska@gmail.com>
Date2016-06-25 09:47 +0200
Message-ID<mailman.109.1466840836.11516.python-list@python.org>
In reply to#110472
On 24 June 2016 at 09:46, Arshpreet Singh <arsh840@gmail.com> wrote:
> On Thursday, 23 June 2016 23:18:27 UTC+5:30, Joaquin Alzola  wrote:
>> >    ImportError: No module named 'ConfigParser'
>>  It is telling you the error
>> This email is confidential and may be subject to privilege. If you are not the intended recipient, please do not copy or disclose its content but contact the sender immediately upon receipt.
>
> Thanks but somehow it fixed itself. :P now able to install mysql-python without any problem.
> --
> https://mail.python.org/mailman/listinfo/python-list

It didn’t. mysql-python is installable with Python 2 only, so you
probably installed it for your system Python 2 install instead of your
Python 3 django virtualenv.
Either way, please use mysqlclient instead, as recommended by the
Django developers.

-- 
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16

[toc] | [prev] | [next] | [standalone]


#110509

FromLawrence D’Oliveiro <lawrencedo99@gmail.com>
Date2016-06-25 22:54 -0700
Message-ID<f0c7c5ee-0e50-4bde-9701-02ca669e85c3@googlegroups.com>
In reply to#110438
On Friday, June 24, 2016 at 5:48:27 AM UTC+12, Joaquin Alzola wrote:

> This email is confidential and may be subject to privilege. If you are not
> the intended recipient, please do not copy or disclose its content but
> contact the sender immediately upon receipt.

Sender, please consider yourself contacted!

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web