Giter VIP home page Giter VIP logo

Comments (5)

robweber avatar robweber commented on August 24, 2024

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.

tkameroski avatar tkameroski commented on August 24, 2024

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.

robweber avatar robweber commented on August 24, 2024

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.

tkameroski avatar tkameroski commented on August 24, 2024

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.

robweber avatar robweber commented on August 24, 2024

Ok - thanks for the explanation. That all makes sense based on the code I'm seeing. Basically - from what I can tell:

  1. Fresh install got Pillow 9.0.1
  2. 7.8 in throws an error as the IT8951 __init__ method contains calls containing Pillow 9.1.0 variables
  3. 7.5 in works as it's not accessing that codebase
  4. Downgrade to 8.4.0 has the same problem, The IT8951 code expects Pillow 9.1.0 or above
  5. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.