onnx-simplifier icon indicating copy to clipboard operation
onnx-simplifier copied to clipboard

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

Open FelixSchwarz opened this issue 1 year ago • 5 comments

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)

FelixSchwarz avatar Nov 23 '23 10:11 FelixSchwarz

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)

lunacodes avatar Jan 03 '24 20:01 lunacodes

I meet same problem in docker environment.

moorejee avatar Jan 04 '24 06:01 moorejee

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'

desertkun avatar Feb 13 '24 10:02 desertkun

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

yan12125 avatar Feb 19 '24 07:02 yan12125

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:

yan12125 avatar Apr 15 '24 08:04 yan12125