<p>pipenv -e kann das lokale Paket nicht installieren. pip -e funktioniert.</p>

Erstellt am 3. Nov. 2017  ·  3Kommentare  ·  Quelle: pypa/pipenv

Überprüfen Sie die bestehenden Probleme, sowohl offene als auch geschlossene.

Beschreiben Sie das Problem hier kurz.

Beschreiben Sie Ihre Umgebung
  1. Betriebssystemtyp: Ubuntu Artful 17.10
  2. Python-Version: Python 3.6.3
  3. Pipenv-Version: Pipenv, Version 8.3.1
Erwartetes Ergebnis

Es wird erwartet, dass das lokale Paket ähnlich wie pip installiert wird.

Tatsächliche Ergebnis

$ pipenv install -e /home/marc/opencompliance/opencompliance/scrapers/libsanctions --verbose

Installation von -e /home/marc/opencompliance/opencompliance/scrapers/libsanctions…
⠋Installieren von '-e /home/marc/opencompliance/opencompliance/scrapers/libsanctions'
$ "/home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/bin/pip" install --verbose -e "/home/marc/opencompliance/opencompliance/scrapers/libsanctions" -i https://pypi. python.org/simple --exists-action w
Traceback (letzter Anruf zuletzt):
Datei "/home/marc/.local/bin/pipenv", Zeile 11, in
sys.exit(cli())
Datei "/home/marc/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", Zeile 722, in __call__
return self.main( args, * kwargs)
Datei "/home/marc/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", Zeile 697, in main
rv = self.invoke(ctx)
Datei "/home/marc/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", Zeile 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
Datei "/home/marc/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", Zeile 895, in invoke
return ctx.invoke(self.callback, *ctx.params)Datei "/home/marc/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", Zeile 535, in invokeRückruf ( Args, **kwargs)
Datei "/home/marc/.local/lib/python3.6/site-packages/pipenv/cli.py", Zeile 1869, in install
konvertiert = convert_deps_from_pip(Paketname)
Datei "/home/marc/.local/lib/python3.6/site-packages/pipenv/utils.py", Zeile 540, in convert_deps_from_pip
os.path.isfile(req.name)) und nicht req.vcs:
Datei "/usr/lib/python3.6/genericpath.py", Zeile 30, in isfile
st = os.stat(Pfad)
TypeError: stat: Pfad sollte String, Byte, os.PathLike oder Integer sein, nicht NoneType

Schritte zum Replizieren

Verwenden Sie pipenv -e, um das lokale Paket mit der Datei setup.py zu installieren. Dies ist das Paket, das ich versuche zu installieren.
https://github.com/marc-fez/libsanctions.git

pip -e funktioniert mit diesem Paket.

$ pip install -e /home/marc/opencompliance/opencompliance/scrapers/libsanctions --verbose
Abrufen von file:///home/marc/opencompliance/opencompliance/scrapers/libsanctions
Ausführen von setup.py (Pfad:/home/marc/opencompliance/opencompliance/scrapers/libsanctions/setup.py) egg_info für Paket von file:///home/marc/opencompliance/opencompliance/scrapers/libsanctions
Ausführen des Befehls python setup.py egg_info
laufende egg_info
libsanctions.egg-info/PKG-INFO schreiben
Schreiben von Dependency_Links zu libsanctions.egg-info/dependency_links.txt
Schreiben von namespace_packages in libsanctions.egg-info/namespace_packages.txt
Schreiben von Anforderungen an libsanctions.egg-info/requires.txt
Schreiben von Top-Level-Namen in libsanctions.egg-info/top_level.txt
Manifestdatei 'libsanctions.egg-info/SOURCES.txt' lesen
Manifestdatei 'libsanctions.egg-info/SOURCES.txt' schreiben
Quelle in /home/marc/opencompliance/opencompliance/scrapers/libsanctions hat Version 0.1.0, die die Anforderung libsanctions==0.1.0 von file:///home/marc/opencompliance/opencompliance/scrapers/libsanctions erfüllt
Voraussetzung bereits erfüllt: Normalität>=0.4.2 in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (ab libsanctions==0.1.0)
Anforderung bereits erfüllt: Fingerprints>=0.4.0 in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (ab libsanctions==0.1.0)
Voraussetzung bereits erfüllt: Ländernamen in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (ab libsanctions==0.1.0)
Anforderung bereits erfüllt: jsonschema>=2.6.0 in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (ab libsanctions==0.1.0)
Voraussetzung bereits erfüllt: sqlalchemy>=1.1.0 in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (ab libsanctions==0.1.0)
Anforderung bereits erfüllt: Anfragen>=2.13 in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (ab libsanctions==0.1.0)
Anforderung bereits erfüllt: Morphium in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (ab libsanctions==0.1.0)
Voraussetzung bereits erfüllt: dalet in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (ab libsanctions==0.1.0)
Voraussetzung bereits erfüllt: lxml in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (ab libsanctions==0.1.0)
Voraussetzung bereits erfüllt: xlrd in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (ab libsanctions==0.1.0)
Anforderung bereits erfüllt: sechs in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (ab libsanctions==0.1.0)
Voraussetzung bereits erfüllt: chardet in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (aus Normalität>=0.4.2->libsanctions==0.1.0)
Anforderung bereits erfüllt: banal in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (aus Normalität>=0.4.2->libsanctions==0.1.0)
Voraussetzung bereits erfüllt: unidecode in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (von Fingerprints>=0.4.0->libsanctions==0.1.0)
Voraussetzung bereits erfüllt: pyyaml ​​in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (aus Fingerprints>=0.4.0->libsanctions==0.1.0)
Anforderung bereits erfüllt: pycountry in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (von countrynames->libsanctions==0.1.0)
Anforderung bereits erfüllt: python-Levenshtein in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (von countrynames->libsanctions==0.1.0)
Anforderung bereits erfüllt: urllib3<1.23,>=1.21.1 in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (aus Anfragen>=2.13->libsanctions== 0.1.0)
Anforderung bereits erfüllt: idna<2.7,>=2.5 in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (aus Requests>=2.13->libsanctions==0.1. 0)
Anforderung bereits erfüllt: certifi>=2017.4.17 in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (aus Requests>=2.13->libsanctions==0.1.0 )
Anforderung bereits erfüllt: boto3 in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (von morphium->libsanctions==0.1.0)
Anforderung bereits erfüllt: babel>=2.5.1 in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (von dalet->libsanctions==0.1.0)
Anforderung bereits erfüllt: parsedatetime>=2.1 in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (von dalet->libsanctions==0.1.0)
Anforderung bereits erfüllt: urltools>=0.3.2 in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (von dalet->libsanctions==0.1.0)
Anforderung bereits erfüllt: Telefonnummern>=8.8.4 in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (von dalet->libsanctions==0.1.0)
Voraussetzung bereits erfüllt: setuptools in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (von python-Levenshtein->countrynames->libsanctions==0.1.0)
Anforderung bereits erfüllt: botocore<1.8.0,>=1.7.0 in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (von boto3->morphium->libsanctions ==0,1.0)
Anforderung bereits erfüllt: s3transfer<0.2.0,>=0.1.10 in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (von boto3->morphium->libsanctions ==0,1.0)
Anforderung bereits erfüllt: jmespath<1.0.0,>=0.7.1 in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (von boto3->morphium->libsanctions ==0,1.0)
Anforderung bereits erfüllt: pytz>=0a in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (ab babel>=2.5.1->dalet->libsanctions== 0.1.0)
Anforderung bereits erfüllt: zukünftig in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (ab parsedatetime>=2.1->dalet->libsanctions==0.1.0)
Anforderung bereits erfüllt: docutils>=0.10 in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (ab botocore<1.8.0,>=1.7.0->boto3 ->morphium->libsanktionen==0.1.0)
Anforderung bereits erfüllt: python-dateutil<3.0.0,>=2.1 in /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages (ab botocore<1.8.0,> =1.7.0->boto3->morphium->libsanktionen==0.1.0)
Gesammelte Pakete installieren: libsanctions
Ausführen von setup.py developer for libsanctions
Ausführen des Befehls /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/bin/python3 -c "import setuptools, tokenize;__file__='/home/marc/opencompliance/opencompliance/scrapers/libsanctions/setup.py'; f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code , __file__, 'exec'))" entwickeln --no-deps
Laufen entwickeln
laufende egg_info
libsanctions.egg-info/PKG-INFO schreiben
Schreiben von Dependency_Links zu libsanctions.egg-info/dependency_links.txt
Schreiben von namespace_packages in libsanctions.egg-info/namespace_packages.txt
Schreiben von Anforderungen an libsanctions.egg-info/requires.txt
Schreiben von Top-Level-Namen in libsanctions.egg-info/top_level.txt
Manifestdatei 'libsanctions.egg-info/SOURCES.txt' lesen
Manifestdatei 'libsanctions.egg-info/SOURCES.txt' schreiben
Ausführen von build_ext
Erstellen von /home/marc/.local/share/virtualenvs/libsanctions-VUOiacvt/lib/python3.6/site-packages/libsanctions.egg-link (Link zu .)
Hinzufügen von libsanctions 0.1.0 zur Datei easy-install.pth

Installed /home/marc/opencompliance/opencompliance/scrapers/libsanctions

Libsanctions erfolgreich installiert
Aufräumen...

Hilfreichster Kommentar

Ich werde fortfahren und dies schließen, da wir bereits mehrere Probleme bei der Verfolgung dieses Fehlers haben (siehe # 939 # 960 # 936 usw.).

Alle 3 Kommentare

Danke für den Bericht, @marc-fez - das ist ein bekanntes Problem und es gibt bald einen Patch in #958. Wenn Sie in der Zwischenzeit absolute Pfade verwenden, können Sie dies umgehen, indem Sie sie einfach in file:// URIs ändern, also in diesem Fall pipenv install -e file:///home/marc/opencompliance/opencompliance/scrapers/libsanctions/

Ich werde fortfahren und dies schließen, da wir bereits mehrere Probleme bei der Verfolgung dieses Fehlers haben (siehe # 939 # 960 # 936 usw.).

Dies ist jetzt in #958 gelöst

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen