I just tried to upgrade from 2.1.0rc1 to 2.2.0.dev...
# general
n
I just tried to upgrade from 2.1.0rc1 to 2.2.0.dev1 and got:
Copy code
ERROR: Could not find a version that satisfies the requirement pantsbuild.pants==2.2.0dev1
ERROR: No matching distribution found for pantsbuild.pants==2.2.0dev1
./pants: line 261: /home/zdenal/.cache/pants/setup/bootstrap-Linux-x86_64/2.2.0dev1_py36/bin/python: No such file or directory
Any idea what should I do in order to upgrade? 🙂
f
I see
py36
in the error output. Are you using Python 3.6? If so, Pants v2.2.x now requires 3.7+:
This is the first release to require having a Python 3.7 or 3.8 interpreter to run Pants. Run curl -L -o ./pants https://raw.githubusercontent.com/pantsbuild/setup/2f079cbe4fc6a1d9d87decba51f19d7689aee69e/pants to update your ./pants script to choose the correct interpreter.
(This is for the interpreter running Pants itself, not for the interpreter chosen by Pants to run your code.)
n
Great! Thank you for pointing this out.
h
Also, I notice that the error says
Could not find a version that satisfies the requirement pantsbuild.pants==2.2.0dev1
And there should be a period in there:
2.2.0.dev1
Not
2.2.0dev1
Even though there is no period before the
rc1
That is deliberate, so that rc versions sort ahead of dev versions.
n
I think the period was originally there, but as I was not sure where the problem is, I tried it even without period. Anyway, it works now. It was just necessary to download the new version of the script.
h
Great!