我試圖找到這個問題的答案,但無法確定是否可能以某種方式添加不受Google App Engine支持的Python庫。Google App Engine中不受支持的Python庫
我的Python程序並不是一個Google應用程序,但現在我想成爲一個Google應用程序。
這是一個非常大的項目,有數千行代碼,並且使用許多不在list of supported libraries上的庫。
的第一個錯誤,我得到和堆棧跟蹤:
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\appinfo_includes.py", line 63, in ParseAndReturnIncludePaths
appyaml = appinfo.LoadSingleAppInfo(appinfo_file)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\appinfo.py", line 1690, in LoadSingleAppInfo
listener.Parse(app_info)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\yaml_listener.py", line 226, in Parse
self._HandleEvents(self._GenerateEventParameters(stream, loader_class))
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\yaml_listener.py", line 177, in _HandleEvents
raise yaml_errors.EventError(e, event_object)
google.appengine.api.yaml_errors.EventError: the library "gspread" is not supported
這將可能是其他庫,如相同:IGRAPH,開羅等..
有一個簡單的解決這個問題還是必須放棄將我的程序部署到Google?
純Python庫可以隨代碼一起上傳,但使用C擴展名(不是可選)的庫可能無法工作,除非Google專門提供該擴展庫。 – Blckknght 2013-04-24 08:57:08
[如何在Google Appengine中包含第三方Python庫?](http://stackoverflow.com/questions/14850853/how-to-include-third-party-python-libs-in-google-appengine) – Lipis 2013-04-24 09:13:54
第一個答案基本上回答你的問題 – Lipis 2013-04-24 09:14:53