pipenv install fails on macOS #5638
Unanswered
mkp-bartsch
asked this question in
Q&A
Replies: 1 comment 3 replies
-
@mkp-bartsch -- I am trusting that isn't the actual secret you posted in the discussion contents? I'd have to think more about your larger question though. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
we use pipenv in our company to organize the dependencies of our python projects.
As package server we use our own pypi server. The pypi server forwards requests to the public pypi server if packages are not found on ours. The credentials are inserted into the URL of the Pypi server via environment variables, see below. The environment variables are configured in the .bashrc-file.
Now to the problem:
On Windows and Linux systems the installation of the pipenvironment works as expected.
On MacOS systems the username and password from the environment variables are not inserted correctly into the URL. The behaviour is same for zsh and bash. The credentials are configured in .bashrc and .zshrc file.
Used versions: (same on all test systems)
pipenv version: 2023.3.20
pip version: 23.0.1
Python version: 3.8.10
macOS 13.2.1
Example pipfile:
It doesn't matter if private or public packages are defined. The basic problem seems to be that the URL is not built correctly. Therefore, I have only given numpy as an example here now.
Installing the pipenv:
Here is the output log:
The value MY_PYPI_SECRET in the last line was replaced here for the contribution of me. The log printed the pypi server password from the .bashrc or .zshrc file in plain text.
Is this a bug or is it due to some configuration?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions