been there done that ..and following all the guides this is what happens...
Defining the interpreter as /usr/bin/python and making the script executable will allow you just run the script on it own.
Just insert...
Code:
... as the first line of the monitor.py script and make the file executable.
Then you can run the script either as pi or root with...
Code:
pi@moode:~ $ /home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor/monitor.py
Traceback (most recent call last):
File "/home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor/monitor.py", line 104, in <module>
font = ImageFont.truetype('Montserrat-Light.ttf', 12)
File "/usr/lib/python2.7/dist-packages/PIL/ImageFont.py", line 280, in truetype
return FreeTypeFont(font, size, index, encoding, layout_engine)
File "/usr/lib/python2.7/dist-packages/PIL/ImageFont.py", line 145, in __init__
layout_engine=layout_engine)
IOError: cannot open resource
If like you say the working directory needs to be script's location for the script to work you can do...
Code:
cd /home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor && ./monitor.py &
reboot and same as always...blank screen
I know there is something that should work but it's driving me bananas.... nothing does...why ??
Ok tried all your suggested fixes but nothing changes... always reboots to frozen or blank screen.....
I did research and experiment as fully as I could before posting here but this has me banging my head on the desk until it hurts...
always no matter what I try it does not work or give any useful output...
so I individually added and rebooted each fix then added every fix and rebooted and no change from the initial problem...
thanks for the suggestions and help
cheers,
Bob

Defining the interpreter as /usr/bin/python and making the script executable will allow you just run the script on it own.
Just insert...
Code:
Code:
#!/usr/bin/python
Then you can run the script either as pi or root with...
Code:
Code:
/home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor/monitor.py
Traceback (most recent call last):
File "/home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor/monitor.py", line 104, in <module>
font = ImageFont.truetype('Montserrat-Light.ttf', 12)
File "/usr/lib/python2.7/dist-packages/PIL/ImageFont.py", line 280, in truetype
return FreeTypeFont(font, size, index, encoding, layout_engine)
File "/usr/lib/python2.7/dist-packages/PIL/ImageFont.py", line 145, in __init__
layout_engine=layout_engine)
IOError: cannot open resource
If like you say the working directory needs to be script's location for the script to work you can do...
Code:
cd /home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor && ./monitor.py &
reboot and same as always...blank screen
I know there is something that should work but it's driving me bananas.... nothing does...why ??
Ok tried all your suggested fixes but nothing changes... always reboots to frozen or blank screen.....
I did research and experiment as fully as I could before posting here but this has me banging my head on the desk until it hurts...
always no matter what I try it does not work or give any useful output...

so I individually added and rebooted each fix then added every fix and rebooted and no change from the initial problem...
thanks for the suggestions and help

cheers,
Bob
----------
bob
bob