Comments (5)
But if I try to import the package, I still receive an error relating to
python-numpy
By default virtual environments will ignore system installed packages.
You need to use the --system-site-packages
switch.
Eg:
python3 -m venv --system-site-packages ~/.virtualenvs/AAAAARRRGGHHHHHH
That said, I believe you can now re-install numpy into the virtual env and it will find the system libraries, since python3-numpy
pulls them in as dependencies.
from inky.
Have you tried the other suggestion - removing the pip
version of numpy and installing the system version from apt
?
pip3 uninstall numpy # remove previously installed version
apt install python3-numpy
from inky.
Oh interesting, i tried apt install python-numpy
but got this error
(env) patricktran@myraspberrypi:~ $ sudo apt install python-numpy
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python-numpy is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'python-numpy' has no installation candidate
Then I noticed you mentioned python3-numpy
. It installed that ok.
But if I try to import the package, I still receive an error relating to python-numpy
(env) patricktran@myraspberrypi:~ $ python
^[[APython 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from inky.auto import auto
Traceback (most recent call last):
File "/home/patricktran/env/lib/python3.11/site-packages/inky/inky.py", line 8, in <module>
import numpy
ModuleNotFoundError: No module named 'numpy'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/patricktran/env/lib/python3.11/site-packages/inky/__init__.py", line 3, in <module>
from . import inky # noqa: F401
^^^^^^^^^^^^^^^^^^
File "/home/patricktran/env/lib/python3.11/site-packages/inky/inky.py", line 10, in <module>
raise ImportError('This library requires the numpy module\nInstall with: sudo apt install python-numpy')
ImportError: This library requires the numpy module
Install with: sudo apt install python-numpy
from inky.
i had this same problem and i had to apt install libopenblas-dev
from inky.
But if I try to import the package, I still receive an error relating to
python-numpy
By default virtual environments will ignore system installed packages.
You need to use the
--system-site-packages
switch.Eg:
python3 -m venv --system-site-packages ~/.virtualenvs/AAAAARRRGGHHHHHH
That said, I believe you can now re-install numpy into the virtual env and it will find the system libraries, since
python3-numpy
pulls them in as dependencies.
It worked!
Now I get a different issue but I'll look into that separately. Thanks!
(env) patricktran@myraspberrypi:~ $ python
Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from inky.auto import auto
>>> display = auto()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/patricktran/env/lib/python3.11/site-packages/inky/auto.py", line 83, in auto
raise RuntimeError("No EEPROM detected! You must manually initialise your Inky board.")
RuntimeError: No EEPROM detected! You must manually initialise your Inky board.
Update: solved
I guess my device (Inky Impression 4" (7 colour ePaper/eInk HAT)
) cannot use auto
from PIL import Image, ImageDraw, ImageFont
from inky.inky_uc8159 import Inky
# Initialize the Inky display
inky_display = Inky()
from inky.
Related Issues (20)
- Pi Zero W - Not Enough Ram to pip install seaborn HOT 1
- `InkyMockImpression.set_image` fails with `AttributeError`
- `InkyMockImpression` class doesn't easily support multiple resolutions
- Use on any non-Pi machines? HOT 3
- Treating Inky pHAT-Red as Black/White doesn't work
- Busy Wait error - Line 323/333 HOT 1
- AttributeError: 'FreeTypeFont' object has no attribute 'getsize'
- Odd permissions issue on new Inky Impressions 7.3" HOT 1
- error: externally-managed-environment HOT 1
- Forcing black and white only on 7 color. HOT 2
- Partial Update or Single Pixel Update for all Inky Impression HOT 1
- Incompatible with Raspberry Pi 5B? HOT 8
- Not installable on MacOS for development
- Can't get Inky to work on Raspberry Pi Zero 2 W HOT 3
- It didn't blow up HOT 6
- image.py stretches certain pictures with different aspect ratios to the screen HOT 2
- buttons.py doesn't work: RuntimeError: Failed to add edge detection
- buttons.py on Pi 5 with Bookworm is just a tad screwy :) HOT 3
- Impression 5.7" light blue get displayed as green HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inky.