Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find appcfg.py or dev_appserver.py?

My computer says...

"-bash: appcfg.py: command not found"

What is wrong?

I can run my application using google-app-engine-launcher and I have python pre-installed.

I am trying to upload my app using "appcfg.py update myapp"

I am new to Mac development.

like image 792
Damian Avatar asked Mar 03 '11 22:03

Damian


4 Answers

If someone (like me) comes across this more recently due to appcfg.py and dev_appserver.py still appearing frequently in the documentation:

0.9.68 (2015/07/08)

[...]

  • The standalone App Engine SDKs are no longer distributed through the Cloud SDK.
    • App Engine functionality can still be used through the gcloud preview app command group.
    • [...]
    • If you need to use appcfg or dev_appserver directly, these are still available in the App Engine SDK downloads that can be found here: https://cloud.google.com/appengine/downloads

(from google-cloud-sdk/RELEASE_NOTES)

like image 108
pix Avatar answered Nov 11 '22 01:11

pix


In App Engine launcher there is a menu option called "Make Symlinks..." that adds symlinks for the various App Engine utility commands, like appcfg.py.

like image 27
Calvin Avatar answered Nov 11 '22 01:11

Calvin


This is how my path dir looks like: Home/Brice/google_projects/google_appengine

I store both the google_appengine and my google_apps in my google_projects folder

In terminal: (While in my google_projects folder)

upload to localhost:

google_appengine/dev_appserver.py appname

upload to GAE:

google_appengine/appcfg.py update appname

and replace appname with the name of your app folder

Hope that helps!

like image 4
Brice Lin Avatar answered Nov 11 '22 02:11

Brice Lin


Try: ./appcfg.py

Current dir is usually not part of path.

like image 1
Peter Knego Avatar answered Nov 11 '22 01:11

Peter Knego