mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 00:04:28 +01:00
[GH-ISSUE #411] TypeError: 'NoneType' object is not subscriptable in line 404 of OEPL-Flasher.py #1904
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ohuf on GitHub (Dec 12, 2024).
Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/411
Describe the bug
running the OPEPL flasher withattached Tag Flasher and Tag throws an error:
python OEPL-Flasher.py -e -z -p COM8 read blaat.bin --flash --pt Successfully opened serial port COM8 Connection with the flasher established. Version: 48 timeout waiting for reply Traceback (most recent call last): File "C:\Users\ohuf\Documents\Code\OpenEPaperLink\Tag_Flasher\OEPL-Flasher.py", line 485, in <module> main() File "C:\Users\ohuf\Documents\Code\OpenEPaperLink\Tag_Flasher\OEPL-Flasher.py", line 404, in main if (answer[0] == 1): ~~~~~~^^^ TypeError: 'NoneType' object is not subscriptableEDIT 1:
I compiled and uploaded the most recent version (50) of the ESP32 S2 Tag Flasher to the device.
The problem persists:
Using external port Successfully opened serial port COM8 Connection with the flasher established. Version: 50 timeout waiting for reply Traceback (most recent call last): File "C:\Users\oli\Documents\Code\OpenEPaperLink\Tag_Flasher\OEPL-Flasher.py", line 485, in <module> main() File "C:\Users\oli\Documents\Code\OpenEPaperLink\Tag_Flasher\OEPL-Flasher.py", line 404, in main if (answer[0] == 1): ~~~~~~^^^To Reproduce
Steps to reproduce the behavior:
Expected behavior
OEPL-Flasher should read the flash
Additional context
I tried this with python 3.11 as well as the latest 3.12 : same behaviour amongst the two.
@ohuf commented on GitHub (Dec 12, 2024):
OK, this seems to happen only, when the flasher (ESP32-S2) has bad contact to the tag.
I checked my adapter and one of the pogo-pins wouldn't pogo anymore.
Replaced the pin in question and now I can read the flash!