We recently tried to install atop (2.7.1, with atopgpud deemon) on our Centos 7 machine (Python 3.6.8), and we were getting the Python module 'pynvml' not installed! error, even though we confirmed that pynvml was properly installed.
On the other hand, on our Ubuntu 20.04 machine with python 3.8.10 and Atop 2.6.0, all worked without a problem.
So we tried to find out what is the problem and we encountered this:
At the beginning, the script uses the following shebang:
#!/usr/bin/python3 -Es
From the documentation, -s prevents loading side packages, which also includes pynvml.
Is that -s switch there on purpose?
Note: atop 2.6.0 uses the same shebang, so our problem is probably OS / Python specific.
I have a question regarding
atopgpud
.We recently tried to install atop (2.7.1, with atopgpud deemon) on our Centos 7 machine (Python 3.6.8), and we were getting the
Python module 'pynvml' not installed!
error, even though we confirmed thatpynvml
was properly installed. On the other hand, on our Ubuntu 20.04 machine with python 3.8.10 and Atop 2.6.0, all worked without a problem. So we tried to find out what is the problem and we encountered this:At the beginning, the script uses the following shebang:
#!/usr/bin/python3 -Es
From the documentation,
-s
prevents loading side packages, which also includespynvml
.Is that
-s
switch there on purpose?Note: atop 2.6.0 uses the same shebang, so our problem is probably OS / Python specific.