I am attempting to run the program from lecture 8, but I am experiencing errors with statements on line 1 and 9. I am using the CS50 IDE on Cloud9.

I have tried the following:

  • Downloaded my workspace as a zip, deleted the entire workspace, created a new one, ran update50 and then uploaded my previous workspace files, did not work.
  • Ran sudo pip install Flask followed by sudo pip install --upgrade Flask, this also did not work.

Import error enter image description here


Line 1: What is flask.py in the other tab? That's what your program is trying to load. Rename it. It has to do with namespaces?

Line 9: POST is not a variable, it should be a string literal, ie "POST".

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .