Google App Engine support for python in IntelliJ




Please do not move my question to the PyCharm forum. I do not have PyCharm. I am using IntelliJ.
If I were using PyCharm I probably wouldn't have this problem to begin with.


I'm trying to set up my environment to support google app engine on intellij but for python (not java).

I followed everything I could find on the subject, but still, I get the following error:

No module named webapp2


I'm using:

IntelliJ IDEA 2017.2.1
Build #IU-172.3544.35, built on July 31, 2017
JRE: 1.8.0_152-release-915-b6 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.6


Any ideas?


Comment actions Permalink

First of all, please let us decide which forum better suits your question. Historically, Python plug-in related questions go to PyCharm forum, the same as HTML/JavaScript questions go into WebStorm forum, no matter in which product they occur. That is because support engineers for the specific teams watch the corresponding forums to provide the better assistance with the topics they are more familiar with.

As for your problem, just create a new Python project in IntelliJ IDEA selecting Google App Engine option, this creates a project which works automatically out of the box without any errors. Then you can compare it to the project you have to find what's the difference and correct it.

Comment actions Permalink

While I understand (now) why you kept moving my question from the intellij forum to the pycharm one, it wasn't clear at the time.

Writing a simple comment as to why the question was moved would have solved it, but no, you decided to just move it around, and for me that was extremely annoying because I was asking about intellij and not pycharm.  Assume that the customer doesn't have the knowledge you do.


As for the problem, it turns out that the error is happening when you open the project in a directory with the following structure:

> my_project

  > my_client_project // javascript project

  > my_server_project // app engine python project


When I open the my_server_project it works well (in both intellij and pycharm), but if I want to avoid having two different windows (which I need to constantly swtich between) and open the my_project then things don't work as well (again, in both intellij and pycharm).

So I now work with two different windows, one for each project, but I wish I could have just used one.

Comment actions Permalink

Hi Nitzan Tomer! Could you please take a screenshot of you project structure in IDEA?

Comment actions Permalink

Adding a separate module for my_client_project should help.

Comment actions Permalink

Pavel, here's the project structure:

Serge, what do you mean by adding a module?  And are you sure that you don't mean to do that in the server project where I need to use app engine?



Comment actions Permalink

Your project will have 2 modules, one Python module with GAE facet and another Static Web module for the web-client.


Please sign in to leave a comment.