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

Has compatibility issues with most recent version of Pillow #45

Closed
9sven6 opened this issue Feb 23, 2024 · 2 comments
Closed

Has compatibility issues with most recent version of Pillow #45

9sven6 opened this issue Feb 23, 2024 · 2 comments

Comments

@9sven6
Copy link

9sven6 commented Feb 23, 2024

After a fresh install, I ran the initial_calibration command of workflow.py and tried to use +/- to zoom.
The following error appeared:

Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\admin_user\.pyenv\pyenv-win\versions\3.11.5\Lib\tkinter\__init__.py", line 1948, in __call__
    return self.func(*args)
           ^^^^^^^^^^^^^^^^
  File "D:\MyPTV\Test-Project\.venv\Lib\site-packages\myptv\gui_intial_cal.py", line 792, in zoomIn
    Image.ANTIALIAS)
    ^^^^^^^^^^^^^^^
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'

I could get around this issue by downgrading my Pillow to 9.5.0, since in 10.0.0 some attributes were deprecated. But still, probably worth fixing, or else putting the pillow version in the install guide.

@ronshnapp
Copy link
Owner

@9sven6 Thanks for the comment. I fixed the code to use the new format (LANCZOS instead of ANTIALIAS) and added the pillow>=9.5.0 requirement. This is now on Master branch. Feel free to close this issue if you agree it is resolved.

Best,
Ron

@9sven6
Copy link
Author

9sven6 commented Feb 26, 2024

This indeed resolved the issue. Thanks for the quick response.

@9sven6 9sven6 closed this as completed Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants