-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Be sure to check the existing issues (both open and closed!), and make sure you are running the latest version of Pipenv.
Check the diagnose documentation for common issues before posting! We may close your issue if it is very similar to one of them. Please be considerate, or be on your way.
Make sure to mention your debugging experience if the documented solution failed.
Issue description
The check command crashes on a freshly new project.
pipenv, version 2023.12.1
Expected result
Check completed and passed since there is nothing there.
Actual result
The check command crashes with the exception FileNotFoundError and refers to the 'Pipfile.lock' missing.
File "/usr/lib/python3.11/site-packages/pipenv/project.py", line 1292, in load_lockfile
with open(self.lockfile_location, encoding="utf-8") as lock:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/uuuuu/xxxxxx/Pipfile.lock'
Steps to replicate
Created a new environment with the shell command:
$ pipenv shell
Executed a check command immediately after:
$ pipenv check
$ pipenv --support
Pipenv version: '2023.12.1'
Pipenv location: '/usr/lib/python3.11/site-packages/pipenv'
Python location: '/usr/bin/python'
OS Name: 'posix'
User pip version: '23.3.2'
user Python installations found:
PEP 508 Information:
{'implementation_name': 'cpython',
'implementation_version': '3.11.8',
'os_name': 'posix',
'platform_machine': 'x86_64',
'platform_python_implementation': 'CPython',
'platform_release': '6.8.4-arch1-1',
'platform_system': 'Linux',
'platform_version': '#1 SMP PREEMPT_DYNAMIC Fri, 05 Apr 2024 00:14:23 +0000',
'python_full_version': '3.11.8',
'python_version': '3.11',
'sys_platform': 'linux'}
System environment variables:
SHELL
COLORTERM
XDG_SESSION_PATH
PIPENV_ACTIVE
I3SOCK
LC_ADDRESS
LC_NAME
DESKTOP_SESSION
LC_MONETARY
KITTY_PID
XCURSOR_SIZE
EDITOR
XDG_SEAT
PWD
XDG_SESSION_DESKTOP
LOGNAME
XDG_SESSION_TYPE
DESKTOP_STARTUP_ID
KITTY_PUBLIC_KEY
MOTD_SHOWN
PIP_PYTHON_PATH
HOME
LANG
LC_PAPER
VIRTUAL_ENV
SWAYSOCK
WAYLAND_DISPLAY
KITTY_WINDOW_ID
XDG_SEAT_PATH
XDG_SESSION_CLASS
LC_IDENTIFICATION
TERM
TERMINFO
USER
PIP_DISABLE_PIP_VERSION_CHECK
PAM_KWALLET5_LOGIN
DISPLAY
SHLVL
LC_TELEPHONE
LC_MEASUREMENT
XDG_VTNR
XDG_SESSION_ID
VIRTUAL_ENV_PROMPT
PYTHONDONTWRITEBYTECODE
XDG_RUNTIME_DIR
PS1
DEBUGINFOD_URLS
LC_TIME
BROWSER
PATH
DBUS_SESSION_BUS_ADDRESS
MAIL
KITTY_INSTALLATION_DIR
LC_NUMERIC
OLDPWD
_
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
PIPENV_ACTIVE
:1
Debug–specific environment variables:
PATH
:/home/joao/.local/share/virtualenvs/squire-wars-YrXI7IIf/bin:/home/joao/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/joao/bin
SHELL
:/bin/bash
EDITOR
:helix
LANG
:en_US.UTF-8
PWD
:/home/joao/workspace/squire-wars
VIRTUAL_ENV
:/home/joao/.local/share/virtualenvs/squire-wars-YrXI7IIf
Contents of Pipfile
('/home/joao/workspace/squire-wars/Pipfile'):
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
[dev-packages]
[requires]
python_version = "3.11"