Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: autostart oled display failure..
#10
Well the traceback is showing that the Python script is failing when importing the ImageFont class from the Python Image Library (PIL), it seems something isn't installed in the expected location on the system when you're running this as root and returning an IO error.

Looking at the github repos where you got the adafruit library (which is deprecated btw) and the monitor script there is a setup.py script that you would run as root, did you mistakenly run the setup as pi instead of root? You could always start again and revisit the setup/installation process as root.
Personally if it works OK as the pi user in a shell try running it as the pi user in rc.local, e.g.
Code:
/bin/su - pi -c "cd /home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor && /usr/bin/python ./monitor.py >>/tmp/monitor.log 2>&1 &"

... you can see the above includes a redirect for stdout & stderr to the file /tmp/monitor.log which you can inspect for messages/errors.

If this works in a shell but still doesn't from rc.local maybe rc.local is too early in the system startup process for you to be trying to run this script.
Reply


Messages In This Thread
autostart oled display failure.. - by DRONE7 - 12-27-2019, 11:54 PM
RE: autostart oled display failure.. - by DRONE7 - 12-28-2019, 03:20 AM
RE: autostart oled display failure.. - by vinnn - 12-28-2019, 11:47 AM
RE: autostart oled display failure.. - by DRONE7 - 12-28-2019, 04:57 PM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 03:59 AM
RE: autostart oled display failure.. - by vinnn - 12-30-2019, 06:10 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 06:56 AM
RE: autostart oled display failure.. - by vinnn - 12-30-2019, 08:03 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 08:26 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 08:57 AM
RE: autostart oled display failure.. - by vinnn - 12-30-2019, 09:39 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 10:02 AM
RE: autostart oled display failure.. - by vinnn - 12-30-2019, 10:30 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 10:44 AM
RE: autostart oled display failure.. - by vinnn - 12-30-2019, 10:53 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 08:11 PM
RE: autostart oled display failure.. - by DRONE7 - 12-31-2019, 03:24 AM

Forum Jump: