-
-
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
.DS_Store in pyenv root cause pipenv "ValueError: Not a valid python version: <LegacyVersion('.DS_Store')>" #3208
Comments
Can you try |
This should be handles now |
Yes seems it's fixed now. I reinstalled python via pyenv due to other reason and now I cannot reproduce the problem. |
okay, sorry for the trouble! |
I'm not sure what's happening but the problem happened again on my computer. Do I have to use |
I can produce pretty much the same error on an Ubuntu Linux machine. Obviously no .DS_Store file present.
|
@timburgess have you found a solution, I have tried installing update-vendor branch and it doesn't solve it. What linux distro/version do you use? |
I’m running Ubuntu 18.10 No, I haven’t found any resolution - this is my first exposure to pipenv. |
@timburgess same for me Ubuntu 18.10! Keep me posted, if you do find anything! |
Try installing the latest version and if you have a problem similar to this one please file a separate issue so we can triage and get a fix into tomorrow’s bugfix release |
😂The latest version is completely broken(#3224, even setting pyenv global version won't help) and I have to downgrade to 2018.10.13 again. |
Thank you for that, @fr0der1c! I was able to continue using pipenv for now by installing it with |
We have a fix merged for this already and should be releasing today |
Today I saw the original error message from pipenv==2018.10.13, and the related error below from 2018.11.26. Deleting ~/.pyenv/versions/.DS_Store still helps, fortunately!
|
I think this "closed" issue should be revisited. While using pipenv, version 2018.11.26, and upon executing the I tried executing
I removed the ~/.pyenv/versions/.DS_Store as indicated above as a possible solution.
Perhaps |
Yeah, sorry to bug about this but it's been a really annoying couple of hours for me. For all who look into this problem on their own:
|
Tried every which way I could to install pipenv, brew, pip etc. with no luck. I could install it with brew, latest version only of course, pipenv still fails. If I install it using pip install it would in essence perform a python -m pip install. Even that failed with the .DS_Store error because it installed the latest version. It was only when I specifically installed version 2018.10.13 did it finally work. If I did a brew search for the 2018.10.13 version and used the url it failed the install on a tag error. Spent many hours sorting this out. |
Just remove ~/.pyenv/versions/.DS_Store, then run |
This issue is fixed on the master branch of pipenv but can be resolved by deleting the folder mentioned by @waysup in the meantime |
Just for the record, this issue still exists. #3208 (comment) helps but is cumbersome. |
Still there ;( |
|
I had one in two places... I think a better version is:
|
I just installed the latest today and it's definitely still there. |
I have just released a pre-release of the latest version of pipenv, this should address the issue mentioned here. You can test it by running |
Issue description
When trying to run
pipenv sync
, gotValueError: Not a valid python version: <LegacyVersion('.DS_Store')>
error. Deleting~/.pyenv/versions/.DS_Store
helps.Expected result
pipenv should ignore .DS_Store file.
Actual result
Steps to replicate
(This happens on Mac, since .DS_Store is a macOS auto-generated file) Put a .DS_Store under pyenv's
versions
folder$ pipenv --support
Pipenv version:
'2018.10.13'
Pipenv location:
'/Users/vencent/.pyenv/versions/3.6.0/lib/python3.6/site-packages/pipenv'
Python location:
'/Users/vencent/.pyenv/versions/3.6.0/bin/python3.6'
Python installations found:
3.6.0
:/Users/vencent/.pyenv/shims/python3
3.6.0
:/Users/vencent/.pyenv/shims/python
3.6.0
:/Users/vencent/.pyenv/shims/python3.6
3.6.0
:/Users/vencent/.pyenv/shims/python3.6m
3.6.0
:/Users/vencent/.pyenv/versions/3.6.0/bin/python3.6
3.6.0
:/Users/vencent/.pyenv/versions/3.6.0/bin/python3.6m
3.5.0
:/Users/vencent/.pyenv/versions/3.5.0/bin/python3.5
3.5.0
:/Users/vencent/.pyenv/versions/3.5.0/bin/python3.5m
2.7.14
:/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/bin/python2.7
2.7.10
:/usr/bin/python
2.7.10
:/usr/bin/pythonw
2.7.10
:/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
2.7
:/Users/vencent/.pyenv/versions/2.7/bin/python
2.7
:/Users/vencent/.pyenv/versions/2.7/bin/python2.7
PEP 508 Information:
System environment variables:
AUTOJUMP_ERROR_PATH
MODE
PYENV_ROOT
AUTOJUMP_SOURCED
TERM
SHELL
CLICOLOR
TMPDIR
Apple_PubSub_Socket_Render
PYENV_VERSION
LC_ALL
ZSH
http_proxy
USER
SSH_AUTH_SOCK
PYENV_DIR
__CF_USER_TEXT_ENCODING
PAGER
LSCOLORS
all_proxy
PATH
PWD
SENTRY_URL
LANG
PYENV_HOOK_PATH
XPC_FLAGS
SENTRY_AUTH_TOKEN
https_proxy
XPC_SERVICE_NAME
PYENV_SHELL
SHLVL
HOME
SENTRY_ORG
LESS
LOGNAME
LC_CTYPE
PYTHONDONTWRITEBYTECODE
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/Users/vencent/.pyenv/versions/3.6.0/bin:/usr/local/Cellar/pyenv/1.0.10/libexec:/Users/vencent/.pyenv/shims:/Users/vencent/.pyenv/bin:/Applications/CMake.app/Contents/bin:/opt/local/bin:/opt/local/sbin:/Users/vencent/Qt5.9.0/5.9/clang_64/bin:/Users/vencent/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
SHELL
:/bin/zsh
LANG
:en_US.UTF-8
PWD
:/Users/vencent/.pyenv/versions
The text was updated successfully, but these errors were encountered: