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


Groups > de.comp.lang.python > #4376

Re: [Python-de] Pip call with --allow-external and --allow-unverified leads to error for mysql-connector-python

X-Received by 10.107.59.78 with SMTP id i75mr2088387ioa.22.1460043737266; Thu, 07 Apr 2016 08:42:17 -0700 (PDT)
X-Received by 10.157.34.20 with SMTP id o20mr37996ota.8.1460043737237; Thu, 07 Apr 2016 08:42:17 -0700 (PDT)
Path csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!nt3no8666641igb.0!news-out.google.com!j7ni109igm.0!nntp.google.com!gy3no709414igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups de.comp.lang.python
Date Thu, 7 Apr 2016 08:42:17 -0700 (PDT)
In-Reply-To <mailman.33.1460038066.2253.python-de@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=212.126.162.34; posting-account=clfmUAoAAABiYOInuvhP-e_9E_8hGpyB
NNTP-Posting-Host 212.126.162.34
References <bf753314-9be8-4487-8e63-1f7c5686da0d@googlegroups.com> <5706593B.9020002@chrisarndt.de> <mailman.28.1460033875.2253.python-de@python.org> <f67fe964-e3ce-410b-b05d-f5e95f2d327b@googlegroups.com> <5706699B.8040700@chrisarndt.de> <mailman.33.1460038066.2253.python-de@python.org>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <84271947-962c-4fc9-9c3f-ee3ca82be5c2@googlegroups.com> (permalink)
Subject Re: [Python-de] Pip call with --allow-external and --allow-unverified leads to error for mysql-connector-python
From "Marcel Hug (schaf)" <schaf.mh@gmail.com>
Injection-Date Thu, 07 Apr 2016 15:42:17 +0000
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Xref csiph.com de.comp.lang.python:4376

Show key headers only | View raw


Am Donnerstag, 7. April 2016 16:07:48 UTC+2 schrieb Christopher Arndt:
> Am 07.04.2016 um 15:30 schrieb Marcel Hug (schaf)
> > nein ich habe gehofft hier PIP installer knowhow zu finden
> 
> Gut, ich wollte nur sicher gehen.
> 
> > Alle weitere Kommunikation natuerlich aus Deutsch.
> 
> Das wäre nett.
> 
> Zur Lösung deines Problems kann ich auch nicht viel beitragen, außer der
> Hinweis, dass man bei pip auch direkt URLs von Tarballs, Wheels oder
> Repositories als Installationsquelle angeben kann.
> 
> 
> Chris

Hi Chris, hi alle!

Nun hier mein Problem. 
Ich habe ein altes ansible playbook und in diesem wurde der pip installer gestarted mit folgendem call:

name: djangowebapp | Install requirements
pip: requirements=/home/abc/req/requirements.txt extra_args="--allow-external mysql-connector-python --allow-unverified mysql-connector-python"

Im file requirements.txt wurde unteranderem django==1.5.1 und mysql-connector-python==1.0.12 aufgefuehrt.

Wenn ich diese Installation gegen eine neue Debian installation (8.4) laufen lasse, kriege ich die Fehlermeldung:

Collecting mysql-connector-python==1.0.12 (from -r /home/abc/req/requirements.txt (line 13))

:stderr: DEPRECATION: --allow-external has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.
DEPRECATION: --allow-unverified has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.
Could not find a version that satisfies the requirement mysql-connector-python==1.0.12 (from -r /home/abc/req/requirements.txt (line 13)) (from versions: )
No matching distribution found for mysql-connector-python==1.0.12 (from -r /home/abc/req/requirements.txt (line 13))

Danach habe ich folgenden Link gesehen und das requirements.txt entsprechend geaendert. Ich habe einfach auf das tar.gz verwiesen.

http://stackoverflow.com/questions/34489271/i-cannot-install-mysql-connector-python-using-pip

Ich habe natuerlich auch die task Anforderung im ansible script geaendert:

name: djangowebapp | Install requirements
pip: requirements=/home/abc/req/requirements.txt

Wenn ich das nun so laufen lasse, kommt das Script zwar weiter (error beim installieren von numpy==1.7.1), ABER mysql-connector-python ist nicht installiert. Weder pip freeze noch der verbose output zeigt irgendwas vom download des tar.gz an.

Das sollte eigentlich doch gehen, wenn ich das tar.gz direkt im requirements.txt angebe? Oder braucht es noch mehr?

Kann es sein, dass mein altes Playbook zu sehr outdated ist ?

Thanks
Schaf

Back to de.comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Pip call with --allow-external and --allow-unverified leads to error for mysql-connector-python schaf.mh@gmail.com - 2016-04-07 01:11 -0700
  Re: [Python-de] Pip call with --allow-external and --allow-unverified leads to error for mysql-connector-python Christopher Arndt <chris@chrisarndt.de> - 2016-04-07 14:57 +0200
    Re: [Python-de] Pip call with --allow-external and --allow-unverified leads to error for mysql-connector-python schaf.mh@gmail.com - 2016-04-07 06:30 -0700
      Re: [Python-de] Pip call with --allow-external and --allow-unverified leads to error for mysql-connector-python Christopher Arndt <chris@chrisarndt.de> - 2016-04-07 16:07 +0200
        Re: [Python-de] Pip call with --allow-external and --allow-unverified leads to error for mysql-connector-python "Marcel Hug (schaf)" <schaf.mh@gmail.com> - 2016-04-07 08:42 -0700
          Re: [Python-de] Pip call with --allow-external and --allow-unverified leads to error for mysql-connector-python Christopher Arndt <chris@chrisarndt.de> - 2016-04-07 18:10 +0200
            Re: [Python-de] Pip call with --allow-external and --allow-unverified leads to error for mysql-connector-python "Marcel Hug (schaf)" <schaf.mh@gmail.com> - 2016-04-11 05:00 -0700

csiph-web