Closed dellis67 closed 1 year ago
Hi, Could you provide a few more details:
Sincerely, Louis
I am using a Raspberry Pi Zero and I do have SPI enabled.
I am trying to figure out how to perform a full stack trace.
Sorry for being unclear. I ment the stack trace of the programm(error). So just the full error message. (In particular to get the information in which line the programm fails.)
You should be abel to run ./displayRun.py
directly. (I excpect the problem in there.)
Sorry for the delay; I had to leave for 10 days for doctor's visits, etc, on the mainland. Anyway, I've got the trace of the error:
dellis@raspical:/eInkCalendar $ sudo python3 ./displayRun.py INFO:app:2023-06-01 17:27:24.615902 WARNING:app:unsupported locale setting INFO:app:Trying to module_exit() Traceback (most recent call last): File "/eInkCalendar/./displayRun.py", line 63, in main render_content(draw_blk, image_blk, draw_red, File "/eInkCalendar/./displayRun.py", line 77, in render_content locale.setlocale(locale.LC_ALL, LOCALE) File "/usr/lib/python3.9/locale.py", line 610, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/eInkCalendar/./displayRun.py", line 212, in
Running the displayRun.py give this:
dellis@raspical:/eInkCalendar $ sudo ./displayRun.py sudo: ./displayRun.py: command not found dellis@raspical:/eInkCalendar $ sudo python3 ./displayRun.py INFO:app:2023-06-01 17:27:24.615902 WARNING:app:unsupported locale setting INFO:app:Trying to module_exit() Traceback (most recent call last): File "/eInkCalendar/./displayRun.py", line 63, in main render_content(draw_blk, image_blk, draw_red, File "/eInkCalendar/./displayRun.py", line 77, in render_content locale.setlocale(locale.LC_ALL, LOCALE) File "/usr/lib/python3.9/locale.py", line 610, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/eInkCalendar/./displayRun.py", line 212, in
Thanks, this helps.
It seems like your locale-setting is off.
Could you check the LOCALE = ...
line in settings.py
?
(Feel free to post it here)
I have
LOCALE = "en_US"
I changed it to "en_US.UTF-8" after setting that in the Locales settings, and it works. Thank you so much for you help!
I am having trouble running "run-calendar.sh" as it gives the following error:
RuntimeError: Please set pin numbering mode using GPIO.setmode(GPIO.BOARD) or GPIO.setmode(GPIO.BCM)
Please forgive me ahead of time if this is a stupid question.
Sincerely, David.