-
Notifications
You must be signed in to change notification settings - Fork 87
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: function takes at least 3 arguments (1 given) #415
Comments
Please could you run I’m particularly interested in your version of Pillow – I wonder if this is related to #405? |
hello @alexwlchan thank your for you fast reply. the content of pip freeze
the content of loris2.wsgi
thanks ! |
Okay, try running If that works, can you tell me which bit of the docs you were reading that led you down this install path? Sounds like we need a warning there! |
By installing Pillow 4.3.0 it works nice when I query a jpeg image
the tiff files are tiled pyramidal. There are builded from jpeg file by using imageMagick with this type of command: thanks ! |
@modou33 could you please post the info.json file for this image, and the IIIF URL you're hitting when you get this error? |
The info.json is
Except the info.json all other IIIF query fail with an error 500. For exemple: thanks ! |
Maybe Pillow can't handle tiled pyramidal tiffs? @modou33, if you'd be interested in looking into this more, and even submitting a PR to add support, that'd be great. Otherwise, at least we have this issue as a feature request. |
This looks like a likely candidate for the "ValueError: tile cannot extend outside image" in 4.3.0: python-pillow/Pillow#3044 The TypeError looks like it might just be a Pillow bug. I’ll file it against the Pillow repo. |
I’ve raised python-pillow/Pillow#3053 to track the TypeError, which looks like another bug in Pillow 5’s handling of TIFs. (See also: #405 and python-pillow/Pillow#2926.) That includes a test image that we can use in the Loris test suite, if necessary. I’m unable to reproduce the ValueError with my test image, so maybe there’s something else at play here. @modou33 Are you able to provide the exact IIIF requests you’re making to Loris? I’m poking around with the region parameter but unable to hit this error. Even better, would it be possible to share one of your images? (I realise the latter may be trickier!) |
Hello.
I've successfully installed and configured the last version of loris. When I query server for getting the info.json file of an image all work nice.
However all others query (exemple: <http://host/ ...>/full/224,/0/default.jpg) return and error 500. On the log I get this trace
For information, I'm working with Tiff files and:
Ubuntu 16.04
Python 2.7.12
Apache 2.4
Thank you for you help.
The text was updated successfully, but these errors were encountered: