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
When there is a syntax error in the markers in Pipfile, pipenv lock silently ignores it and adds the package without any markers.
Expected result
pipenv should show an error or at least a warning in this case.
Actual result
> pipenv lock --verbose
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Success!
Using pip: -i https://pypi.org/simple
Using pip: -i https://pypi.org/simple
Using pip: -i https://pypi.org/simple
ROUND 1
Current constraints:
win10toast~=0.9
Finding the best candidates:
found candidate win10toast==0.9 (constraint was ~=0.9)
Finding secondary dependencies:
win10toast==0.9 requires pypiwin32, setuptools
New dependencies found in this round:
adding ['pypiwin32', '', '[]']
Removed dependencies in this round:
Unsafe dependencies in this round:
------------------------------------------------------------
Result of round 1: not stable
ROUND 2
Current constraints:
pypiwin32
win10toast~=0.9
Finding the best candidates:
found candidate pypiwin32==223 (constraint was <any>)
found candidate win10toast==0.9 (constraint was ~=0.9)
Finding secondary dependencies:
win10toast==0.9 requires pypiwin32, setuptools
pypiwin32==223 requires pywin32>=223
New dependencies found in this round:
adding ['pywin32', '>=223', '[]']
Removed dependencies in this round:
Unsafe dependencies in this round:
------------------------------------------------------------
Result of round 2: not stable
ROUND 3
Current constraints:
pypiwin32
pywin32>=223
win10toast~=0.9
Finding the best candidates:
found candidate pypiwin32==223 (constraint was <any>)
found candidate pywin32==224 (constraint was >=223)
found candidate win10toast==0.9 (constraint was ~=0.9)
Finding secondary dependencies:
pypiwin32==223 requires pywin32>=223
pywin32==224 requires -
win10toast==0.9 requires pypiwin32, setuptools
------------------------------------------------------------
Result of round 3: stable, done
Updated Pipfile.lock (9c709d)!
Steps to replicate
Provide the steps to replicate (which usually at least includes the commands and the Pipfile).
Create a Pipfile with a syntax error in the markers of a dependency (see below)
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
When there is a syntax error in the markers in Pipfile,
pipenv lock
silently ignores it and adds the package without any markers.Expected result
pipenv should show an error or at least a warning in this case.
Actual result
Steps to replicate
Provide the steps to replicate (which usually at least includes the commands and the Pipfile).
pipenv lock
$ pipenv --support
Pipenv version:
'2018.11.26'
Pipenv location:
'c:\\users\\nyuszika7h\\appdata\\local\\programs\\python\\python37\\lib\\site-packages\\pipenv'
Python location:
'c:\\users\\nyuszika7h\\appdata\\local\\programs\\python\\python37\\python.exe'
Python installations found:
3.7.3
:C:\Users\nyuszika7h\AppData\Local\Programs\Python\Python37\python.exe
3.7.1
:C:\Users\nyuszika7h\AppData\Local\Programs\Python\Python37-32\python.exe
3.6.8
:C:\Users\nyuszika7h\AppData\Local\Programs\Python\Python36\python.exe
2.7
:C:\Users\nyuszika7h\AppData\Local\Programs\Python\Python27\python.exe
PEP 508 Information:
System environment variables:
ALLUSERSPROFILE
ANDROID_SDK_HOME
APPDATA
ASL.LOG
COMMONPROGRAMFILES
COMMONPROGRAMFILES(X86)
COMMONPROGRAMW6432
COMPUTERNAME
COMSPEC
DRIVERDATA
ESET_OPTIONS
FPS_BROWSER_APP_PROFILE_STRING
FPS_BROWSER_USER_PROFILE_STRING
HOMEDRIVE
HOMEPATH
INTELLIJ IDEA
INTEL_DEV_REDIST
JD2_HOME
LIBTHAI_DICTDIR
LOCALAPPDATA
LOGONSERVER
MIC_LD_LIBRARY_PATH
NUMBER_OF_PROCESSORS
ONEDRIVE
OS
PATH
PATHEXT
PROCESSOR_ARCHITECTURE
PROCESSOR_IDENTIFIER
PROCESSOR_LEVEL
PROCESSOR_REVISION
PROGRAMDATA
PROGRAMFILES
PROGRAMFILES(X86)
PROGRAMW6432
PSMODULEPATH
PT7HOME
PUBLIC
PYCHARM
QT_DEVICE_PIXEL_RATIO
SESSIONNAME
SYSTEMDRIVE
SYSTEMROOT
TEMP
TMP
USERDOMAIN
USERDOMAIN_ROAMINGPROFILE
USERNAME
USERPROFILE
WINDIR
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv?specific environment variables:
Debug?specific environment variables:
PATH
:C:\Perl64\site\bin;C:\Perl64\bin;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\WINDOWS\System32\OpenSSH\;C:\Android;C:\Windows\System32;C:\Program Files\Git\cmd;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\WinSCP\;C:\Program Files (x86)\Universal Extractor;C:\Program Files (x86)\Universal Extractor\bin;C:\Users\nyuszika7h\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\nyuszika7h\AppData\Local\Programs\Python\Python37\;C:\Users\nyuszika7h\AppData\Local\Programs\Python\Python27\Scripts\;C:\Users\nyuszika7h\AppData\Local\Microsoft\WindowsApps;C:\Users\nyuszika7h\Downloads\Apps\aria2;C:\Users\nyuszika7h\Downloads\Apps\FFmpeg\bin;C:\Program Files\MKVToolNix;C:\Users\nyuszika7h\AppData\Local\Programs\Fiddler;C:\Windows;C:\Program Files (x86)\Nmap;C:\Users\nyuszika7h\AppData\Local\Programs\Microsoft VS Code\bin;C:\texlive\2018\bin\win32;C:\Users\nyuszika7h\AppData\Local\Microsoft\WindowsApps;C:\Program Files\GPAC;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\nyuszika7h\Downloads\Apps;C:\Program Files\JetBrains\IntelliJ IDEA 2018.3.4\bin;C:\Program Files\JetBrains\PyCharm 2018.3.4\bin;C:\Program Files (x86)\Nmap;C:\Program Files (x86)\Nmap;c:\users\nyuszika7h\appdata\local\programs\python\python37\lib\site-packages\pywin32_system32
Contents of
Pipfile
('F:\Temp\SampleProject\Pipfile'):Contents of
Pipfile.lock
('F:\Temp\SampleProject\Pipfile.lock'):