Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #4365 > unrolled thread
| Started by | schaf.mh@gmail.com |
|---|---|
| First post | 2016-04-07 01:11 -0700 |
| Last post | 2016-04-11 05:00 -0700 |
| Articles | 7 — 3 participants |
Back to article view | Back to de.comp.lang.python
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
| From | schaf.mh@gmail.com |
|---|---|
| Date | 2016-04-07 01:11 -0700 |
| Subject | Pip call with --allow-external and --allow-unverified leads to error for mysql-connector-python |
| Message-ID | <bf753314-9be8-4487-8e63-1f7c5686da0d@googlegroups.com> |
HI, over an old ansible script I did run a pip installation for the mysql-connector-python==1.0.12 (defined in the requirements.txt). (related to Django 1.5.1 installation) This call was always executed with --allow-external and --allow-unverified and worked well. So as you see from the version, this is a while back. If I run the same ansible playbook against a new debian installation, I run into an error. 1.) Deprication of --allow-external and --allow-unverified, telling me that they do not have any effect. 2.)Could not find version taht satisfies the requirement mysql-connector-python==1.0.12....No matching distribution found for mysql-connector-python==1.0.12. I know that the versions are outdated (Django 1.5.1 and mysql-connector-python 1.0.12), but assume I would like to run it as it is, what would be required to get mysql-connector-python installed without --allow-external and --allow-unverified. Do you have any hints? Is there a replacement for --allow-external and --allow-unverified? Is it still possible to run that on the newest debian, or do I have to upgrade the modules (e.g. Django, mysql,...?) Thanks schaf
[toc] | [next] | [standalone]
| From | Christopher Arndt <chris@chrisarndt.de> |
|---|---|
| Date | 2016-04-07 14:57 +0200 |
| Subject | Re: [Python-de] Pip call with --allow-external and --allow-unverified leads to error for mysql-connector-python |
| Message-ID | <mailman.28.1460033875.2253.python-de@python.org> |
| In reply to | #4365 |
[Multipart message — attachments visible in raw view] — view raw
Hallo schaf, sollte das evtl. an eine andere Liste gehen? Chris
[toc] | [prev] | [next] | [standalone]
| From | schaf.mh@gmail.com |
|---|---|
| Date | 2016-04-07 06:30 -0700 |
| Subject | Re: [Python-de] Pip call with --allow-external and --allow-unverified leads to error for mysql-connector-python |
| Message-ID | <f67fe964-e3ce-410b-b05d-f5e95f2d327b@googlegroups.com> |
| In reply to | #4366 |
Am Donnerstag, 7. April 2016 14:57:57 UTC+2 schrieb Christopher Arndt: > Hallo schaf, > > sollte das evtl. an eine andere Liste gehen? > > > Chris HI Chris, nein ich habe gehofft hier PIP installer knowhow zu finden, das einzige, was mir gerade aufgefallen ist, ist dass ich die Sprache falsch gewaehlt habe. Soll ich den Eintrag uebersetzen, oder ist es fuer dieses in Englisch "OK"? Alle weitere Kommunikation natuerlich aus Deutsch. Sorry, wird nicht mehr vorkommen. Schaf
[toc] | [prev] | [next] | [standalone]
| From | Christopher Arndt <chris@chrisarndt.de> |
|---|---|
| Date | 2016-04-07 16:07 +0200 |
| Subject | Re: [Python-de] Pip call with --allow-external and --allow-unverified leads to error for mysql-connector-python |
| Message-ID | <mailman.33.1460038066.2253.python-de@python.org> |
| In reply to | #4367 |
[Multipart message — attachments visible in raw view] — view raw
Am 07.04.2016 um 15:30 schrieb schaf.mh@gmail.com: > 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
[toc] | [prev] | [next] | [standalone]
| From | "Marcel Hug (schaf)" <schaf.mh@gmail.com> |
|---|---|
| Date | 2016-04-07 08:42 -0700 |
| Subject | Re: [Python-de] Pip call with --allow-external and --allow-unverified leads to error for mysql-connector-python |
| Message-ID | <84271947-962c-4fc9-9c3f-ee3ca82be5c2@googlegroups.com> |
| In reply to | #4371 |
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
[toc] | [prev] | [next] | [standalone]
| From | Christopher Arndt <chris@chrisarndt.de> |
|---|---|
| Date | 2016-04-07 18:10 +0200 |
| Subject | Re: [Python-de] Pip call with --allow-external and --allow-unverified leads to error for mysql-connector-python |
| Message-ID | <mailman.45.1460045420.2253.python-de@python.org> |
| In reply to | #4376 |
[Multipart message — attachments visible in raw view] — view raw
Am 07.04.2016 um 17:42 schrieb Marcel Hug (schaf): > Das sollte eigentlich doch gehen, wenn ich das tar.gz direkt im requirements.txt angebe? Oder braucht es noch mehr? Also bei mir klappt folgendes: $ mkvirtualenv msqlc (msqlc)$ echo "https://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-2.1.3.tar.gz" >requirements.txt (msqlc)$ pip install -r requirements.txt Chris
[toc] | [prev] | [next] | [standalone]
| From | "Marcel Hug (schaf)" <schaf.mh@gmail.com> |
|---|---|
| Date | 2016-04-11 05:00 -0700 |
| Subject | Re: [Python-de] Pip call with --allow-external and --allow-unverified leads to error for mysql-connector-python |
| Message-ID | <4b29ab74-f7b7-4b05-8df7-cfa8f7d8628f@googlegroups.com> |
| In reply to | #4378 |
Am Donnerstag, 7. April 2016 18:10:22 UTC+2 schrieb Christopher Arndt: > Am 07.04.2016 um 17:42 schrieb Marcel Hug (schaf): > > Das sollte eigentlich doch gehen, wenn ich das tar.gz direkt im requirements.txt angebe? Oder braucht es noch mehr? > > Also bei mir klappt folgendes: > > $ mkvirtualenv msqlc > (msqlc)$ echo > "https://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-2.1.3.tar.gz" > >requirements.txt > (msqlc)$ pip install -r requirements.txt > > > Chris Hi Chris, danke. Jetzt klappt es auch. Ich musste noch die Reihenfolge der Packete aendern und einige andere Anpassungen machen, aber jetzt hat es geklappt. Danke.
[toc] | [prev] | [standalone]
Back to top | Article view | de.comp.lang.python
csiph-web