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

raise IOError("decoder %s not available" % decoder_name) OSError: decoder zip not available #1

Open
ikrambennasrbennasr opened this issue Jul 4, 2018 · 1 comment

Comments

@ikrambennasrbennasr
Copy link

Hello , please when i run python app.py , the model can't predict and i get this error :

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/ubuntu/kerasenv/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/home/ubuntu/kerasenv/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/ubuntu/kerasenv/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/ubuntu/kerasenv/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/home/ubuntu/kerasenv/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/home/ubuntu/kerasenv/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functionsrule.endpoint
File "app.py", line 51, in predict
x = imread('output.png', mode='L')
File "/home/ubuntu/kerasenv/lib/python3.6/site-packages/scipy/misc/pilutil.py", line 155, in imread
return fromimage(im, flatten=flatten, mode=mode)
File "/home/ubuntu/kerasenv/lib/python3.6/site-packages/scipy/misc/pilutil.py", line 230, in fromimage
im = im.convert(mode)
File "/home/ubuntu/kerasenv/lib/python3.6/site-packages/PIL/Image.py", line 829, in convert
self.load()
File "/home/ubuntu/kerasenv/lib/python3.6/site-packages/PIL/ImageFile.py", line 200, in load
d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
File "/home/ubuntu/kerasenv/lib/python3.6/site-packages/PIL/Image.py", line 415, in _getdecoder
raise IOError("decoder %s not available" % decoder_name)
OSError: decoder zip not available
41.231.56.90 - - [04/Jul/2018 12:42:57] "POST /predict/ HTTP/1.1" 500 -

Any helps please . Thanks

@afarane
Copy link

afarane commented Oct 25, 2018

When I run python app.py
Chrome Address change http://localhost:5000 to http://localhost:5000/# but no prediction. ?

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

2 participants