Forums

Import Error

Hi - I have a Flask app at the home directory (/home/xyz/mysite/flask_app.py) and a manually created virtual environment (/home/xyz/.virtualenvs/xyzve/).

I have a file (abc.py) at the same level of flask_app.py - both files work well separately on the console. However, when I tried to import abc.py from within the flask_app.py, I got an "importError message".

Please advise how to resolve this problem? Thank you.

Hm- are you sure this is the most recent error message that you are seeing in your webapp error log?

Thanks, the problem is solved.