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

ModuleNotFoundError: No module named 'Jetson' #308

Open
Marv2190 opened this issue Nov 5, 2023 · 4 comments
Open

ModuleNotFoundError: No module named 'Jetson' #308

Marv2190 opened this issue Nov 5, 2023 · 4 comments

Comments

@Marv2190
Copy link

Marv2190 commented Nov 5, 2023

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...

@TWelten
Copy link

TWelten commented Nov 5, 2023

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
Copy link

TWelten commented Nov 5, 2023

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.

@robweber
Copy link

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.

@txoof
Copy link
Contributor

txoof commented Jan 7, 2024

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.

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

4 participants