Mistake with nvidia-ml-py on PyPi

When I go to:

it is shown that the latest version of the nvidia-ml-py package is 10.418.84.

However, when I run:

pip install nvidia-ml-py

I get a very old version (375.53) installed:

Successfully installed nvidia-ml-py-375.53.1

Clearly, this should not be the case and was a source of much confusion, especially as the older version doesn’t support Python 3!

The core problem is here:
https://pypi.org/simple/nvidia-ml-py/
Pip sees the inconsistently-named version “375.53” and decides that it’s much newer than “10.418.84” as 375 > 10. Can the link to the nvidia-ml-py-375.53.tar.gz version please be removed so that pip works correctly again? Or can the version number become for example 7.375.53?

I am aware that I can just do:

pip install nvidia-ml-py==10.418.84

But this means that every time anyone installs nvidia-ml-py they first have to understand that this version problem even exists, look up the versions on the website, and manually copy out the version number. When newer versions are released it also restricts easy updates due to the fixed version number.

Could this please be fixed?

2 Likes

Thanks for posting this. I wasn’t sure of the problem at first but now I have it working.

Dear NVIDIA pypi package maintainers, please remove nvidia-ml-py-375.53 from pypi so that pip install nvidia-ml-py will install the correct latest version.

I can see where it tried to install 375.53, but instead install the latest.

(base) belt@orion:~$ pip install nvidia-ml-py
Collecting nvidia-ml-py
  Downloading nvidia-ml-py-375.53.tar.gz (22 kB)
WARNING: Discarding https://files.pythonhosted.org/packages/8c/63/cd93f1cdaf93c3e4aa1827373492d74de5c58af3613ba1eb3dd5c01f4128/nvidia-ml-py-375.53.tar.gz#sha256=0167a6acff2cb8b21195685da1c4e862c73c5201d06e36f48d5eeb9d1868e28f (from https://pypi.org/simple/nvidia-ml-py/). Requested nvidia-ml-py from https://files.pythonhosted.org/packages/8c/63/cd93f1cdaf93c3e4aa1827373492d74de5c58af3613ba1eb3dd5c01f4128/nvidia-ml-py-375.53.tar.gz#sha256=0167a6acff2cb8b21195685da1c4e862c73c5201d06e36f48d5eeb9d1868e28f has inconsistent version: filename has '375.53', but metadata has '375.53.1'
  Downloading nvidia-ml-py-11.460.79.tar.gz (24 kB)
Building wheels for collected packages: nvidia-ml-py
  Building wheel for nvidia-ml-py (setup.py) ... done
  Created wheel for nvidia-ml-py: filename=nvidia_ml_py-11.460.79-py3-none-any.whl size=25056 sha256=fe15cb069b04e92558fdcef59d5958a35e35c4ce664021162c521a48eccc6f5f
  Stored in directory: /home/belt/.cache/pip/wheels/72/0e/34/5c9f3cc70fc34d7928681c1f713890b64fc487cdb7aacf501f
Successfully built nvidia-ml-py
Installing collected packages: nvidia-ml-py
Successfully installed nvidia-ml-py-11.460.79

The package maintainers have been notified

@mnicely Any updates on this? Should I reach out to nvml-bindings@nvidia.com directly?

I haven’t heard anything, so feel free to reach out directly.

@mnicely I wrote directly to nvml-bindings@nvidia.com, but I got access denied because this seems to be an internal mailing list. Can you please forward it to whom it may concern again?

Dear nvidia-ml-py developers, kindly bumping up this again.

Hello!
I’m one of the maintainers for the package on PyPi.
Thanks for bringing this to my attention, I am working on fixing that versioning issue.
PyPi is being a tad annoying about it, since it’s not listed on the release page so it’ll take me a moment to get it resolved.

2 Likes

This issue should be fixed.
Links for nvidia-ml-py no longer lists 375.53 as the highest version number.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.