pynini icon indicating copy to clipboard operation
pynini copied to clipboard

Pip install pynini==2.1.6 metadata error

Open Atmelfan opened this issue 7 months ago • 4 comments

Trying to install pynini==2.1.6 from pip results in the following error.

nvidia@ubuntu:/tmp/openfst-1.8.3$ pip install pynini==2.1.6
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting pynini==2.1.6
  Downloading pynini-2.1.6.tar.gz (789 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 789.8/789.8 KB 9.1 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  WARNING: Requested pynini==2.1.6 from https://files.pythonhosted.org/packages/9b/69/4b59968b0fd351a153d7a3c2feaa6e7514c903c063bbd7f7e1e3f1c079b0/pynini-2.1.6.tar.gz#sha256=b09b6dda73608cedf962dbfbcfa5826b0984d1b43a8f995761972e6e032921c6, but installing version 2.1.5
Discarding https://files.pythonhosted.org/packages/9b/69/4b59968b0fd351a153d7a3c2feaa6e7514c903c063bbd7f7e1e3f1c079b0/pynini-2.1.6.tar.gz#sha256=b09b6dda73608cedf962dbfbcfa5826b0984d1b43a8f995761972e6e032921c6 (from https://pypi.org/simple/pynini/) (requires-python:>=3.6): 
Requested pynini==2.1.6 from https://files.pythonhosted.org/packages/9b/69/4b59968b0fd351a153d7a3c2feaa6e7514c903c063bbd7f7e1e3f1c079b0/pynini-2.1.6.tar.gz#sha256=b09b6dda73608cedf962dbfbcfa5826b0984d1b43a8f995761972e6e032921c6
 has inconsistent version: filename has '2.1.6', but metadata has '2.1.5'
ERROR: Could not find a version that satisfies the requirement pynini==2.1.6 (from versions: 0.4.1, 0.4.2, 0.4.3, 0.4.4, 2.0.9.post2, 2.1.4, 2.1.5, 2.1.5.post1, 2.1.5.post2, 2.1.6)
ERROR: No matching distribution found for pynini==2.1.6

Downloading the tar archive from https://files.pythonhosted.org/packages/9b/69/4b59968b0fd351a153d7a3c2feaa6e7514c903c063bbd7f7e1e3f1c079b0/pynini-2.1.6.tar.gz#sha256=b09b6dda73608cedf962dbfbcfa5826b0984d1b43a8f995761972e6e032921c6 and extracting pynini/__init__.py shows the following which seems to contain the wrong version number:

from _pynini import *

# Increment after every release.

__version__ = "2.1.5"

The pyproject.toml shows the correct version

[project]
name = "pynini"
version = "2.1.6"

Atmelfan avatar Jun 30 '24 16:06 Atmelfan