Closed mjdavies closed 8 years ago
Hey @mjdavies
What version Python are you using?
Could you run the following in a Django shell on the environment that doesn't work, and paste the output here:
from willow.registry import registry
registry._registered_image_classes
registry._unavailable_image_classes
registry._registered_operations
Thanks @mjdavies!
Yep, it looks like that may be the issue. Installing OpenCV can be a little tricky as it isn't pip-installable. You can find docs for installing it in Wagtail though: http://docs.wagtail.io/en/v1.5.2/advanced_topics/images/feature_detection.html#setup
It looks like there's a bug in Willow's error handling as it should've raised that ImportError('No module named cv',)
error at the point you were accessing the detect_faces
method. Which version of Python are you using?
Hi Kaedroho
Python 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2] on linux2
I've just built a docker image for our app installing everything with pip and that has worked, which is a bit nuts!!
ok. moving on
I've uninstalled python-opencv, then reinstalled it.
I'm uploading the output of those commands again Kaedroho, ouput2.txt as I'm still getting the same error as before, but cv is present now.
Hello everyone, anyone got any ideas about this?
Afternoon all
I'm pretty sure this isn't a problem with willow, but thought I'd ask in here to see if anyone can see my mistake.
We're getting an error trying to upload images.
Server Error Report this error to your webmaster with the following information: Internal Server Error - 500
AttributeError: 'PNGImageFile' object has no attribute 'detect_faces'
I got the same for jpegs as well.
It's working locally in my docker setup, and I can't seem to spot the difference in the pip list output, they seem the same.
Anyone got any ideas?
notworking.txt working.txt