开发者

Does mimetools.py module working on Google App Engine

开发者 https://www.devze.com 2023-02-16 07:18 出处:网络
I got this error message .. what is the problem ? Traceback (most 开发者_JS百科recent call last):

I got this error message ..

what is the problem ?

Traceback (most 开发者_JS百科recent call last):
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 517, in __call__
    handler.post(*groups)
  File "/base/data/home/apps/refacingme/1.348883430619943894/main.py", line 187, in post
    upload_pic(profile["id"], user["access_token"], "test", "test.jpeg", image_source)
  File "/base/data/home/apps/refacingme/1.348883430619943894/main.py", line 320, in upload_pic
    form = MultiPartForm()
  File "/base/data/home/apps/refacingme/1.348883430619943894/main.py", line 215, in __init__
    self.boundary = mimetools.choose_boundary()
  File "/base/python_runtime/python_dist/lib/python2.5/mimetools.py", line 131, in choose_boundary
    hostid = socket.gethostbyname(socket.gethostname())
AttributeError: 'module' object has no attribute 'gethostbyname'


The socket library is not supported under AppEngine. See the docs.

0

精彩评论

暂无评论...
验证码 换一张
取 消