Comments (5)
What version of Pillow do you have? It looks like starting in version 9.1 a bunch of stuff was deprecated.
https://pillow.readthedocs.io/en/latest/releasenotes/9.1.0.html#constants
It could just be we need to pin a specific version of the package.
from omni-epd.
I had pillow 9.0.1 installed. uninstalled it and installed 8.4.0 but got the same error but when I installed 9.2.0, it worked.
from omni-epd.
Did you, by chance, also update other packages when you did this? I see in the IT8951 package it's now using the new variables (post Pillow 9.1) instead of the ones referenced in the stack trace you had above. If you look at the link it's the same line as the one that threw the error but now the variable names have changed. If I had to guess I bet when you downgraded the IT8951 package had the updated names and when you upgraded again everything matched.
from omni-epd.
I did a fresh install using the bash script from SlowMovie, edited the conf file and got the error. I then connected a 7.5 display and exited the conf file and it worked with that display. I reconnected the 7.8 display, uninstalled Pillow 9.0.1 and installed Pillow 8.4.0 and got the same error. Finally I uninstalled 8.4.0 and installed 9.2.0 and it worked. No idea how or why. I didn’t update, reinstall or change the IT8951 package or any others unless Pillow updated another dependent when installing.
from omni-epd.
Ok - thanks for the explanation. That all makes sense based on the code I'm seeing. Basically - from what I can tell:
- Fresh install got Pillow 9.0.1
- 7.8 in throws an error as the IT8951
__init__
method contains calls containing Pillow 9.1.0 variables - 7.5 in works as it's not accessing that codebase
- Downgrade to 8.4.0 has the same problem, The IT8951 code expects Pillow 9.1.0 or above
- Upgrade to 9.2.0 finally works
I mistakenly transposed 9.0.1 for 9.1.0 when I gave you that link yesterday thinking the IT8951 package was using the old Pillow code. Ironically the issue was the same as it was updated for the new Pillow versions you just had an old one. The more I look at this there are aspects of omni-epd
that will need to be updated to avoid similar errors.
from omni-epd.
Related Issues (20)
- Mock Display Palette with Dithering HOT 2
- Add support for Waveshare 12.48 bw and tri-color screens
- clear() results in TypeError for WaveShare epd2in13_V2 HOT 6
- Not working with Waveshare 2.13inch Touch e-Paper HAT HOT 4
- Pillow Static Variables Changed HOT 1
- Couldn't find waveshare_epd.epd5in65f HOT 2
- Streaking on SlowMovie maybe epd related? HOT 1
- Thank you. Possible update to README. HOT 1
- Use with other epaper displays? HOT 4
- Waveshare 1872×1404 7.8inch display only supports "bw" mode, should support "gray4" HOT 2
- Update Waveshare Clear() Method calls
- Add Missing Waveshare Displays
- Waveshare 7.8" IT8951 communication failed HOT 8
- Incorrect config names in Readme
- No matching distribution found for omni-epd error when installing HOT 9
- Driver for Inky impression 7.3 HOT 3
- EPDConfigurationError with example image in red mode HOT 6
- Could not build wheels for IT8951, RPi.GPIO, spidev on Mac HOT 1
- Wrong resolution for waveshare_epd.epd7in3g, 168x400 but should be 800x480 HOT 3
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 omni-epd.