I'm trying to get started with using Google app engine with PHP (on Windows 7) and have been trying to follow the helloworld example here.
Problem I am having is in starting the webserver. Whenever I try to run it I get the error
dev_appserver.py: error: too few arguments
I'm typing the following at the command line:
google_appengine\dev_appserver.py --php_executable_path=c:\php\php-cgi c:\appengine\helloworld\
Any suggestions as to what I am doing wrong?
Cheers
Use quotes for arguments.
google_appengine\dev_appserver.py --php_executable_path="c:\php\php-cgi" "c:\appengine\helloworld"
Or use slashes instead of backslashes as directory separator:
google_appengine\dev_appserver.py --php_executable_path=c:/php/php-cgi c:/appengine/helloworld
For best results combine both methods ;)
So I was running into this issue, and tried every permutation of paths using quotes, and switching to the directory where appengine SDK was installed etc. Finally I realized that Python was running the script but it wasn't including the command line arguments being passed in. So I had to manually call python like this:
c:\<python_path>\python <sdk_path>/dev_appserver.py --php_executable_path=c:/php/php-cgi.exe helloworld/
I'm not a python guy so I don't know why the command line arguments got stripped, but I've had this issue with other applications in Windows 7
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With