-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
On Windows, specifying a **relative path** in "pipenv install" command occurs OSError: Bad Path #5789
Comments
Hmmm, I spent a bit of time trying to debug this last night and this bug is actually occurring in an internal pip method we call, which is odd seeing as pip handles the same command just fine. |
@alumuko This appears to also be solved on the branch that drops requirementslib: #5793
|
Relative extras specifiers also appears to be working on that branch :-D
|
Has this issue been fixed by now? What needs to be updated? Package pip or pipenv or both? |
@ROT-at-OpenEP as mentioned in my last comments, there is a forward looking branch that I believe fixes this issue. #5793 |
Issue description
On Windows, specifying a relative path in "pipenv install" command as shown below will result in "OSError: Bad path: C;\C:".
(The drive letter "C" appears twice)
pipenv install ./../packages/pyparsing-3.1.0-py3-none-any.whl
Expected result
On Linux, same command is no problem. (Success)
On Windows, "pipenv run pip install" does not cause this problem. (Success)
However, I prefer to use "pipenv install" because "pip install" does not save the installation information into the Pipfile.
$ pipenv --support
Pipenv version:
'2023.7.11'
Pipenv location:
'C:\\Users\\Main User\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\pipenv'
Python location:
'C:\\Users\\Main User\\AppData\\Local\\Programs\\Python\\Python311\\python.exe'
OS Name:
'nt'
User pip version:
'23.1.2'
user Python installations found:
PEP 508 Information:
System environment variables:
ALLUSERSPROFILE
APPDATA
COMMONPROGRAMFILES
COMMONPROGRAMFILES(X86)
COMMONPROGRAMW6432
COMPUTERNAME
COMSPEC
DRIVERDATA
HOMEDRIVE
HOMEPATH
LOCALAPPDATA
LOGONSERVER
NUMBER_OF_PROCESSORS
ONEDRIVE
OS
PATH
PATHEXT
PIPENV_VENV_IN_PROJECT
PROCESSOR_ARCHITECTURE
PROCESSOR_IDENTIFIER
PROCESSOR_LEVEL
PROCESSOR_REVISION
PROGRAMDATA
PROGRAMFILES
PROGRAMFILES(X86)
PROGRAMW6432
PSMODULEPATH
PUBLIC
SESSIONNAME
SYSTEMDRIVE
SYSTEMROOT
TEMP
TMP
USERDOMAIN
USERDOMAIN_ROAMINGPROFILE
USERNAME
USERPROFILE
VBOX_MSI_INSTALL_PATH
WINDIR
__PSLOCKDOWNPOLICY
PYTHONDONTWRITEBYTECODE
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
PIPENV_VENV_IN_PROJECT
:true
Contents of
Pipfile
('D:\Develop\pipenv-test\testapp\Pipfile'):The text was updated successfully, but these errors were encountered: