Skip to content

Resolve EPD.init argument error for Waveshare v3#22

Merged
infinition merged 2 commits into
infinition:mainfrom
jbohack:main
Nov 12, 2024
Merged

Resolve EPD.init argument error for Waveshare v3#22
infinition merged 2 commits into
infinition:mainfrom
jbohack:main

Conversation

@jbohack
Copy link
Copy Markdown
Contributor

@jbohack jbohack commented Nov 11, 2024

This PR addresses the Waveshare v3 crashing loop. After applying this merge, the screen will refresh as expected. Crash logs prior listed below:
Nov 11 15:05:33 bjorn python3[9918]: TERM environment variable not set.
Nov 11 15:05:33 bjorn python3[9913]: 2024-11-11 15:05:33 - shared.py - INFO - Loading configuration...
Nov 11 15:05:35 bjorn systemd[1]: Stopping bjorn.service - Bjorn Service...
Nov 11 15:05:35 bjorn systemd[1]: bjorn.service: Deactivated successfully.
Nov 11 15:05:35 bjorn systemd[1]: Stopped bjorn.service - Bjorn Service.
Nov 11 15:05:35 bjorn systemd[1]: bjorn.service: Consumed 3.058s CPU time.
Nov 11 15:05:35 bjorn systemd[1]: Starting bjorn.service - Bjorn Service...
Nov 11 15:05:35 bjorn systemd[1]: Started bjorn.service - Bjorn Service.
Nov 11 15:05:36 bjorn python3[9986]: TERM environment variable not set.
Nov 11 15:05:36 bjorn python3[9942]: 2024-11-11 15:05:36 - shared.py - INFO - Loading configuration...
Nov 11 15:05:40 bjorn python3[9942]: 2024-11-11 15:05:39 - shared.py - INFO - Web console log file not found at
Nov 11 15:05:40 bjorn python3[9942]: /home/bjorn/Bjorn/data/logs/temp_log.txt ...
Nov 11 15:05:40 bjorn python3[9942]: 2024-11-11 15:05:40 - shared.py - INFO - Initializing the network knowledge base
Nov 11 15:05:40 bjorn python3[9942]: CSV file with headers
Nov 11 15:05:40 bjorn python3[9942]: 2024-11-11 15:05:40 - shared.py - INFO - Network knowledge base CSV file already
Nov 11 15:05:40 bjorn python3[9942]: exists at /home/bjorn/Bjorn/data/netkb.csv
Nov 11 15:05:40 bjorn python3[9942]: 2024-11-11 15:05:40 - shared.py - INFO - Initializing EPD display...
Nov 11 15:05:41 bjorn python3[9942]: 2024-11-11 15:05:41 - shared.py - INFO - EPD type: epd2in13_V3 screen reversed
Nov 11 15:05:41 bjorn python3[9942]: Error initializing EPD for full update: EPD.init() takes 1 positional argument but 2 were given
Nov 11 15:05:41 bjorn python3[9942]: 2024-11-11 15:05:41 - shared.py - ERROR - Error initializing EPD display:
Nov 11 15:05:41 bjorn python3[9942]: EPD.init() takes 1 positional argument but 2 were given
Nov 11 15:05:41 bjorn python3[9942]: Traceback (most recent call last):
Nov 11 15:05:41 bjorn python3[9942]: File "/home/bjorn/Bjorn/Bjorn.py", line 24, in
Nov 11 15:05:41 bjorn python3[9942]: from init_shared import shared_data
Nov 11 15:05:41 bjorn python3[9942]: File "/home/bjorn/Bjorn/init_shared.py", line 13, in
Nov 11 15:05:41 bjorn python3[9942]: shared_data = SharedData()
Nov 11 15:05:41 bjorn python3[9942]: ^^^^^^^^^^^^
Nov 11 15:05:41 bjorn python3[9942]: File "/home/bjorn/Bjorn/shared.py", line 38, in init
Nov 11 15:05:41 bjorn python3[9942]: self.setup_environment() # Setup the environment
Nov 11 15:05:41 bjorn python3[9942]: ^^^^^^^^^^^^^^^^^^^^^^^^
Nov 11 15:05:41 bjorn python3[9942]: File "/home/bjorn/Bjorn/shared.py", line 170, in setup_environment
Nov 11 15:05:41 bjorn python3[9942]: self.initialize_epd_display()
Nov 11 15:05:41 bjorn python3[9942]: File "/home/bjorn/Bjorn/shared.py", line 192, in initialize_epd_display
Nov 11 15:05:41 bjorn python3[9942]: self.epd_helper.init_full_update()
Nov 11 15:05:41 bjorn python3[9942]: File "/home/bjorn/Bjorn/epd_helper.py", line 30, in init_full_update
Nov 11 15:05:41 bjorn python3[9942]: self.epd.init(self.epd.lut_full_update)
Nov 11 15:05:41 bjorn python3[9942]: TypeError: EPD.init() takes 1 positional argument but 2 were given
Nov 11 15:05:42 bjorn systemd[1]: bjorn.service: Main process exited, code=exited, status=1/FAILURE
Nov 11 15:05:42 bjorn systemd[1]: bjorn.service: Failed with result 'exit-code'.

@jbohack jbohack mentioned this pull request Nov 11, 2024
@jbohack
Copy link
Copy Markdown
Contributor Author

jbohack commented Nov 11, 2024

All errors for the Waveshare V3 should now be resolved following the two commits in this PR.

@infinition
Copy link
Copy Markdown
Owner

Thanks mate, have you tried it ?

@jbohack
Copy link
Copy Markdown
Contributor Author

jbohack commented Nov 11, 2024

Yup, this does work. @ZeroCool-Dade was also able to confirm under the issues page:
#7 (comment)

Copy link
Copy Markdown
Owner

@infinition infinition left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solved compatibility issue for EPD v3 thanks @[jbohack]

@infinition infinition merged commit 1ff729d into infinition:main Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants