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

pysol.py crashes with "module 'PIL.Image' has no attribute 'ANTIALIAS'" #286931

Closed
l0b0 opened this issue Feb 7, 2024 · 1 comment · Fixed by #287161
Closed

pysol.py crashes with "module 'PIL.Image' has no attribute 'ANTIALIAS'" #286931

l0b0 opened this issue Feb 7, 2024 · 1 comment · Fixed by #287161
Labels

Comments

@l0b0
Copy link
Contributor

l0b0 commented Feb 7, 2024

Describe the bug

As above.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Run nix-shell -p pysolfc
  2. Run pysol.py

Expected behavior

The application should start.

Additional context

Full log:

❯ pysol.py 
Traceback (most recent call last):
  File "/nix/store/4imqpk91g8w6m27533gcbp2d3cqrw24m-PySolFC-2.20.1/bin/.pysol.py-wrapped", line 37, in <module>
    from pysollib.main import main  # noqa: E402,I202
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/4imqpk91g8w6m27533gcbp2d3cqrw24m-PySolFC-2.20.1/lib/python3.11/site-packages/pysollib/main.py", line 30, in <module>
    from pysollib.app import Application
  File "/nix/store/4imqpk91g8w6m27533gcbp2d3cqrw24m-PySolFC-2.20.1/lib/python3.11/site-packages/pysollib/app.py", line 32, in <module>
    from pysollib.actions import PysolMenubar
  File "/nix/store/4imqpk91g8w6m27533gcbp2d3cqrw24m-PySolFC-2.20.1/lib/python3.11/site-packages/pysollib/actions.py", line 28, in <module>
    from pysollib.help import help_about, help_html
  File "/nix/store/4imqpk91g8w6m27533gcbp2d3cqrw24m-PySolFC-2.20.1/lib/python3.11/site-packages/pysollib/help.py", line 29, in <module>
    from pysollib.pysoltk import HTMLViewer
  File "/nix/store/4imqpk91g8w6m27533gcbp2d3cqrw24m-PySolFC-2.20.1/lib/python3.11/site-packages/pysollib/pysoltk.py", line 28, in <module>
    from pysollib.ui.tktile.tkutil import *  # noqa: F401,F403
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/4imqpk91g8w6m27533gcbp2d3cqrw24m-PySolFC-2.20.1/lib/python3.11/site-packages/pysollib/ui/tktile/tkutil.py", line 250, in <module>
    class PIL_Image(ImageTk.PhotoImage):
  File "/nix/store/4imqpk91g8w6m27533gcbp2d3cqrw24m-PySolFC-2.20.1/lib/python3.11/site-packages/pysollib/ui/tktile/tkutil.py", line 291, in PIL_Image
    def resize(self, xf, yf, resample=Image.ANTIALIAS):
                                      ^^^^^^^^^^^^^^^
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'

Running nixos-unstable.

Notify maintainers

@kierdavis

Metadata

  • system: "x86_64-linux"
  • host os: Linux 6.1.75, NixOS, 24.05 (Uakari), 24.05pre577948.97b17f32362e
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.18.1
  • channels(root): "nixos, nixos-hardware"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Add a 👍 reaction to issues you find important.

@l0b0 l0b0 added the 0.kind: bug Something is broken label Feb 7, 2024
@dotlambda
Copy link
Member

This should be fixed by a simple update: shlomif/PySolFC#323

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants