PyDev project for Google App Engine does not find webapp2

I am trying to try Google App Engine using python. Being familiar with Eclipse, I decided to use PyDev. After some trouble, I have a nice world program working ... almost. It cannot find the webapp2 import, informing me that it is not resolved. I followed all the instructions I can find and the related Google engine libraries. I searched webapp2 as a potential import and cannot find it anywhere in any of the library files. I'm really new to python in general, and even new to Google App Engine, so I'm sure this is a simple issue that is compounded by my novelty.

I am running on OS-X, running Eclipse Indigo Service Release 1. I have the latest version of PyDev, available for download from Tuesday evening.

+6
source share
5 answers

In the settings, see PyDev > Interpreter - Python (or depending on what you use) and make sure that webapp2 is listed on the System libs Libraries tab. If it’s not, add it by clicking β€œNew Folder” on the right, then click β€œApply” and wait for it to look at your features again.

Please note that webapp2 is not part of the default libraries and must be installed separately. Here is a link to download it.

+9
source

The current SDK does not support the Python 2.7 runtime on dev_appserver, so it does not link new libraries such as webapp2. If all you need is libraries, you can download them and include them in your application yourself, but if you need additional runtime functions such as multithreading and PIL, you will need to do your development in the production environment at the moment.

+3
source

I am also facing this problem. And I follow the instructions of TorelTwiddler -> he's right, no webapp2.

You need to add $ {GOOGLE_APP_ENGINE} / lib / webapp2 to External Libraries.

This is because (I think) you are only changing the project interpreter, and not creating a completely new GAE project with PyDev. This action did not scan the libraries that it should include.

If you create a new GAE w / Pydev project, you will see that webapp2 is in the external list of libraries.

+3
source

This is not a PyDev problem - webapp2 is not included in the SDK - load webapp2 placed at the root of the project, as with additional features - not except that the SDK 1.5.5 supports python 2.7, since only production does this.

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

0
source

adding $ {GOOGLE_APP_ENGINE} /lib/webapp2-2.5.2 to "External Libraries" worked for me. App Engine SDK ver: 1.8.2 Version for Python: 2.7

0
source

Source: https://habr.com/ru/post/899239/


All Articles