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

Library not usable #21

Closed
majuss opened this issue Jul 21, 2024 · 4 comments
Closed

Library not usable #21

majuss opened this issue Jul 21, 2024 · 4 comments

Comments

@majuss
Copy link

majuss commented Jul 21, 2024

I have a single line:
import adafruit_ssd1322

On a Raspberry Pi 4 3.11.2
This already fails with:

Traceback (most recent call last):
  File "/home/pi/displaytestvenv/test.py", line 2, in <module>
    import adafruit_ssd1322
  File "/home/pi/displaytestvenv/lib/python3.11/site-packages/adafruit_ssd1322.py", line 67, in <module>
    class SSD1322(displayio.Display):
                  ^^^^^^^^^^^^^^^^^
AttributeError: module 'displayio' has no attribute 'Display'. Did you mean: 'displays'?
@dastels
Copy link
Collaborator

dastels commented Jul 21, 2024

Are all the modules/libraries up to date?

@majuss
Copy link
Author

majuss commented Jul 21, 2024

yes fresh venv.

@FoamyGuy
Copy link
Contributor

I think the class that the the driver extends at the class definition here:

class SSD1322(displayio.Display):
needs to change to busdisplay.BusDisplay in order to be used on the latest versions of circuitpython core.

@FoamyGuy
Copy link
Contributor

This should be resolved by adafruit/Adafruit_Blinka_Displayio#136 I don't have this exact display to test but tried to get as close as possible with a different display driver modified to make it like this one.

Please update to the latest Blinka_DisplayIO version and try again. If you still have any issues feel free to re-open this or create a new one if appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment