e-Paper icon indicating copy to clipboard operation
e-Paper copied to clipboard

ModuleNotFoundError: No module named 'Jetson'

Open Marv2190 opened this issue 2 years ago • 4 comments

File "/home/pi/e-Paper/RaspberryPi_JetsonNano/python/examples/epd_2in13d_test.py", line 11, in from waveshare_epd import epd2in13d File "/home/pi/e-Paper/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in13d.py", line 32, in from . import epdconfig File "/home/pi/e-Paper/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epdconfig.py", line 238, in implementation = JetsonNano() ^^^^^^^^^^^^ File "/home/pi/e-Paper/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epdconfig.py", line 121, in init import Jetson.GPIO ModuleNotFoundError: No module named 'Jetson'

Iam on Bookworm and followed the tutorial for linux:

sudo apt-get update sudo apt-get install python3-pip sudo apt-get install python3-pil sudo apt-get install python3-numpy sudo pip3 install RPi.GPIO sudo pip3 install spidev

But iam getting ModuleNotFoundError: No module named 'Jetson'.

Can someone help? The C Tutorial and Demo working fine. - i need python...

Marv2190 avatar Nov 05 '23 19:11 Marv2190

hey i'm facing the exact same issue.. I also have that 2in13d product like yours please let us know if you managed to solve this issue :) cheers .t.w.

edit: btw fyi i'm working raspberry pi 4

TWelten avatar Nov 05 '23 22:11 TWelten

well, i found a way to avoid having to use Jetson module DISCLAIMER : the following is not an appropriate solution, it is not fixing fundamentally the issue

Going in the file : ~/e-Paper/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epdconfig.py you can force the program to use the RaspberryPi() class. At the bottom, in the else condition, instead of having implementation = JetsonNano() change it for implementation = RaspberryPi() That way I managed to get the demo working fine on my raspberry pi 4 (python3)

Yet i'd like better having a nicer fix to offer.. cheers .t.w.

TWelten avatar Nov 05 '23 22:11 TWelten

This is likely the same issue as #306

The underlying issue is how the epdconfig class is trying to detect which hardware you're using, which fails on Raspberry Pi OS 12. There is a fix #307 but it has yet to be merged.

robweber avatar Nov 17 '23 15:11 robweber

I think this might be the same issue as #313. It looks like several modules are still trying to import RPi.GPIO when it is no longer needed.

Impacted modules:

  • epd2in13d
  • epd2in9d
  • epd4in01f
  • epd4in2_V2

I've fixed this in PR #324, but don't have these models to test with; they get flagged by my general-purpose epdlib as being incompatible. I've narrowed down the problem to the import and that appears to fix the problem.

txoof avatar Jan 07 '24 09:01 txoof