Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"pipenv requires an #egg fragment for version controlled dependencies" warning when installing the BlueJeans meeting API client

Tags:

Adapting the instructions from https://github.com/bluejeans/api-rest-meetings/tree/master/libs/python#pip-install, in a pipenv shell I'm trying to run

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

However, I'm getting the following error message:

β ‹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=.

Here is the full command and response:

(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.

How do I get the egg for this package? Or even better, how could I disbable the requirement to specify an egg?

like image 680
Kurt Peek Avatar asked Jul 06 '18 00:07

Kurt Peek


People also ask

Does Pipenv need requirements txt?

Does Pipenv use requirements txt? If you only have a requirements. txt file available when running pipenv install , pipenv will automatically import the contents of this file and create a Pipfile for you.

How do I enable Pipenv in Python?

To activate the environment, just navigate to your project directory and use pipenv shell to launch a new shell session or use pipenv run <command> to run a command directly.

What is Pipenv in Python?

Pipenv is a tool that provides all necessary means to create a virtual environment for your Python project. It automatically manages project packages through the Pipfile file as you install or uninstall packages. Pipenv also generates the Pipfile.

Which Python is Pipenv using?

pipenv uses a different pyenv installed python to create the venv: artlogic@wardenclyffe:~/Code/random/pipenv-again$ pipenv install -v requests Using python: None Path to python: /home/artlogic/. pyenv/root/versions/3.8. 2/bin/python3 Creating a virtualenv for this project…


1 Answers

Martijn Pieters in How to determine the name of an egg for a Python package on Github? describes how to determine the egg: look up the name argument to the setup() function in the package's setup.py. From https://github.com/bluejeans/api-rest-meetings/blob/master/libs/python/setup.py, this is BlueJeansMeetingsRestApi in this case. So the following works:

(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
like image 89
Kurt Peek Avatar answered Sep 21 '22 14:09

Kurt Peek