meuter / argon-one-case-ubuntu-20.04

port of the argon one case power button and fan script for Ubuntu 20.04 on rpi 4
255 stars 49 forks source link

argononed.py crashed with FIleNotFoundError in __main__ #8

Open acoustep opened 3 years ago

acoustep commented 3 years ago

Hi,

Thank you for creating this useful tool!

I'm having an issue which I suspect means the fans aren't switching on. The tempmon command seems to work fine, but every time I boot up my device I'm getting this error reported to me.

Traceback:
File "/usr/bin/argoned.py", line 11, in <module>
  bus = smbus.SMBus(1)
FileNotFoundError: [Errno 2] No such file or directory.

If it helps, I'm running Ubuntu 20.10 on a Pi 4B (4GB), booting with Bootberry.

I realize this script is for 20.04, but I'm wondering if there's a way to modify it to work with 20.10?

meuter commented 2 years ago

I have not tried 20.10 yet. I suspect the python API the access the RPI has changed. I'll take a look and report back.

EDIT: could it be related to this issue #7 ? are you using a Rpi 4b?

acoustep commented 2 years ago

Yes I'm using a Rpi 4b.

FallenChromium commented 2 years ago

Happening to me, too. RPi 4B+, Armbian Focal (so 20.04 base)

image
FallenChromium commented 2 years ago

Apparently it was a problem with my distro, I2C wasn't enabled properly. Resolved for me.

ghost commented 2 years ago

Can confirm. I had the same problem with RPi 4B with Raspberry Pi OS Lite (64-bit).

After I enabled I2C in raspi-config, script works without a problem.