Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipenv install -r dir/requirements.txt does not actually install the requirements #6316

Open
frickm opened this issue Nov 19, 2024 · 1 comment
Labels

Comments

@frickm
Copy link

frickm commented Nov 19, 2024

Be sure to check the existing issues (both open and closed!), and make sure you are running the latest version of Pipenv.

It happens with pipenv 2024.4.0

Issue description

On a jenkins-server, we want to create a venv from another directory (not the current working directory). So when I run the followi
pipenv install -r dir/requirements.txt a virtualenv is created but the actual packages are not installed.
requirements.txt

If I do the same locally on my Mac, I get the following:

Creating a virtualenv for this project
Pipfile: localdir/Pipfile
Using default python from /opt/homebrew/Cellar/pipenv/2024.4.0/libexec/bin/python3.13.0 to create virtualenv...
⠼ Creating virtual environment...created virtual environment CPython3.13.0.final.0-64 in 288ms
  creator CPython3macOsBrew(dest=/Users/frick/.virtualenvs/medical-content-release-job-mUKh8oJ4, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, via=copy, app_data_dir=/Users/frick/Library/Application Support/virtualenv)
    added seed packages: pip==24.3.1
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

✔ Successfully created virtual environment!
Virtualenv location: /Users/frick/.virtualenvs/medical-content-release-job-mUKh8oJ4
Creating a Pipfile for this project...
Pipfile.lock not found, creating...
Locking [packages] dependencies...
Locking [dev-packages] dependencies...
Updated Pipfile.lock (494d5b4f482f0ef471f49afe28f00ec1a2ff75da2ce65060d8cabaeb3da2f100)!
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
Requirements file provided! Importing into Pipfile...
Installing dependencies from Pipfile.lock (a2f100)...

After a pipenv shell and a pip list I see that no dependencies are installed.

Our logs show that exactly the same command worked for pipenv version 2024.1.0.

Expected result

I expected the venv being installed in my working directory together with all the requirements specified.

Actual result

An empty venv.

Steps to replicate

Provide the steps to replicate (which usually at least includes the commands and the Pipfile).

This should be replicable on all machines (the machine where it happened as a debian with python 3.9 - locally I'm on a mac with python 3.13.0


$ pipenv --support

Pipenv version: '2024.4.0'

Pipenv location: '/opt/homebrew/Cellar/pipenv/2024.4.0/libexec/lib/python3.13/site-packages/pipenv'

Python location: '/opt/homebrew/Cellar/pipenv/2024.4.0/libexec/bin/python'

OS Name: 'posix'

User pip version: '24.3.1'

user Python installations found:

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.13.0',
 'os_name': 'posix',
 'platform_machine': 'arm64',
 'platform_python_implementation': 'CPython',
 'platform_release': '23.6.0',
 'platform_system': 'Darwin',
 'platform_version': 'Darwin Kernel Version 23.6.0: Thu Sep 12 23:35:29 PDT '
                     '2024; root:xnu-10063.141.1.701.1~1/RELEASE_ARM64_T6000',
 'python_full_version': '3.13.0',
 'python_version': '3.13',
 'sys_platform': 'darwin'}

System environment variables:

  • TERM_SESSION_ID
  • SSH_AUTH_SOCK
  • LC_TERMINAL_VERSION
  • COLORFGBG
  • ITERM_PROFILE
  • XPC_FLAGS
  • LANG
  • PWD
  • SHELL
  • __CFBundleIdentifier
  • TERM_FEATURES
  • TERM_PROGRAM_VERSION
  • TERM_PROGRAM
  • PATH
  • LC_TERMINAL
  • COLORTERM
  • COMMAND_MODE
  • TERM
  • TERMINFO_DIRS
  • HOME
  • TMPDIR
  • USER
  • XPC_SERVICE_NAME
  • LOGNAME
  • ITERM_SESSION_ID
  • __CF_USER_TEXT_ENCODING
  • SHLVL
  • OLDPWD
  • HOMEBREW_PREFIX
  • HOMEBREW_CELLAR
  • HOMEBREW_REPOSITORY
  • INFOPATH
  • PAGER
  • LESS
  • LSCOLORS
  • JENV_SHELL
  • JENV_LOADED
  • JENV_FORCEJAVAHOME
  • JENV_FORCEJDKHOME
  • EDITOR
  • LC_ALL
  • LC_TIME
  • MANPATH
  • VIRTUALENVWRAPPER_PYTHON
  • WORKON_HOME
  • VIRTUALENVWRAPPER_VIRTUALENV
  • VIRTUALENVWRAPPER_VIRTUALENV_CLONE
  • VIRTUALENVWRAPPER_PROJECT_FILENAME
  • VIRTUALENVWRAPPER_WORKON_CD
  • VIRTUALENVWRAPPER_SCRIPT
  • VIRTUALENVWRAPPER_HOOK_DIR
  • JAVA_HOME
  • JDK_HOME
  • NPM_TOKEN
  • ADA_SECRETS_CERTS_DIR
  • OPENAI_API_KEY
  • FIREWORKS_API_KEY
  • _
  • PIP_DISABLE_PIP_VERSION_CHECK
  • PYTHONDONTWRITEBYTECODE
  • PYTHONFINDER_IGNORE_UNSUPPORTED

Pipenv–specific environment variables:

Debug–specific environment variables:

  • PATH: /Users/frick/.pyenv/versions/3.8.12/bin:/Users/frick/.pyenv/versions/3.7.12/bin:/Users/frick/.pyenv/versions/3.9.9/bin:/Users/frick/.pyenv/versions/3.12.4/bin:/Users/frick/.pyenv/versions/3.10.0/bin:/opt/homebrew/opt/[email protected]/bin:/usr/local/sbin:/Users/frick/.jenv/shims:/opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin:/usr/local/opt/gnu-sed/libexec/gnubin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/bin:/Users/frick/.jenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Users/frick/.local/bin:/Users/frick/.antigen/bundles/robbyrussell/oh-my-zsh/lib:/Users/frick/.antigen/bundles/zsh-users/zsh-syntax-highlighting:/Users/frick/.antigen/bundles/zsh-users/zsh-history-substring-search:/Users/frick/.antigen/bundles/zsh-users/zsh-autosuggestions:/Users/frick/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/macos:/Users/frick/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/jenv:/Users/frick/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git:/Users/frick/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/python:/Users/frick/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker:/Users/frick/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker-compose:/Users/frick/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/mvn:/Users/frick/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/brew:/Users/frick/.antigen/bundles/rupa/z:/Users/frick/infra/base-images/app-install:/Users/frick/.local/bin
  • SHELL: /bin/zsh
  • EDITOR: vim
  • LANG: en_US.UTF-8
  • PWD: /Users/frick/Xdev/medical-content-release-job

@matteius matteius added the triage label Dec 2, 2024
@matteius
Copy link
Member

I could not reproduce this @frickm :

python-selenium-browserstack % pipenv install -r requirements.txt
Creating a virtualenv for this project
Pipfile: /Users/mdavis/Projects/python-selenium-browserstack/Pipfile
Using default python from /Users/mdavis/.pyenv/versions/3.10.13/bin/python3.103.10.13 to create virtualenv...
⠏ Creating virtual environment...created virtual environment CPython3.10.13.final.0-64 in 665ms
  creator CPython3Posix(dest=/Users/mdavis/.virtualenvs/python-selenium-browserstack-q3NgdaxQ, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/mdavis/Library/Application Support/virtualenv)
    added seed packages: pip==24.3.1, setuptools==75.3.0, wheel==0.44.0
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

✔ Successfully created virtual environment!
Virtualenv location: /Users/mdavis/.virtualenvs/python-selenium-browserstack-q3NgdaxQ
requirements.txt found in /Users/mdavis/Projects/python-selenium-browserstack instead of Pipfile! Converting...
✔ Success!
Warning: Your Pipfile now contains pinned versions, if your requirements.txt did.
We recommend updating your Pipfile to specify the "*" version, instead.
Pipfile.lock not found, creating...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✔ Success!
Locking [dev-packages] dependencies...
Updated Pipfile.lock (ce6e9e674dcacd84ea0e3d6fb8576b5c7925a52f1b4d3bafdc228080cf6219a1)!
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
Requirements file provided! Importing into Pipfile...
Installing dependencies from Pipfile.lock (6219a1)...
mdavis@ python-selenium-browserstack % pipenv run pip freeze
Appium-Python-Client==4.4.0
attrs==24.2.0
browserstack-local==1.2.9
browserstack_sdk==1.23.0
certifi==2024.8.30
charset-normalizer==3.4.0
dukpy==0.5.0
exceptiongroup==1.2.2
execnet==2.1.1
filelock==3.16.1
gitdb==4.0.11
GitPython==3.1.43
h11==0.14.0
idna==3.10
iniconfig==2.0.0
outcome==1.3.0.post0
packaging==24.2
percy-appium-app==2.0.6
pluggy==1.5.0
psutil==6.1.0
pyobjc-core==10.3.2
pyobjc-framework-Cocoa==10.3.2
pyobjc-framework-SystemConfiguration==10.3.2
PyPAC==0.16.4
PySocks==1.7.1
pytest==8.3.4
pytest-xdist==3.6.1
python-dotenv==1.0.1
PyYAML==6.0.2
requests==2.32.3
requests-file==2.1.0
requests-toolbelt==1.0.0
selenium==4.27.1
smmap==5.0.1
sniffio==1.3.1
sortedcontainers==2.4.0
tldextract==5.1.3
tomli==2.2.1
trio==0.27.0
trio-websocket==0.11.1
typing_extensions==4.12.2
urllib3==2.2.3
websocket-client==1.8.0
wsproto==1.2.0
mdavis @ python-selenium-browserstack % pipenv --version
pipenv, version 2024.4.0```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants