Pipenv uninstall Fails to Update Pipfile When Package Name Exists in Comment #2885
Labels
Comments
Yet another bug in contoml/prettytoml. |
This was referenced Nov 7, 2018
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue description
pipenv uninstall
fails to remove package from Pipfile if a comment with the package name exists before the package.Expected result
The package to be remove from the Pipfile
Actual result
The comment is moved up a line, but the package remains in both Pipfile and Pipfile.lock
Steps to replicate
pipenv install django-phonenumber-field phonenumberslite
Edit and have Pipfile like this:
pipenv uninstall phonenumberslite
Output:
New Pipfile:
The package is removed if checked within pip:
Since the package is still listed within the Pipfile, it will get installed for the next pipenv operation.
$ pipenv --support
Pipenv version:
'2018.7.1'
Pipenv location:
'C:\\Users\\Michael\\AppData\\Roaming\\Python\\Python36\\site-packages\\pipenv'
Python location:
'c:\\program files\\python36\\python.exe'
Other Python installations in
PATH
:3.6
:C:\Program Files\Python36\python.exe
3.6.6
:C:\Program Files\Python36\python.exe
3.6.6
:C:\Windows\py.exe
PEP 508 Information:
System environment variables:
ALIASES
ALLUSERSPROFILE
ANSICON
ANSICON_DEF
APPDATA
ARCHITECTURE
CHOCOLATEYINSTALL
CHOCOLATEYLASTPATHUPDATE
CMDER_ROOT
COMMONPROGRAMFILES
COMMONPROGRAMFILES(X86)
COMMONPROGRAMW6432
COMPUTERNAME
COMSPEC
CONEMUANSI
CONEMUANSILOG
CONEMUARGS
CONEMUARGS2
CONEMUBACKHWND
CONEMUBASEDIR
CONEMUBASEDIRSHORT
CONEMUBUILD
CONEMUCFGDIR
CONEMUCONFIG
CONEMUDIR
CONEMUDRAWHWND
CONEMUDRIVE
CONEMUHOOKS
CONEMUHWND
CONEMUPALETTE
CONEMUPID
CONEMUSERVERPID
CONEMUTASK
CONEMUWORKDIR
CONEMUWORKDRIVE
CONFIGSETROOT
DRIVERDATA
GIT_INSTALL_ROOT
HOME
HOMEDRIVE
HOMEPATH
KDS_LANGUAGE
LOCALAPPDATA
LOGONSERVER
NUMBER_OF_PROCESSORS
ONEDRIVE
OS
PATH
PATHEXT
PLINK_PROTOCOL
PROCESSOR_ARCHITECTURE
PROCESSOR_IDENTIFIER
PROCESSOR_LEVEL
PROCESSOR_REVISION
PROGRAMDATA
PROGRAMFILES
PROGRAMFILES(X86)
PROGRAMW6432
PROMPT
PSMODULEPATH
PUBLIC
SESSIONNAME
SVN_SSH
SYSTEMDRIVE
SYSTEMROOT
TEMP
TERM
TESSDATA_PREFIX
TMP
USER-ALIASES
USERDOMAIN
USERDOMAIN_ROAMINGPROFILE
USERNAME
USERPROFILE
VERBOSE-OUTPUT
VS140COMNTOOLS
WINDIR
PYTHONDONTWRITEBYTECODE
PIP_PYTHON_PATH
Pipenvûspecific environment variables:
Debugûspecific environment variables:
PATH
:C:\cmder\bin;C:\cmder\vendor\conemu-maximus5\ConEmu\Scripts;C:\cmder\vendor\conemu-maximus5;C:\cmder\vendor\conemu-maximus5\ConEmu;C:\Program Files\Python35\Scripts\;C:\Program Files\Python35\;C:\Program Files\Python37\Scripts\;C:\Program Files\Python37\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Python36\Scripts\;C:\Program Files\Python36\;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:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\OpenVPN\bin;C:\Program Files (x86)\PDFtk Server\bin\;C:\Program Files\nodejs\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\SQL Operations Studio\bin;C:\Users\Michael\Miniconda3;C:\Users\Michael\Miniconda3\Library\mingw-w64\bin;C:\Users\Michael\Miniconda3\Library\usr\bin;C:\Users\Michael\Miniconda3\Library\bin;C:\Users\Michael\Miniconda3\Scripts;C:\Users\Michael\cmder\vendor\git-for-windows\usr\bin;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Sublime Text 3;C:\Users\Michael\AppData\Roaming\npm;C:\Program Files\PostgreSQL\9.6\bin;C:\Program Files\gs\gs9.21\bin;C:\Users\Michael\Downloads\geckodriver-v0.19.1-win64;C:\Users\Michael\AppData\Roaming\Python\Python36\Scripts;C:\Users\Michael\AppData\Local\Programs\Git\cmd;C:\Users\Michael\AppData\Local\Programs\Git\mingw64\bin;C:\Users\Michael\AppData\Local\Programs\Git\usr\bin;C:\Users\Michael\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Michael\AppData\Local\hyper\app-2.0.0\resources\bin;C:\Users\Michael\AppData\Local\Programs\Git\usr\bin;C:\Users\Michael\AppData\Local\Programs\Git\usr\share\vim\vim74;C:\cmder\
Contents of
Pipfile
('D:\KML\git_code\test\Pipfile'):Contents of
Pipfile.lock
('D:\KML\git_code\test\Pipfile.lock'):The text was updated successfully, but these errors were encountered: