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

TypeError: display() takes 2 positional arguments but 3 were given #75

Closed
xdweaver opened this issue Jan 25, 2023 · 6 comments
Closed
Assignees
Labels
bug Something isn't working done Feature has been implemented, tested and released

Comments

@xdweaver
Copy link

I'm stuck please help me. Everything works great but when I send an image I get this error.

  • pi@raspberrypi:~/ePiframe $ ./ePiframe.py --test-display
  • ePiframe - e-Paper Raspberry Pi Photo Frame
  • 2023-01-25 11:55:44 : Verifying configuration...
  • 2023-01-25 11:55:44 : OK!
  • 2023-01-25 11:55:44 : Sending to display...
  • 2023-01-25 11:55:44 : Error sending photo to display: display() takes 2 positional arguments but 3 were given
  • Traceback (most recent call last):
  • File "/home/pi/ePiframe/./ePiframe.py", line 909, in
  • main()
    
  • File "/home/pi/ePiframe/./ePiframe.py", line 610, in main
  • test_display(config, logging)
    
  • File "/home/pi/ePiframe/./ePiframe.py", line 767, in test_display
  • display_manager.show_image(target_filename)
    
  • File "/home/pi/ePiframe/modules/displaymanager.py", line 45, in show_image
  • self.__display.show_image(photo_path)
    
  • File "/home/pi/ePiframe/misc/wavesharedisplay.py", line 60, in show_image
  • self.__epd.display(
    
  • TypeError: display() takes 2 positional arguments but 3 were given
  • any advice would be amazing. thanks
@MikeGawi MikeGawi self-assigned this Jan 26, 2023
@MikeGawi MikeGawi added the bug Something isn't working label Jan 26, 2023
@MikeGawi
Copy link
Owner

MikeGawi commented Jan 26, 2023

Thanks for rising this issue.

What Waveshare display are you using? And what Waveshare package and color schema you have configured in display and epaper_color values in config.cfg.

@MikeGawi MikeGawi added the in progress Request is being implemented label Jan 26, 2023
@xdweaver
Copy link
Author

xdweaver commented Jan 26, 2023 via email

@MikeGawi
Copy link
Owner

Please set display=epd_7in5b_V2 in config.cfg as currently you have epd_7in5_V2 BW display specified and let me know about results.

@xdweaver
Copy link
Author

xdweaver commented Jan 26, 2023 via email

@xdweaver
Copy link
Author

xdweaver commented Jan 26, 2023 via email

@MikeGawi MikeGawi added done Feature has been implemented, tested and released and removed in progress Request is being implemented labels Jan 26, 2023
@MikeGawi
Copy link
Owner

Great! Happy it worked! I will close this issue but don't hesitate to report new ones in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working done Feature has been implemented, tested and released
Projects
None yet
Development

No branches or pull requests

2 participants