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 · 0 comments

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

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

No branches or pull requests

1 participant