web-dev-qa-db-ja.com

BlueJeansミーティングAPIクライアントをインストールする際の「pipenvにはバージョン管理された依存関係には#Eggフラグメントが必要」警告

https://github.com/bluejeans/api-rest-meetings/tree/master/libs/python#pip-install の説明をpipenv Shell実行しようとしています

pipenv install git+https://github.com/bluejeans/api-rest-meetings.git@pip-repo

ただし、次のエラーメッセージが表示されます。

警告:pipenvには、バージョン管理された依存関係のための#Eggフラグメントが必要です。リモート依存関係をgit + https://github.com/bluejeans/api-rest-meetings.git#Egg= の形式でインストールしてください。

完全なコマンドと応答は次のとおりです。

(lucy-web-CVxkrCFK) bash-3.2$ pipenv install git+https://github.com/bluejeans/api-rest-meetings.git@pip-repo
Installing git+https://github.com/bluejeans/api-rest-meetings.git@pip-repo...
⠋WARNING: pipenv requires an #Egg fragment for version controlled dependencies. Please install remote dependency in the form git+https://github.com/bluejeans/api-rest-meetings.git#Egg=<package-name>.
ABORTING INSTALL... You will have to reinstall any packages that failed to install.
You may have to manually run pipenv lock when you are finished.

このパッケージのEggを取得するにはどうすればよいですか?あるいはもっと良いことに、卵を指定する要件を無効にするにはどうすればよいですか?

17
Kurt Peek

Martijn Pieters in Pythonパッケージの卵の名前を判別する方法 は、卵を判別する方法を説明しています:nameを参照してくださいパッケージの_setup.py_のsetup()関数への引数。From https://github.com/bluejeans/api-rest-meetings/blob/master/libs/python/setup .py 、これはこの場合BlueJeansMeetingsRestApiなので、次のように機能します。

_(lucy-web-CVxkrCFK) bash-3.2$ pipenv install git+https://github.com/bluejeans/api-rest-meetings.git@pip-repo#Egg=BlueJeansMeetingsRestApi
Installing git+https://github.com/bluejeans/api-rest-meetings.git@pip-repo#Egg=BlueJeansMeetingsRestApi...
⠇Warning: You installed a VCS dependency in non-editable mode. This will work fine, but sub-dependencies will not be resolved by $ pipenv lock.
  To enable this sub-dependency functionality, specify that this dependency is editable.
Collecting BlueJeansMeetingsRestApi from git+https://github.com/bluejeans/api-rest-meetings.git@pip-repo#Egg=BlueJeansMeetingsRestApi
  Cloning https://github.com/bluejeans/api-rest-meetings.git (to revision pip-repo) to /private/var/folders/dc/nv4yxcrd0zqd2dtxlj281b740000gn/T/pip-install-s0g6q9m5/BlueJeansMeetingsRestApi
Requirement already satisfied: urllib3>=1.15 in /Users/kurtpeek/.local/share/virtualenvs/lucy-web-CVxkrCFK/lib/python3.6/site-packages (from BlueJeansMeetingsRestApi) (1.23)
Requirement already satisfied: six>=1.10 in /Users/kurtpeek/.local/share/virtualenvs/lucy-web-CVxkrCFK/lib/python3.6/site-packages (from BlueJeansMeetingsRestApi) (1.11.0)
Requirement already satisfied: certifi in /Users/kurtpeek/.local/share/virtualenvs/lucy-web-CVxkrCFK/lib/python3.6/site-packages (from BlueJeansMeetingsRestApi) (2018.4.16)
Requirement already satisfied: python-dateutil in /Users/kurtpeek/.local/share/virtualenvs/lucy-web-CVxkrCFK/lib/python3.6/site-packages (from BlueJeansMeetingsRestApi) (2.6.0)
Building wheels for collected packages: BlueJeansMeetingsRestApi
  Running setup.py bdist_wheel for BlueJeansMeetingsRestApi: started
  Running setup.py bdist_wheel for BlueJeansMeetingsRestApi: finished with status 'done'
  Stored in directory: /private/var/folders/dc/nv4yxcrd0zqd2dtxlj281b740000gn/T/pip-ephem-wheel-cache-adn35yq2/wheels/9b/3f/9d/57d42cddf6b678af2c5d2c805a74b1f35102ab62d4da6f5d4e
Successfully built BlueJeansMeetingsRestApi
Installing collected packages: BlueJeansMeetingsRestApi
Successfully installed BlueJeansMeetingsRestApi-1.0.0

Adding git+https://github.com/bluejeans/api-rest-meetings.git@pip-repo#Egg=BlueJeansMeetingsRestApi to Pipfile's [packages]...
Pipfile.lock (7950e0) out of date, updating to (584b28)...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Updated Pipfile.lock (584b28)!
Installing dependencies from Pipfile.lock (584b28)...
  ????   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 80/80 — 00:00:10
_
19
Kurt Peek