Python can't import module from package
问题 I have a flask restful project with the following layout (file names changed for convenience) myproject/ __init__.py app.py common/ __init__.py util.py foo/ __init__.py main.py utilities.py foo/ is just a folder containing code for one of the API endpoints, I'm planning to add others in the future, for this reason I have common/util.py file which contains reusable functions that I will use with other API endpoints. foo/main.py from flask_restful import Resource, request from utilities import