Skip to content
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

Can't start the app: NameError: name 'epd2in13_V2' is not defined #41

Closed
vinovod opened this issue Jun 21, 2024 · 2 comments
Closed

Can't start the app: NameError: name 'epd2in13_V2' is not defined #41

vinovod opened this issue Jun 21, 2024 · 2 comments

Comments

@vinovod
Copy link

vinovod commented Jun 21, 2024

Still cannot figure out the issue

python3 ~/zero-btc-screen/main.py

Traceback (most recent call last):
  File "/home/pi/zero-btc-screen/main.py", line 60, in <module>
    main()
  File "/home/pi/zero-btc-screen/main.py", line 40, in main
    builder.bind(data_sink)
  File "/home/pi/zero-btc-screen/config/builder.py", line 23, in bind
    screen_class(observable=observable, **kwargs)
  File "/home/pi/zero-btc-screen/presentation/screens/epd2in13v2.py", line 23, in __init__
    self.epd = self._init_display()
               ^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/zero-btc-screen/presentation/screens/epd2in13v2.py", line 30, in _init_display
    epd = epd2in13_V2.EPD()
          ^^^^^^^^^^^
NameError: name 'epd2in13_V2' is not defined. Did you mean: 'Epd2in13v2'?

I'm using Waveshare e-Ink v4 with Raspberry Pi Zero W and Raspberry OS Lite installed
Tried to modify config appropriately, but get undefined modules in any case.

Could you please dive into it? Thank you!

@onisuk
Copy link

onisuk commented Aug 8, 2024

yeah i get this exact same issue when following the guide, any updates?

@dr-mod
Copy link
Owner

dr-mod commented Aug 18, 2024

Based on the error message, it seems the display drivers are not installed. Could you try running the following commands and let me know how it went?

git clone https://github.com/waveshare/e-Paper.git ~/e-Paper
pip3 install ~/e-Paper/RaspberryPi_JetsonNano/python/

@dr-mod dr-mod closed this as completed Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants