You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
batinfo seems to not be in docker image. I have a laptop (Thinkpad T570) with 3 batteries, including the wireless mouse. batinfo and UPower can show all the information about these batteries, and I'd like them to show up in Glances.
To Reproduce
Steps to reproduce the behavior:
docker run -it nicolargo/glances python
>>> import batinfo
"ModuleNotFoundError: No module named 'batinfo'"
Expected behavior
Looking at the code (I'm not too familiar with python though), a missing batinfo seems to be expected in non-linux environments. But this environment (allthough docker) is Linux.
Screenshots
I believe I got something working interactively using batinfo
Desktop (please complete the following information):
OS: (Docker 20.10.8 on) Pop OS 20.04 (based on Ubuntu)
Glances Version [Glances v3.1.6.2 with PsUtil v5.8.0]
Glances logs file:
root@57662d45c772:/glances# tail -10 /tmp/glances-root.log
2021-08-08 16:41:05,583 -- INFO -- Start Glances 3.1.6.2
2021-08-08 16:41:05,583 -- INFO -- CPython 3.9.4 and psutil 5.8.0 detected
Glances test [output of glances --issue] (only available with Glances 3.1.7 or higher)
Additional context
I also tried to create a new image based on the latest tag, and just added RUN pip install batinfo. That did not solve the issue, and I do not know what to try next.
The text was updated successfully, but these errors were encountered:
nicolargo
changed the title
batinfo not in docker image?
batinfo not in docker image (and in requirements files...) ?
Aug 14, 2021
Describe the bug
batinfo seems to not be in docker image. I have a laptop (Thinkpad T570) with 3 batteries, including the wireless mouse. batinfo and UPower can show all the information about these batteries, and I'd like them to show up in Glances.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Looking at the code (I'm not too familiar with python though), a missing batinfo seems to be expected in non-linux environments. But this environment (allthough docker) is Linux.
Screenshots
![image](https://user-images.githubusercontent.com/13216618/128639130-f781fba5-3fe4-4268-8841-c44d6d1c1ab7.png)
I believe I got something working interactively using batinfo
Desktop (please complete the following information):
root@57662d45c772:/glances# tail -10 /tmp/glances-root.log
2021-08-08 16:41:05,583 -- INFO -- Start Glances 3.1.6.2
2021-08-08 16:41:05,583 -- INFO -- CPython 3.9.4 and psutil 5.8.0 detected
Additional context
I also tried to create a new image based on the latest tag, and just added RUN pip install batinfo. That did not solve the issue, and I do not know what to try next.
The text was updated successfully, but these errors were encountered: