daquexian / onnx-simplifier

Simplify your onnx model
Apache License 2.0
3.67k stars 377 forks source link

[BUG] unable to install onnxsim 0.4.34/0.4.35 from pypi #316

Open FelixSchwarz opened 7 months ago

FelixSchwarz commented 7 months ago

pip complains about inconsistent version/metadata:

Discarding https://files.pythonhosted.org/…/onnxsim-0.4.35.tar.gz (from https://pypi.org/simple/onnxsim/) (requires-python:>=3.7): Requested onnxsim from https://files.pythonhosted.org/packages/…/onnxsim-0.4.35.tar.gz has inconsistent version: expected '0.4.35', but metadata has '0.4.33'

full output:

$ ./venv.py312/bin/pip install onnxsim
Collecting onnxsim
  Downloading onnxsim-0.4.35.tar.gz (20.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 20.1/20.1 MB 10.9 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Discarding https://files.pythonhosted.org/packages/71/ce/d566d1c22fbf40c5b70dbd2e032996deeeeb450c631dff231e0f40941f6b/onnxsim-0.4.35.tar.gz (from https://pypi.org/simple/onnxsim/) (requires-python:>=3.7): Requested onnxsim from https://files.pythonhosted.org/packages/71/ce/d566d1c22fbf40c5b70dbd2e032996deeeeb450c631dff231e0f40941f6b/onnxsim-0.4.35.tar.gz has inconsistent version: expected '0.4.35', but metadata has '0.4.33'
  Downloading onnxsim-0.4.34.tar.gz (20.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 20.1/20.1 MB 10.8 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Discarding https://files.pythonhosted.org/packages/c3/0a/12efe0c933b3a16d2ade1dd2409dcb0ff3310a436137cc975bee670011bc/onnxsim-0.4.34.tar.gz (from https://pypi.org/simple/onnxsim/) (requires-python:>=3.7): Requested onnxsim from https://files.pythonhosted.org/packages/c3/0a/12efe0c933b3a16d2ade1dd2409dcb0ff3310a436137cc975bee670011bc/onnxsim-0.4.34.tar.gz has inconsistent version: expected '0.4.34', but metadata has '0.4.33'
  Downloading onnxsim-0.4.33.tar.gz (20.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 20.1/20.1 MB 10.8 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
$ ./venv.py312/bin/pip --version
pip 23.2.1 from …/venv.py312/lib64/python3.12/site-packages/pip (python 3.12)
lunacodes commented 6 months ago

Also having this issue on Win 11 w/ git bash, python 3.12 and pip 23.3.2 (The error messages look the same as the ones above, so not copy/pasting here)

moorejee commented 6 months ago

I meet same problem in docker environment.

desertkun commented 4 months ago

That's because this package declares version 0.4.33 even though it is deployed as 0.4.35

https://files.pythonhosted.org/packages/71/ce/d566d1c22fbf40c5b70dbd2e032996deeeeb450c631dff231e0f40941f6b/onnxsim-0.4.35.tar.gz has inconsistent version: expected '0.4.35', but metadata has '0.4.33'

yan12125 commented 4 months ago

It seems https://github.com/daquexian/onnx-simplifier/blob/master/VERSION needs an update

yan12125 commented 2 months ago

It seems https://github.com/daquexian/onnx-simplifier/blob/master/VERSION needs an update

That file is updated and 0.4.36 now works :+1: