Running GAE GCS on PyCharm under OS X, runtime error “No module named cloudstorage”

前端 未结 4 2126
轮回少年
轮回少年 2021-02-20 13:11

I am trying to add Google Cloud Storage functionality to a Python GAE app that is already running with significant functionality. I work entirely within PyCharm on my developmen

4条回答
  •  深忆病人
    2021-02-20 13:55

    Actually, you also need to

    touch __init__.py

    in the lib directory. This will make the cloudstorage module visible to the "import lib.cloudstorage" command.

    Dear Google: The distributions should include this file (or the procedure should account for it), and the demo script should be changed to reflect the expected usage. But more importantly why are you distributing/PROLIFERATING library code like this??!!! Why is this not distributed via gcloud? How am I ever going to pick up a patch for this library?

提交回复
热议问题