Skip to content

How to run the images sample and Unable to find the Python PIL library? #787

Closed
@scheung38

Description

@scheung38

Tried to open at the python-docs-samples/images level i PyCharm:

/api
/guestbook

But not sure how to run it?

When trying to run main.py:

Traceback (most recent call last):
  File "/Users/seb/PycharmProjects/GoogleCloudPlatform/python-docs-samples/appengine/standard/images/api/main.py", line 23, in <module>
    from google.appengine.api import images
ImportError: No module named google.appengine.api

Also Unable to find PIL? Even though it is installed with pip?

I did noticed that there is no GAE as its External Libraries, so best practice to open another new Google App Engine app within PyCharm and copy and paste these two directories? Do I need both the /api and /guestbook to run? How to run as there are two main.py in each folder?

Copy and pasted the image/api and image/guestbook into newly created GAE project in PyCharm
but upon running:

google.appengine.tools.devappserver2.errors.AppConfigNotFoundError: "/Users/seb/PycharmProjects/myphotosharing" is a directory but does not contain app.yaml or app.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions