petterreinholdtsen / battery-stats

Log battery charge (battery-stats-collector), show gnuplot graphs (battery-graph)
GNU General Public License v2.0
27 stars 13 forks source link

port to Debian bookworm / python3 #38

Closed anarcat closed 8 months ago

anarcat commented 1 year ago

Unsure why, but the current version of this script was crashing because the FileInput class doesn't have next method anymore.

datetime was also complaining about being passed a numpy float instead of its expected int.

petterreinholdtsen commented 8 months ago

This is rather strange. In my bookworm installation, I do not need the next change, only the astype trick. Any idea why you need to change the next attribute?

anarcat commented 8 months ago

i frankly do not remember anymore, i am sorry.

petterreinholdtsen commented 8 months ago

OK. As the code base now work in Bookworm when I test it, I assume the issue was solved by the astype() fix lifted from the pull request, and I close it as solved.