-
-
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
UnicodeDecodeError in Python 3.5.2 #2820
Comments
Since |
The specific file is |
The file is intended to be machine-readable, and therefore can contain non-human readable characters. This is the main reason I mentioned “upload the file”; the problem is likely only discoverable if the file could be provided as-is. Try adding a breakpoint to stop the program right when it errors, copy the file out while it still exists (it gets destroyed when the process it represents terminates), and upload it somewhere. |
Thanks! However, I can't reproduce this anymore (have since restarted). Probably there was a process with a broken utf-8 name on my system... Closing for now. |
Ok, it's back, I copied the relevant
|
Well, seems like the problem is simple—the arguments are not UTF-8 decodable. And honestly we are not interested in those things anyway (we only actually read the first part, the command path), so the fix should be fairly straightforward. Thanks for all the help! I’ll take it from here, and this will be fixed in the next release (no eta right now). |
- Update shellingham, tomlkit, requests, urllib3, certifi, vistir and parse - Fixes #2820 - Fixes #2852 Signed-off-by: Dan Ryan <[email protected]>
- Upgrade pythonfinder - Upgrade vistir - Upgrade requirementslib - Vendor backported version of `functools.lru_cache` for performance - Fix editable dependency installation when markers are present - Fix extraneous resource warnings - Fix filesystem output stream encoding issues - Fix pythonfinder non-standard python name issues - Provide full interaction layer to `Pipfile` and `Pipfile.lock` in requirementslib - Fixes #3017 - Fixes #3014 - Fixes #3021 - Fixes #3019 Signed-off-by: Dan Ryan <[email protected]> Update vendored dependencies - Update shellingham, tomlkit, requests, urllib3, certifi, vistir and parse - Fixes #2820 - Fixes #2852 Signed-off-by: Dan Ryan <[email protected]> Cleanup old vendored dependencies Signed-off-by: Dan Ryan <[email protected]>
Even with the latest version and after 4 years, it still happens. |
@krishnasism what version of pipenv and python? Python 3.5 and 3.6 support was dropped. |
Issue description
Cannot run
pipenv install
orpipenv shell
Actual result
Have removed ~/.cache/pipenv and ~/.local/share/virtualenvs, but to no avail.
Added some debugging, it seems fcmdline.read() equals "cat" in some case. Have no idea why it would struggle with utf-8 chars?
Steps to replicate
$ pipenv --support
Pipenv version:
'2018.7.1'
Pipenv location:
'/usr/local/lib/python3.5/dist-packages/pipenv'
Python location:
'/usr/bin/python3'
Other Python installations in
PATH
:2.7
:/usr/bin/python2.7
2.7
:/usr/bin/python2.7
3.5
:/usr/bin/python3.5m
3.5
:/usr/bin/python3.5
2.7.12
:/usr/bin/python
2.7.12
:/usr/bin/python2
3.5.2
:/usr/bin/python3
PEP 508 Information:
System environment variables:
XDG_SEAT_PATH
LC_ALL
LC_NUMERIC
XDG_VTNR
GDM_LANG
XDG_CURRENT_DESKTOP
UPSTART_JOB
XDG_MENU_PREFIX
MANDATORY_PATH
GLADE_PIXMAP_PATH
TERM
SESSION
PS1
XDG_CONFIG_DIRS
XDG_GREETER_DATA_DIR
INSTANCE
VIRTUALENVWRAPPER_SCRIPT
HOME
QT_LINUX_ACCESSIBILITY_ALWAYS_ON
LESSCLOSE
DEBFULLNAME
DESKTOP_SESSION
SESSION_MANAGER
DEFAULTS_PATH
GLADE_CATALOG_PATH
GTK_IM_MODULE
QT_ACCESSIBILITY
LESSOPEN
XDG_RUNTIME_DIR
DBUS_SESSION_BUS_ADDRESS
XAUTHORITY
UPSTART_EVENTS
_VIRTUALENVWRAPPER_API
LC_TIME
PWD
LC_TELEPHONE
CLUTTER_IM_MODULE
GOPATH
EMAIL
XDG_SESSION_PATH
SHLVL
LANG
XDG_SESSION_TYPE
GLADE_MODULE_PATH
GPG_AGENT_INFO
IM_CONFIG_PHASE
GNOME_KEYRING_CONTROL
UPSTART_INSTANCE
SSH_AUTH_SOCK
COLORTERM
LC_MONETARY
SESSIONTYPE
LC_PAPER
USER
LOGNAME
PYTHONDONTWRITEBYTECODE
LANGUAGE
XMODIFIERS
XDG_SESSION_DESKTOP
LC_IDENTIFICATION
GNOME_KEYRING_PID
GDMSESSION
LC_MEASUREMENT
UPSTART_SESSION
LC_NAME
XDG_SEAT
DISPLAY
GTK_OVERLAY_SCROLLING
LC_ADDRESS
QT4_IM_MODULE
SHELL
QT_IM_MODULE
OLDPWD
PATH
CLUTTER_BACKEND
XDG_DATA_DIRS
WINDOWID
PIP_PYTHON_PATH
QT_STYLE_OVERRIDE
JOB
XDG_SESSION_ID
_
LS_COLORS
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/home/willem/code/golang/bin:/home/willem/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/willem/bin
SHELL
:/bin/bash
LANG
:en_US.UTF-8
PWD
:/home/willem/code/shared/freeflarum
Contents of
Pipfile
('/home/willem/Dropbox/code/freeflarum/Pipfile'):Contents of
Pipfile.lock
('/home/willem/Dropbox/code/freeflarum/Pipfile.lock'):The text was updated successfully, but these errors were encountered: