-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I got follow Traceback, what should I do? #72
Comments
During the Is this on Raspberry Pi OS latest version? |
When I rerun and I saw "Requirement already satisfied: CairoSVG==2.5.2 in ./.venv/lib/python3.9/site-packages (from -r requirements.txt (line 5)) (2.5.2)" The OS is latest Lite version. Thx |
Does it work if you apt install these libcairo2 libcairo2-dev |
No previous error when installed. However, it stop process (May be) after "EXPORT To PNG". I added Debug mode and last sentence is: 2023-12-11:16:55:02 DEBUG [display.py:28] Initialize screen Is it a e-paper hardware problem itself or driver problem? I can run waveshare sample without problem. |
When I set LOG_LEVEL=DEBUG I get this towards the end:
You'll want to make sure you've set the right epaper version in the env.sh, eg is it version 1 or 2, or is it the red one, 2B. |
My e-paper is 7.5in white black red and I set 2B in env.sh already. Below is the debug message after 10 minutes run. EXPORT TO PNG2023-12-12:11:44:05 DEBUG [display.py:28] Initialize screen |
Hmm I'm not sure now. I don't have a red Waveshare so I can't test anything. But if you're saying the sample works, then the problem is in this repo's code. Although it doesn't look the same, I'm wondering if there's some similarity with this issue: #70 Unlikely though, in your case it's just hanging and you had to interrupt it. Hmm |
You might want to reboot the raspberry pi. If you interrupt the the spi driver state might not clean up correctly. |
File "/home/pi/waveshare-epaper-display/.venv/bin/cairosvg", line 5, in
from cairosvg.main import main
File "/home/pi/waveshare-epaper-display/.venv/lib/python3.9/site-packages/cairosvg/init.py", line 26, in
from . import surface # noqa isort:skip
File "/home/pi/waveshare-epaper-display/.venv/lib/python3.9/site-packages/cairosvg/surface.py", line 9, in
import cairocffi as cairo
File "/home/pi/waveshare-epaper-display/.venv/lib/python3.9/site-packages/cairocffi/init.py", line 48, in
cairo = dlopen(
File "/home/pi/waveshare-epaper-display/.venv/lib/python3.9/site-packages/cairocffi/init.py", line 45, in dlopen
raise OSError(error_message) # pragma: no cover
OSError: no library called "cairo-2" was found
no library called "cairo" was found
no library called "libcairo-2" was found
cannot load library 'libcairo.so.2': libcairo.so.2: cannot open shared object file: No such file or directory
cannot load library 'libcairo.2.dylib': libcairo.2.dylib: cannot open shared object file: No such file or directory
cannot load library 'libcairo-2.dll': libcairo-2.dll: cannot open shared object file: No such file or directory
The text was updated successfully, but these errors were encountered: