Python 为什么images.get_service_url在dev服务器上给出了404?

Python 为什么images.get_service_url在dev服务器上给出了404?,python,google-app-engine,http-status-code-404,Python,Google App Engine,Http Status Code 404,我基本上是通过XHR请求上传一个图像,它正在生产中工作,但不在开发中 image.get\u service\u url()给出的链接返回404 链接示例:http://localhost:8080/_ah/img/LCDrjov_QuwEE7peQTeAbg== class UploadHandler(blobstore_handlers.BlobstoreUploadHandler): def post(self): upload_files = self.get_uploads('

我基本上是通过XHR请求上传一个图像,它正在生产中工作,但不在开发中

image.get\u service\u url()给出的链接返回404

链接示例:
http://localhost:8080/_ah/img/LCDrjov_QuwEE7peQTeAbg==

class UploadHandler(blobstore_handlers.BlobstoreUploadHandler):
def post(self):
    upload_files = self.get_uploads('file')  # 'file' is file upload field in the form
    blob_info = upload_files[0]

    blob_key = blob_info.key()

    tmp_file = ProjectImage()
    tmp_file.image_blobkey = blob_key
    tmp_file.image_serve_url = images.get_serving_url(blob_key)
    tmp_file.project_id = int(self.request.get('project_id'))
    tmp_file.put()

    self.response.out.write("success")
编辑:我正在使用与Python应用程序引擎1.8.9绑定的Google应用程序引擎启动器


解决方案:

问题是没有找到PIL。我从App Engine文档中提供的链接安装了32位版本。我需要64位的版本,这是不容易找到的,因为它都被枕头取代

这里有一个链接:


(向下滚动至文章末尾以获取二进制文件)

您可以自己回答问题,并接受此答案以将其标记为已回答。我还没有足够的分数:(