-
-
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
Pipfile.lock contains \u0000 characters and installation fails #3357
Comments
It's weird that i can't reproduce it. Can you provide the output of |
Sure.
|
Was this running in cmd or powershell or something else? Can you try setting |
I tried Git bash, Powershell, and cmd.exe. All the same issue. I set PYTHONIOENCODING in the system's variables, I assume that's what you meant? Still the same issue though. |
@BramVanroy can you run |
Both for Powershell and CMD I get
But to be honest I have no idea what that means. |
I'm also having this issue. I create a fresh virtual environment using python 3.6 under Anaconda distribution, latest version of pipenv, and then when I try to install django I get the similar result when attempting:
I get the following error:
after doing so, I get an error installing pytz package dependency due to an incorrect has value, inspecting the hash in the pipfile lock and it's the following: "\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000". I've tried all the same things. Have you figured this out since your last posting? |
@nkabram No, I never found a fix for this, unfortunately. It is a very prominent issue especially when installing files from URLs rather than PyPi. (E.g. CUDA specific versions of a package such as torch.) |
From what I have tested, #3298 fixes this. I tried this on two different Windows 10 machines with Python 3.6 and 3.7, installing the requirements.txt from the OP as well as installing other hardware-specific packages and that seems to work fine now. (Locking is still very slow, though.) Side note: I think that in-between when the problem first started (OP) and today, I may have updated pip. In any case, the issue seems solved for pip 19.0.3 and pipenv 2018.11.27.dev0. Trace:
|
A colleague of mine is hitting the same issue simply installing flask with pipenv on windows.
but no errors happens on my computer (with the same hardware, same environment) We both have pip-19.1.1 and pipenv-2018.11.26 (lastest on pypy). There is a release plan for a fixed version of pipenv ? |
Are you also on Windows? Is the default encoding the same for both systems? I have a feeling that this can be the issue. As you can see in the post before yours, the problem was fixed in a recent branch ere on Github. Pypi lags behind a bit, so try installing from source. |
We are both on windows, and we have the same default encoding on Windows Os and Python. Windows > [System.Text.Encoding]::Default
IsSingleByte : True
BodyName : iso-8859-1
EncodingName : Western European (Windows)
HeaderName : Windows-1252
WebName : Windows-1252
WindowsCodePage : 1252
IsBrowserDisplay : True
IsBrowserSave : True
IsMailNewsDisplay : True
IsMailNewsSave : True
EncoderFallback : System.Text.InternalEncoderBestFitFallback
DecoderFallback : System.Text.InternalDecoderBestFitFallback
IsReadOnly : True
CodePage : 1252 Python import sys
sys.getdefaultencoding() returns
In the next days we will try to install pipenv from source in the host that is showing the issue |
Installing pipenv from source I'm hitting different problem.
|
Same issue here trying to install beautifulsoup4 on wsl |
This issue is still present. Happens when installing ...
"hashes": [
"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"
],
... Gist with my |
While we no longer support |
@matteius I haven't encountered this issue in a very long time, so closing it. Thanks. |
Issue description
Installing a pipenv based on a requirements.txt file (below) in Python 3.6.4 (also tried 3.6.7) on Windows 10 64x fails. Upon investigation it seems something goes wrong with the hashes where the first hash is a sequence of
\u0000
.Expected result
A successful installation.
Actual result
When investigating the Pipfile.lock, I found that the first hash is just a sequence of \u0000 (full file below in the logs):
Trying
pipenv lock --clear
did not solve the issue. This also happened with the packagespandocfilters
andsend2trash
. I even tried a full Python reinstallation.Steps to replicate
Using Python 3.6.4 as a base, install the following requirements.txt file:
$ pipenv --support
Pipenv version:
'2018.11.26'
Pipenv location:
'c:\\python\\python36\\lib\\site-packages\\pipenv'
Python location:
'c:\\python\\python36\\python.exe'
Python installations found:
3.6.4
:C:\Python\Python36\python.exe
2.7
:C:\Python\Python27\python.exe
PEP 508 Information:
System environment variables:
ALLUSERSPROFILE
APPDATA
COMMONPROGRAMFILES
COMMONPROGRAMFILES(X86)
COMMONPROGRAMW6432
COMPUTERNAME
COMSPEC
CUDA_PATH
CUDA_PATH_V9_2
DRIVERDATA
FPS_BROWSER_APP_PROFILE_STRING
FPS_BROWSER_USER_PROFILE_STRING
HOMEDRIVE
HOMEPATH
LOCALAPPDATA
LOGONSERVER
NUMBER_OF_PROCESSORS
NVCUDASAMPLES9_2_ROOT
NVCUDASAMPLES_ROOT
NVTOOLSEXT_PATH
ONEDRIVE
OS
PATH
PATHEXT
PROCESSOR_ARCHITECTURE
PROCESSOR_IDENTIFIER
PROCESSOR_LEVEL
PROCESSOR_REVISION
PROGRAMDATA
PROGRAMFILES
PROGRAMFILES(X86)
PROGRAMW6432
PROMPT
PSMODULEPATH
PUBLIC
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:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\libnvvp;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Perl\c\bin;C:\Perl\perl\site\bin;C:\Perl\perl\bin;C:\Program Files\PuTTY\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Python\Python36\Scripts\;C:\Python\Python36\;C:\Users\Bram\AppData\Local\Microsoft\WindowsApps;C:\Users\Bram\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Bram\AppData\Roaming\npm;C:\Users\Bram\AppData\Local\GitHubDesktop\bin;
Contents of
Pipfile
('C:\Python\projects\udacity-pytorch\Pipfile'):Contents of
Pipfile.lock
('C:\Python\projects\udacity-pytorch\Pipfile.lock'):The text was updated successfully, but these errors were encountered: