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

epd2in13_V2 Problem! #44

Open
egomatic opened this issue Jan 26, 2025 · 3 comments
Open

epd2in13_V2 Problem! #44

egomatic opened this issue Jan 26, 2025 · 3 comments

Comments

@egomatic
Copy link

When i try to start python3 ~/zero-btc-screen/main.py
console i showing:

Traceback (most recent call last):
File "/home/BTH/zero-btc-screen/main.py", line 60, in
main()
File "/home/BTH/zero-btc-screen/main.py", line 40, in main
builder.bind(data_sink)
File "/home/BTH/zero-btc-screen/config/builder.py", line 23, in bind
screen_class(observable=observable, **kwargs)
File "/home/BTH/zero-btc-screen/presentation/screens/epd2in13v2.py", line 23, in init
self.epd = self._init_display()
^^^^^^^^^^^^^^^^^^^^
File "/home/BTH/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'?

Pls Help me <3

@dr-mod
Copy link
Owner

dr-mod commented Jan 30, 2025

Hi @egomatic this looks like the drivers for the screen were not installed correctly.
Try repeating these steps:

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

@a6k
Copy link

a6k commented Feb 19, 2025

I get:

pip3 install ~/e-Paper/RaspberryPi_JetsonNano/python/
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

For more information visit http://rptl.io/venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

sorry, i have no Idea what to do, how to use this virtual environment, .. can you help pls?

@a6k
Copy link

a6k commented Feb 19, 2025

what I testet:

python3 -m venv ~/env
~/env/bin/pip install ~/e-Paper/RaspberryPi_JetsonNano/python/
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Processing ./e-Paper/RaspberryPi_JetsonNano/python
Preparing metadata (setup.py) ... done
Collecting Jetson.GPIO
Downloading https://www.piwheels.org/simple/jetson-gpio/Jetson.GPIO-2.1.9-py3-none-any.whl (31 kB)
Collecting Pillow
Downloading pillow-11.1.0-cp311-cp311-manylinux_2_28_aarch64.whl (4.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.4/4.4 MB 778.3 kB/s eta 0:00:00
Installing collected packages: Jetson.GPIO, Pillow, waveshare-epd
DEPRECATION: waveshare-epd is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559
Running setup.py install for waveshare-epd ... done
Successfully installed Jetson.GPIO-2.1.9 Pillow-11.1.0 waveshare-epd-0.0.0

~/env/bin/python ~/zero-btc-screen/main.py
Traceback (most recent call last):
File "/home/gent/zero-btc-screen/main.py", line 3, in
import requests
ModuleNotFoundError: No module named 'requests'

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