Gae " No Attribute 'Httpshandler' " Dev_Appserver.Py

GAE no attribute 'HTTPSHandler' dev_appserver.py

Solved the issue...just needed to build all dependencies of python using:

apt-get build-dep python

python compiles with no error even when all the dependencies are not installed. It just skips the modules which require them and builds python.

Error with dev_appserver.py of Google App Engine

Looks like the python you installed didn't have SSL compiled in. This is the same question basically:

How do I configure multiple Ubuntu Python installations to avoid App Engine's SSL error?

Python with Google App Engine. AttributeError: 'module' object has no attribute 'HTTPSHandler' error message

Welcome to Python, App Engine, and Stack Overflow!

Your Python installation apparently lacks SSL support. To add support, install this.

http://code.google.com/p/googleappengine/issues/detail?id=19

dev_appserver.py not starting development server

I have manged to solve this problem by installing all the modules required on virtualenv not inside the lib directory. After cloning the repository, run this command.

pip install -r requirements.txt

error running GAE dev_appserver.py on Ubuntu

It looks like your distribution of the SDK is corrupt.

LIne 193 of datastore_stub_util.py look like

datastore_types.SCATTER_SPECIAL_PROPERTY: (False, True, _GetScatterProperty)

I would re download it.

Regards

Tim

Google App Engine: No module named setup

It appears that you're somehow ending up running it with python 3, see:

  • ImportError: No module named 'setup'
  • Dev_appserver.py error when trying to deploy to Google AppEngine

In addition to trying the answers to those questions I'm thinking you could also try explicitly selecting the python version, like this:

python2.7 /usr/bin/dev_appserver.py [first-app ...]

A more "permanent" alternative which wouldn't require you to do the above for every invocation would be to modify (as root) /usr/bin/dev_appserver.py and replace #!/usr/bin/env python at the top with #!/usr/bin/env python2.7. With this change it should just work normally as long as you have a valid 2.7 python installation on your system, even if it's not the default one.

It may appear hacky, but given that dev_appserver.py can only be used with standard env GAE apps, which only supports python 2.7, IMHO it's rather natural - Google could have done it in this particular case. But since they didn't, just re-member to re-do it when needed as SDK updates will probably wipe it away.

Cannot run a simple helloworld in gae (python 2.7)

One difference between the files that you have on github and the official google hellworld tutorial is that your helloworld file doesn't seem to be named helloworld.py. Potentially that would help?

Additionally, do you need that PROJECT_DIR variable at the top of helloworld?

If you are struggling to get the basic tutorial working, the first thing you should do is make sure that your project is literally the exact same as the google example.

App Engine Python 2.7 - ImportError: cannot import name apiproxy

EDIT

This issue seems to have been resolved with Google Cloud SDK version 371


On my debian based system i fixed it by downgrading the app-engine-python component to the previous version

sudo apt-get install google-cloud-sdk-app-engine-python=359.0.0-0
sudo apt-get install google-cloud-sdk-app-engine-python-extras=359.0.0-0

gcloud version (after downgrade)

Google Cloud SDK 360.0.0
alpha 2021.10.04
app-engine-python 1.9.94
app-engine-python-extras 1.9.95
beta 2021.10.04
bq 2.0.71
cloud-build-local 0.5.2
cloud-datastore-emulator 2.1.0
core 2021.10.04
gsutil 5.3

I created an issue for this bug: https://issuetracker.google.com/issues/202171426



Related Topics



Leave a reply



Submit