0

I've been trying to set the GCloud local development server up with php82 but is unsuccessful.

I've installed Google Cloud SDK version 496.0.0 (latest) and Python 3.9.5 but it return the following error:

dev_appserver.py: error: the following arguments are required: yaml_path

Versions

Error

The third screenshot shows the error after implementing @NoCommandline's answer@NoCommandline's suggestion

4
  • The error is very clear and it even says the argument required. Have you tried that? Commented Oct 14, 2024 at 16:04
  • @Puteri The required yaml_path is there but somehow, it doesn't recognizes it Commented Oct 14, 2024 at 16:15
  • In the first screenshoot you're only setting the port and that's all. I don't see any command where you're setting it. Commented Oct 14, 2024 at 16:17
  • @Puteri The "." you see there is the yaml_path which means - current directory. I've also tried the full path (C:\koboapp) but same result Commented Oct 14, 2024 at 17:01

1 Answer 1

1

. or C:\koboapp is a directory. The command expects a path to the yaml file e.g. C:\koboapp\app.yaml

Per the documentation

specifies one or more app.yaml files, one per service, for the positional argument yaml_path

Sign up to request clarification or add additional context in comments.

2 Comments

I just ran: python "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin\dev_appserver.py" \koboapp\app.yaml --port 9090 --php_executable_path \php82\php-cgi.exe and the result is the third screenshot attached
I think your code has a bug. Your app actually started (see the line that said - starting module default running at..). Your error says not expecting type class 'list'. Check your code/try running a simple hello world app. Also, you ran your command from within your python directory - you shouldn't do that. I suggest you either run your command from your C root or run it from your project(app) directory and be consistent in how you specify paths. Also, if you added dev_appserver.py and your python executable to your PATH, you don't have to specify their full path.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.