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: 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: <5706593B.9020002@chrisarndt.de> <5706699B.8040700@chrisarndt.de> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <84271947-962c-4fc9-9c3f-ee3ca82be5c2@googlegroups.com> Subject: Re: [Python-de] Pip call with --allow-external and --allow-unverified leads to error for mysql-connector-python From: "Marcel Hug (schaf)" 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 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 >=20 > Gut, ich wollte nur sicher gehen. >=20 > > Alle weitere Kommunikation natuerlich aus Deutsch. >=20 > Das w=E4re nett. >=20 > Zur L=F6sung deines Problems kann ich auch nicht viel beitragen, au=DFer = der > Hinweis, dass man bei pip auch direkt URLs von Tarballs, Wheels oder > Repositories als Installationsquelle angeben kann. >=20 >=20 > Chris Hi Chris, hi alle! Nun hier mein Problem.=20 Ich habe ein altes ansible playbook und in diesem wurde der pip installer g= estarted mit folgendem call: name: djangowebapp | Install requirements pip: requirements=3D/home/abc/req/requirements.txt extra_args=3D"--allow-ex= ternal mysql-connector-python --allow-unverified mysql-connector-python" Im file requirements.txt wurde unteranderem django=3D=3D1.5.1 und mysql-con= nector-python=3D=3D1.0.12 aufgefuehrt. Wenn ich diese Installation gegen eine neue Debian installation (8.4) laufe= n lasse, kriege ich die Fehlermeldung: Collecting mysql-connector-python=3D=3D1.0.12 (from -r /home/abc/req/requir= ements.txt (line 13)) :stderr: DEPRECATION: --allow-external has been deprecated and will be remo= ved 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-pyt= hon=3D=3D1.0.12 (from -r /home/abc/req/requirements.txt (line 13)) (from ve= rsions: ) No matching distribution found for mysql-connector-python=3D=3D1.0.12 (from= -r /home/abc/req/requirements.txt (line 13)) Danach habe ich folgenden Link gesehen und das requirements.txt entsprechen= d geaendert. Ich habe einfach auf das tar.gz verwiesen. http://stackoverflow.com/questions/34489271/i-cannot-install-mysql-connecto= r-python-using-pip Ich habe natuerlich auch die task Anforderung im ansible script geaendert: name: djangowebapp | Install requirements pip: requirements=3D/home/abc/req/requirements.txt Wenn ich das nun so laufen lasse, kommt das Script zwar weiter (error beim = installieren von numpy=3D=3D1.7.1), ABER mysql-connector-python ist nicht i= nstalliert. Weder pip freeze noch der verbose output zeigt irgendwas vom do= wnload des tar.gz an. Das sollte eigentlich doch gehen, wenn ich das tar.gz direkt im requirement= s.txt angebe? Oder braucht es noch mehr? Kann es sein, dass mein altes Playbook zu sehr outdated ist ? Thanks Schaf