Package Details: python-pynvml 11.5.3-1

Git Clone URL: https://aur.archlinux.org/python-pynvml.git (read-only, click to copy)
Package Base: python-pynvml
Description: Python Bindings for the NVIDIA Management Library
Upstream URL: https://pypi.org/project/pynvml/
Keywords: nvidia nvml
Licenses: BSD
Submitter: timothy_gu
Maintainer: Blyss_Sarania
Last Packager: Blyss_Sarania
Votes: 3
Popularity: 0.000715
First Submitted: 2020-03-20 02:37 (UTC)
Last Updated: 2024-08-13 20:50 (UTC)

Pinned Comments

Blyss_Sarania commented on 2024-08-16 00:03 (UTC) (edited on 2024-08-16 14:00 (UTC) by Blyss_Sarania)

I updated this to the 11.5.3 version which is the last revision under the name pynvml in case anyone needs it but for anyone else please be aware that this package has been superseded by https://aur.archlinux.org/packages/python-nvidia-ml-py which is the current project name so that will be newer than this! It's drop in compatible, still imports under pynvml so if you don't specifically need this one then that's probably the better choice! Why they changed the name is beyond me but the notable presence of "nvidia" in the new package name is my suspicion.

Latest Comments

Blyss_Sarania commented on 2024-08-16 00:03 (UTC) (edited on 2024-08-16 14:00 (UTC) by Blyss_Sarania)

I updated this to the 11.5.3 version which is the last revision under the name pynvml in case anyone needs it but for anyone else please be aware that this package has been superseded by https://aur.archlinux.org/packages/python-nvidia-ml-py which is the current project name so that will be newer than this! It's drop in compatible, still imports under pynvml so if you don't specifically need this one then that's probably the better choice! Why they changed the name is beyond me but the notable presence of "nvidia" in the new package name is my suspicion.

spacemann commented on 2024-08-04 03:53 (UTC)

Currently broken. Works just fine if I change the PKGBUILD to pull the new 11.5.3 version and set the sha sum to SKIP though.

denkijin commented on 2024-05-01 10:12 (UTC) (edited on 2024-05-01 10:13 (UTC) by denkijin)

I fixed the build for the old version (the 11.5) by changing for python 12.3 a few lines:

SafeConfigParser becomes ConfigParser
readfp becomes read_file

and it works, but it is older code, from 2023. the new code is from this week https://pypi.org/project/nvidia-ml-py/

JohnPiers commented on 2024-05-01 01:19 (UTC)

Build also fails for me.

 ==> Starting build()...
/home/johnpiers/.cache/yay/python-pynvml/src/pynvml-11.5.0/versioneer.py:421: SyntaxWarning: invalid escape sequence '\s'
  LONG_VERSION_PY['git'] = '''
Traceback (most recent call last):
  File "/home/johnpiers/.cache/yay/python-pynvml/src/pynvml-11.5.0/setup.py", line 20, in <module>
    version=versioneer.get_version(),
            ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/johnpiers/.cache/yay/python-pynvml/src/pynvml-11.5.0/versioneer.py", line 1480, in get_version
    return get_versions()["version"]
           ^^^^^^^^^^^^^^
  File "/home/johnpiers/.cache/yay/python-pynvml/src/pynvml-11.5.0/versioneer.py", line 1412, in get_versions
    cfg = get_config_from_root(root)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/johnpiers/.cache/yay/python-pynvml/src/pynvml-11.5.0/versioneer.py", line 342, in get_config_from_root
    parser = configparser.SafeConfigParser()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: python-pynvml-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
python-pynvml - exit status 4 

hashworks commented on 2024-04-28 00:11 (UTC)

Build fails for me: https://fb.hash.works/HnjVJuw/

timothy_gu commented on 2021-04-30 21:07 (UTC) (edited on 2021-04-30 21:07 (UTC) by timothy_gu)

For those wondering if this is the right package for you, it is the same as the PyPI package pynvml, and allows atopgpud.service in the community/atop package to capture NVIDIA GPU metrics. (The atop package has a virtual optional dependency to this package.)