-
Notifications
You must be signed in to change notification settings - Fork 69
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
./run.sh hangs on Export to PNG #78
Comments
Loaded Raspberry PI OS from 05/03/2023 32-Bit Lite. Was forced to load the cairo.svg package manually. I didn't receive the Jetson Board error message any longer and didn't have to edit any of the code. The display is still showing e-paper busy when I run ./run.sh. I have asked for a new display to be sent to me from Waveshare. I am wondering if the display was damaged by the previous issue with the code looking for the Jetson Board instead of the Pi. |
I know this isn't the best thing to try. However, when I lift up the black tab on the ribbon connector I receive the following when I run ./run.sh EXPORT TO PNG2024-02-04:17:40:04 DEBUG [display.py:28] Initialize screen |
If this is the case, sounds like the display is just fine, the problem is with the repository's code? But I am confused as to why you're getting that Jetson error, because they did fix that in November 2023. Did you try with Raspberry Pi OS October 2023 edition, and during installation did you use the system flag |
I can't answer the Jetson error. The Pi OS supplied on the Raspberry Pi Imager is December 2023. This is why I tried using an older version of the OS from June 2023. Yes, I copied and pasted each line of code provided in the Repo. |
Which Raspberry Pi do you have, which Waveshare screen do you have, and what did you set your In the Waveshare demo, do you know which specific file worked for you? https://github.com/waveshareteam/e-Paper/tree/master/RaspberryPi_JetsonNano/python/examples |
Trying to see if the waveshare version has been set correctly, so you could try setting it to 1, or 2 or 2B, and that determines which of the libraries it uses. |
I followed these directions: https://www.waveshare.com/wiki/7.5inch_e-Paper_HAT_Manual#Python. Ran this to run the demo: python3 epd_7in5_V2_test.py |
I have tried RPI 3B+ and RPI 4. The sticker on the back of the display says V2. I left the version setting set at the default 2. Last night I re-imaged the SD card to the latest Pi OS. Error for JetsonNano not found. Error for Cairo package. I then reimaged the SD and tried the demo code again. Works without issue. |
If the demo works, must be something wrong with this repo's code, but I'm not able to pick out what. test file vs display file. I see the import of epd7in5_V2, epd7in5.EPD(), epd.init(), and epd.display(epd.getbuffer(Himage)) in both files. If you are up for some tinkering you could try displaying the image directly yourself by running the demo test py file again, but edit it and give the path to the |
I ran into this today on a pi zero w. I decided to use the waveshareteam/epaper repo to test my display (it was an amazon warehouse deal, so I thought it could be a display issue). The demo (epd7in5_V2_test.py) worked, so I copied the entire e-paper repo into the waveshare-epaper-display/lib directory, and my display worked. I haven't done a diff to find the exact cause. |
Again, sorry no answers, I'm only doing guesswork based on what you say. During the initial setup there's a recursive in the git clone.
And that takes care of cloning the waveshareteam/epaper repo into the lib directory. But you did it again and after that, things started working. Do you think somehow that initial clone brought down a stale /epaper repo and you got the latest and it started working? |
If anyone else stumbles on this with the same issue, a |
Thanks for confirming this. I got it working then my ADHD brain got distracted and did something else. |
I am having a similar issue, I have a 4.2in waveshare with red and I changed the waveshare_epd75_version to be the epd4in2bc as that is what worked on my screen when using the tests. However after running the run.sh everything works until it gets to the display where it just refreshes the screen and ends with it blank without showing an image. |
If it refreshes the screen then it might be 'doing' something. Are you able to look at the run.log file to see what's in there towards the end? And you should also see a screen-output.png that is generated, if you try to copy it to your own computer and view it there you should see something. |
Im not sure where the run.log file is but the ouput for run.sh is this at the bottom :
|
I had the same issue others had with missing requirements. I had to install the Cairo package and remove all mention of the Jetson board. This allowed the ./run.sh to run and pull all the data requested. However, it stops on "export to PNG" and never moves past this. If I load the demo code and run it to the board, it works just fine. I am going to re-load the PI OS with an older version and only 32-bit, not 64-bit. I hope that resolves the issues.
The text was updated successfully, but these errors were encountered: