Advertisement
Guest User

Error

a guest
Nov 10th, 2013
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.01 KB | None | 0 0
  1. Traceback (most recent call last):
  2.   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
  3.     rv = self.dispatch_request()
  4.   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
  5.     return self.view_functions[rule.endpoint](**req.view_args)
  6.   File "/usr/local/lib/python2.7/dist-packages/flask_restful/__init__.py", line 242, in wrapper
  7.     resp = resource(*args, **kwargs)
  8.   File "/usr/local/lib/python2.7/dist-packages/flask/views.py", line 84, in view
  9.     return self.dispatch_request(*args, **kwargs)
  10.   File "/usr/local/lib/python2.7/dist-packages/flask_restful/__init__.py", line 318, in dispatch_request
  11.     resp = meth(*args, **kwargs)
  12.   File "test.py", line 162, in post
  13.     key.set_contents_from_filename(file.readlines())
  14.   File "/usr/local/lib/python2.7/dist-packages/boto/s3/key.py", line 1287, in set_contents_from_filename
  15.     with open(filename, 'rb') as fp:
  16. TypeError: coercing to Unicode: need string or buffer, list found
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement