vyperlang / vyper

Pythonic Smart Contract Language for the EVM
https://vyperlang.org
Other
4.84k stars 788 forks source link

Pip error "Could not find a version that satisfies the requirement vyper==0.3.1" #2564

Open chrisedhog opened 2 years ago

chrisedhog commented 2 years ago

I'm having trouble updating Vyper to 0.3.1 as it's saying it doesn't exist

The error that I get is as follows:

ERROR: Could not find a version that satisfies the requirement vyper==0.3.1 (from versions: 0.1.0b1, 0.1.0b2, 0.1.0b3, 0.1.0b4, 0.1.0b5, 0.1.0b6, 0.1.0b7, 0.1.0b8, 0.1.0b9, 0.1.0b10, 0.1.0b11, 0.1.0b12, 0.1.0b13, 0.1.0b14, 0.1.0b15, 0.1.0b16, 0.1.0b17, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9, 0.2.10, 0.2.11, 0.2.12, 0.2.13, 0.2.14, 0.2.15, 0.2.16)
ERROR: No matching distribution found for vyper==0.3.1

Anyone had a similar problem?

charles-cooper commented 2 years ago

We don't yet support python 3.10 unfortunately (tracked in #2548). The curious thing is that older versions are showing up for you though so maybe it is a question of needing to upload certain artifacts to pypi 🤔

gnattishness commented 2 years ago

@charles-cooper I've been looking at this :slightly_smiling_face: FYI, the answer here is that, prior to https://github.com/vyperlang/vyper/commit/f1206035f69065812a962a816d401ce40c7565f6, the package metadata was said to support python >= 3.6, hence the older versions showing as available.

charles-cooper commented 2 years ago

I am guessing this should go away once we release 0.3.2, since that will contain both https://github.com/vyperlang/vyper/commit/f1206035f69065812a962a816d401ce40c7565f6 and https://github.com/vyperlang/vyper/pull/2549

gnattishness commented 2 years ago

A heads up: I'm guessing it'll come up again when python 3.11 is released but not yet supported by vyper :)

charles-cooper commented 2 years ago

A heads up: I'm guessing it'll come up again when python 3.11 is released but not yet supported by vyper :)

It's possible, but I think the new version bound in setup.py will prevent that: https://github.com/vyperlang/vyper/blob/0a9396164cf0a67a08fea9b1296f48c50b3d6128/setup.py#L72

We'll definitely have a lot of stuff to revisit once 3.11 is released too :upside_down_face: