<project name> is not an App Engine project when attempting to deploy - python

I'm getting this error when I attempt to deploy my python project for the first time. I could have sworn that I set everything up correctly. Is there something I need to set in the configuration? I have not idea where to start looking, any help would be appreciated.
This is my app.yaml file. It resides in the src folder:
application: bsl-dm
version: 1
runtime: python
api_version: 1
EDIT: After looking into this, I think the solution is that you cannot do this for python through eclipse (only java). You instead have to use the separate "Google App Engine Launcher" application.

I got your problem. I think you are using google plugin to deploy the app which expects an java application. It won't work for python applications. To deploy python app engine app from eclipse use pydev plugin. A search on google will get you there

This got me too! I assumed the button in the toolbar could be used for Python too but it was only for java.
In eclipse(which im guessing its the same in Aptana) once you have the pydev plugin installed simply right click on your apps main folder and go to "PyDev: Google App Engine" and click 'Upload'

You have a register a unique application id in appengine.google.com for your account inorder to deploy the same.You will see something like this where you have to choose a id and register it. Make sure you have mentioned the same in your app.yaml.

Have you reserved that app-id at https://appengine.google.com/ ?

Related

Configuring Google App Engine Python runtime on IntelliJ

I can't seem to be able to add the Google App Engine Python runtime on IntelliJ. I tried to add an additional Python SDK and configure my project to use that, but I can't find the correct Python runtime to point to.
Note that I'm not interested in using the PyCharm IDE, and want to maintain the polyglot IntelliJ IDE setup.
My setup:
IntelliJ Ultimate 13.1
Python plugin
Google App Engine Plugin
Google Cloud SDK
Relevant links:
https://cloud.google.com/sdk/
http://plugins.jetbrains.com/plugin/?id=631
https://www.jetbrains.com/pycharm/quickstart/appengine_guide.html
You probably solve this task and find right approach for you.
I'll just add my solution for this task for IntelliJ 2016 and later, probably earlier version too.
At first, I advise you to crate virtualenv. And install gcloud and Google App Engine itself using cloud toolkit.
Next, open in IDE your project by selecting proper folder.
Go to File > Project structure (Mac) and in Project Settings section > Project, in Project SDK drop-down choose /or set your newly crated virtualenv.
After that, go to Modules in the same section, and hit + sign. Choose New Module from context menu. Go to Python section, and there mark Google App Engine (Python) checkbox. Set your Application ID in proper field beneath checkbox list, and choose path to Google App Engine SDK. If you set SDK trough gcloud toolset, you can get right path by using gcloud info command in console by your favour. Path that you are looking for is Installation Root and add /platform/google_appengine to it.
Congratulations. You are good to go!

Working locally on web-application

I have been added as developer on application.
On Applications Overview this app is shown together with my other app, that I can freely access and change via Google App Engine Launcher.
Question is how to get app I'm supposed to work on my computer locally(in other words in GAE), so I can test and change it locally in the browser on my computer...
Windows 7
App Engine SDK-release: "1.7.6"
API: python27
You can use the appcfg application (the one that handle uploads) to download the source code.
This only works if the administrator has not disabled it.
However, it would be better to ask the developpers to provide you with the original source code !

App Engine problems using the command line

I am developing an App Engine project on Windows using Eclipse and Python 2.5 and Django 0.96. Everything in my app, including Django, is working nicely.
My problems arise when I try to use command line. For example, I'm told that if I want to clear the local datastore I can enter "python manage.py reset" but when I do so the response is "python: can't open file 'manage.py'".
I feel as if I have missed a configuration step. I have checked my system variables and "Path" includes "C:\Python25" (which I had added manually) but nothing Django or App Engine related. My .py extension is associated with C:\Python25\python.exe.
In my quest to solve this, and in trying to understand what manage.py is, I see that I might have had to create a Django project using "django-admin.py startproject [myproject]" but because everything works nicely from Eclipse I'm not sure if this is necessary now. In any case, if I try to enter this from the command line I get "'django-admin.py' is not recognized..."
Please, what am I missing?
If you're using Django 0.96 templates within a 'normal' App Engine app, then manage.py isn't involved at all.
/path/to/dev_appserver.py --clear_datastore .
is what you want, assuming you're CD'd to the root of your app.

This application does not exist (app_id=xxx)

I was unable to upload to an AppEngine as appcfg was telling me :
This application does not exist (app_id=u'xxx').
I was only a developer on the AppEngine, so as I was just testing I created a new AppEngine where I was the owner but I still get the same message on a newly created AppEngine.
The fix I found was to add the parameter --no_cookies:
appcfg.py update --no_cookies MyProjectDirectory/
This can happen when you upload AppEngine applications from different Google accounts on the same computer.
You have to log in in your gae account and create an application before you upload it, and your app_id has to have the same name as you app. You can't just upload it.
So go here, create your app, for example "example_app" and set the app_id=example_app and everything should work :)
The same problem occurs with the Java/Eclipse plugin version of App Engine. The 404 happens when you're logged in to the wrong Google account from within the plugin. In that case, look at the bottom-left of Eclipse to see what account you're currently using.
Regarding the Python command line updater, if your cookies indicate that you're logged in to a Google account that doesn't have access to the application you're updating, then that would explain why ignoring those cookies by using "appcfg.py update --nocookies" fixes it.
This is really old, so I wouldn't be surprised if this isn't picked up by the poster, but I wanted to ensure that I have a reference for the next time I have the issue.
I had this issue. My problem ended up being that I had not invited the user that I was authenticating as to be a developer on the project. In fact I had just created the user and not even logged on yet.
I logged on to the google infrastructure as the new user, then added the new user as a developer on the application. I was then able to upload the app.
Tried to upload to the app this morning (first time i've tried since Friday) and it just worked (first time...!)
No idea what the issue was as I haven't done any work on this over the weekend so everything should have been the same as it was on Friday.
I got the same error message trying to make the first deployment of a Python Application using a Google Apps account.
In my case the problem was caused by the fact that my 2-way authentication is enabled.
With 2-way authentication enabled you need to generate an authentication password in your Google Account Management Application and use it to do the deployments.
this way worked:
modified the app.yaml to specify the application: some_id
python appcfg.py update ../some_application/server/python
I fixed this problem by editing my app.yaml file to have the correct application name. In the app.yaml file where it says 'application:[insert app name here]', I had to change the [insert app name here] part. I'm not sure why the name was wrong, but I do remember toying around with it before while attempting to fix a different bug. The way I figured out the proper name was to go to my applications in my GAE admin console and look to see what the app's name was there. Hope this helps anyone else that runs into this same problem :)
If you are using --oauth2 make sure that you are logged into the correct account when generating the token.
appcfg.py --no_cookies --oauth2 --email=myemail --noauth_local_webserver update .
I navigated to my app engine directory folder and ran the above command. This deployed it successfully from the command line for me (Mac OSX terminal)--although I still couldn't deploy from app engine launcher. I believe Launcher still thinks I'm running off port 8080. However, running dev_appserver.py --port=11080 .doesn't fix this issue for me-- what ended up solving it was just removing the directory from the app engine launcher then just re-adding it.
What worked for me is to use the project id from the google app engine console instead of the project name in app.yaml
Posting Ric Moore's comment in the selected answer because that is a valid answer and it worked in my case (and hopefully it helps someone else having the same issue spot it quickly).
I have an alternation solution - in the Google App Engine Launcher select from the menu Control > Clear Deployment Credential. Then when you click Deploy it will take you through the auth flow again and you can select the correct account. - Ric Moore
I had this issue and I simply needed to run 'gcloud app create' for this project within the console console. Screenshot
Previously I don't think this step was needed.

how to get started with google app-engine?

I m starting to build python application in windows platform using google appengine
whats the steps to debug and run my application
On Windows I use Aptana.
Once you've installed that, run it, go to the Plugins tab and get Pydev.
Pydev has inbuilt support for google app engine - so you can create an app engine project, and then run or debug it. See these posts for more details:
http://pydev.blogspot.com/2009/05/testing-on-pydev-146-google-app-engine.html
http://pydev.blogspot.com/2009/05/pydev-146-released-google-app-engine-on.html

Categories

Resources