zocker-160 / thinkfan-ui

A small gui app for Linux to control the fan speed and monitor temps on a ThinkPad
GNU General Public License v3.0
88 stars 8 forks source link

ModuleNotFoundError: No module named 'ui' #1

Closed motoridersd closed 3 years ago

motoridersd commented 3 years ago

Getting that error when running for the first time on Pop/Ubuntu 20.10. I installed the dependencies as listed in the readme

sudo python3 fan.py Traceback (most recent call last): File "fan.py", line 12, in from ui.gui import Ui_MainWindow ModuleNotFoundError: No module named 'ui'

zocker-160 commented 3 years ago

did you clone the repository?

the fan.py file alone is not enough, it needs the files inside the ui folder too

zocker-160 commented 3 years ago

I know the readme is lacking that information, I am sorry about that.

But with the ui folder next to the fan.py, it should work.

motoridersd commented 3 years ago

I did not. I cloned it and now it works. Yeah, maybe adding that to the readme would be useful :P I assumed fan.py was all that was needed.

zocker-160 commented 3 years ago

yes I will update the readme, thank you for bringing this up

motoridersd commented 3 years ago

You're welcome! And thank you for this. I was just looking into a GUI for thinkfan today, and your reddit posts popped up

zocker-160 commented 3 years ago

glad to hear :+1: Hope it is useful for you, it is pretty new, so bugs are likely :D

zocker-160 commented 3 years ago

A .deb package is now available for easier install on Debian / Ubuntu systems ;)