Epok
Epok

Reputation: 681

Pycharm Run server error no app.yaml file at '.' for google app engine project

I'm pretty new with Pycharm and since this morning i have tried different configuration to use the Run command with an existing Google app engine project but without success.

I have a pretty clear error :)

google.appengine.tools.devappserver2.errors.AppConfigNotFoundError: no app.yaml file at '.'

Nothing wrong with that because the existing project use a custom file call app_dev.yaml. So it's normal that Pycharm is unable to load the server.

How can i change this behaviour and tell Pycharm to use app_dev.yaml instead of app.yaml? Is it possible?

Thanks

Upvotes: 0

Views: 737

Answers (2)

Dan Cornilescu
Dan Cornilescu

Reputation: 39834

While the PY-9714 issue was, indeed, closed without a resolution, the automatic '.' added to the Run configuration has been reconsidered in PY-10675 in light of GAE support for multiple modules/services inside the same application and/or request routing using a dispatch.yaml file.

So in the more recent PyCharm versions it's possible to specify one or more .yaml files as options in the Run configuration. See for an example Pycharm multiple modules Run server

For those still running an older Pycharm version without the fix, a solution using a wrapper script is described in Run App Engine development server with modules in PyCharm

Upvotes: 0

Tadeu Gaudio
Tadeu Gaudio

Reputation: 17

I input an app.yaml on root directory and reloading my project, this working for me.

Upvotes: 0

Related Questions