Spacy on AppEngine standard

。_饼干妹妹 提交于 2019-12-11 07:08:16

问题


I'm trying to use Spacy on the new AppEngine Standard Python 3.7 runtime.

When I try to deploy I get:

ERROR: (gcloud.app.deploy) Cannot upload file [/my/project/path/venv/lib/python3.7/site-packages/spacy/lang/tr/lemmatizer.py], which has size [41523943] (greater than maximum allowed size of [33554432]). Please delete the file or add to the skip_files entry in your application .yaml file and try again.

A few oddities:

  • The docs seem to indicate that I don't need to upload the virtual environment and it will be created from requirements.txt
  • Looking at the log file, it seems to ignore .pyc files, but not the venv directory
  • The error message says to add to the skip_files in your application .yaml file and try again., but the docs say the python3.7 runtime doesn't use skip files and to use a .gcloudignore file instead, but adding venv/ or venv/* doesn't work (it appears to be ignored)

回答1:


To fix this, I needed up update gcloud and reauthenticate:

gcloud components update
gcloud auth login


来源:https://stackoverflow.com/questions/52107051/spacy-on-appengine-standard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!