-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
module 'pynvml' has no attribute '_nvmlGetFunctionPointer' #153
Comments
Thanks for the report. Hmm, I see https://github.com/wookayin/nvidia-ml-py/blob/11.525.112/pynvml.py#L853 Could you please try opening the file |
This comment was marked as duplicate.
This comment was marked as duplicate.
This fixed my issue at least:
|
TL;DR) force-reinstall nvidia-ml-py; Thank you for the information. Yes, the pynvml should be the one that you get from your site-packages:
So apparently this Although this is an user problem (or one of the downstream packages used in your project), I will try to add some fool-proof error messages when pynvml isn't alright. |
This comment was marked as off-topic.
This comment was marked as off-topic.
According to ray-project/ray#34196 (/cc @yuanwu2017), the problematic pynvml file comes from this third-party fork(?):
|
Hmm. Is there any way to distinguish between nvidia-ml-py and pynvml, and perhaps raise a helpful error or somehow integrate the two APIs? Looking at the download stats, pynvml has about 113,500 / week, nvidia-ml-py has about 390,500 / week, so there are a lot of people using pynvml. I can understand them, anyone looking for the "natural" project to supply |
|
here are the packages github detects as depending on |
I've added some error messages. It would be not difficult to make gpustat compatible with the non-official pynvml package, but let me figure out a good solution when I have more spare time. |
An un-official distribution of the pynvml package provided by @gpuopenanalytics/pynvml was causing an incompatibility issue, where gpustat.nvml fails to import. Although the official and correct pynvml packages should be installed, but wild users' python environments can be easily messed up by unawaringly installing the problematic, unofficial pynvml package. gpustat can support this third-party pynvml by directly importing the low-level pynvml.nvml package (which should be exactly the same as an official pynvml.py). This is a quickfix that relies on the implementation detail of a third-party package, but nevertheless it should be a good enough workaround solution for many users in practice.
7c09a0f makes gpustat compatible even with @gpuopenanalytics/pynvml. Closing this as fixed. |
This comment was marked as duplicate.
This comment was marked as duplicate.
You'll also need to do |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
(cherry picked from commit e6bf58f, backport to 1.1.x)
An un-official distribution of the pynvml package provided by @gpuopenanalytics/pynvml was causing an incompatibility issue, where gpustat.nvml fails to import. Although the official and correct pynvml packages should be installed, but wild users' python environments can be easily messed up by unawaringly installing the problematic, unofficial pynvml package. gpustat can support this third-party pynvml by directly importing the low-level pynvml.nvml package (which should be exactly the same as an official pynvml.py). This is a quickfix that relies on the implementation detail of a third-party package, but nevertheless it should be a good enough workaround solution for many users in practice. (cherry picked from commit 7c09a0f, backported to 1.1.x)
(backported to v1.1.1 and released) |
Revert "Make gpustat.nvml compatible with a third-party fork of pynvml" This reverts commit 7c09a0f. gpustat v1.1.1 allowed the problematic 'pynvml' package to be used as a workaround, but this still causes many problems (e.g., #168). Only the official nvidia-ml-py can be used with gpustat. See #153, #168
Describe the bug
Calling
gpustat
leads to the following error:Screenshots or Program Output
Please provide the output of
gpustat --debug
andnvidia-smi
. Or attach screenshots if applicable.Environment information:
NVIDIA-SMI 470.182.03 Driver Version: 470.182.03 CUDA Version: 11.4
gpustat --version
doesn't work, but I did pip install it so I assume it fetches the latest versionSuccessfully uninstalled gpustat-1.1
nvidia-ml-py 11.525.112
Additional context
It should be noted that it has worked 2-3 weeks ago, but now it does not on 3 different machines I have tested.
The text was updated successfully, but these errors were encountered: