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

nwdiag is incompatible with latest pillow version #51

Open
rernenwein opened this issue Oct 1, 2024 · 0 comments
Open

nwdiag is incompatible with latest pillow version #51

rernenwein opened this issue Oct 1, 2024 · 0 comments

Comments

@rernenwein
Copy link

I just discovered nwdiag and installed it.
But apparently it is incompatible with latest version pillow-10.3.0 and pillow-10.4.0
I get

# nwdiag -Tsvg simple.diag
ERROR: 'ImageDraw' object has no attribute 'textsize'

# cat simple.diag
nwdiag {
  network dmz {
      address = "210.x.x.x/24"

      web01 [address = "210.x.x.1"];
      web02 [address = "210.x.x.2"];
  }
  network internal {
      address = "172.x.x.x/24";

      web01 [address = "172.x.x.1"];
      web02 [address = "172.x.x.2"];
      db01;
      db02;
  }
}

# pip3 list | grep -i pillow
pillow                    10.4.0

# head $(type -p nwdiag)
#!/usr/bin/python3.11
# -*- coding: utf-8 -*-
import re
import sys
from nwdiag.command import main
if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
    sys.exit(main())

# nwdiag --version
nwdiag 3.0.0

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

1 participant