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

Crashes when run #3

Open
andrewb-ms opened this issue Feb 3, 2018 · 1 comment
Open

Crashes when run #3

andrewb-ms opened this issue Feb 3, 2018 · 1 comment

Comments

@andrewb-ms
Copy link

Am getting this error when using Postman to send a file:

exit status 1
Traceback (most recent call last):
  File "index.py", line 16, in <module>
    handler.handle(st)
  File "/root/function/handler.py", line 221, in handle
    tf.app.run(main)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 44, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "/root/function/handler.py", line 197, in main
    os.path.expanduser(FLAGS.input_image)), 0)
  File "/usr/local/lib/python2.7/dist-packages/magenta/models/image_stylization/image_utils.py", line 250, in load_np_image
    image = scipy.misc.imread(f.name)
  File "/usr/local/lib/python2.7/dist-packages/scipy/misc/pilutil.py", line 156, in imread
    im = Image.open(name)
  File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 2452, in open
    % (filename if filename else fp))
IOError: cannot identify image file '/tmp/tmp1UgAmf'
@andrewb-ms
Copy link
Author

This is when bound to a public IP

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