Pillow 10.0.0 throw "ImageDraw.textsize{}" error #13595
-
|
Hello, Firstly I am sorry for not providing that much information, I'm here to ask how I can provide them firstly. So my env is:
netbox-topology-views
netbox-documents
netbox_inventory
phonebox-plugin
netbox-qrcode
netbox-ipcalculator
netbox-ipv4-tools
netbox-device-view
netbox-nagios
git+https://github.com/arthanson/netbox_healthcheck_plugin #This is netbox_healthcheck_plugin
(venv) netbox@netbox-test:/opt/netbox$ python3 -m pip list -v | grep Pillow
Pillow 10.0.0 /opt/netbox-3.5.8/venv/lib/python3.10/site-packages pipSo when I go to the Netbox WebUI > DCIM > Rack > Then click on one of my Rack (for example) I got that error I tried to do a grep into all files in "/opt/netbox/" to search all occurrences of "ImageDraw" but got lots of results, attached here: I searched on internet and found out that PIllow 10.0.0 has removed that "ImageDraw.textsize" attribute and so workaround is 9.5.0 or to modify the source code to use something else like "textbox". I know how to work around: (venv) netbox@netbox-test:/opt/netbox$ pip install Pillow==9.5.0
(venv) netbox@netbox-test:/opt/netbox$ sudo systemctl restart netboxIt then no more error. But this error means there is somewhere an "ImageDraw.textsize" depreciated usage. I think it can come from a plugin but how to know which one is the culprit? Or maybe is it from Netbox and I misread something that state we need to have Pillow 9.5.0 max and not 10.0.0? Thank you in advance for your helps. Best Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
netbox-qrcode |
Beta Was this translation helpful? Give feedback.

netbox-qrcode