ModuleNotFoundError: What does it mean __main__ is not a package?
Simply remove the dot for the relative import and do:
from p_02_paying_debt_off_in_a_year import compute_balance_after
ModuleNotFoundError: No module named '__main__.web_app'; '__main__' is not a package while importing package from sub folder
I resolved above problem after added following code into the run.py.
import sys
sys.path.append('../web_app')
sys.path.insert(0,'./web_app')
Related Topics
Python Pip Install Fails: Invalid Command Egg_Info
Python | Make the Percentage of a List
Iterating Over Every Two Elements in a List
Stored Procedures With Sqlalchemy
How to Delete Lines from CSV File Using Python
Unit Testing a Method With No Return Value
I Want to Multiply Two Columns in a Pandas Dataframe and Add the Result into a New Column
Pandas Map One Column to the Combination of Two Columns
How to Stagger or Offset X-Axis Labels in Matplotlib
Matching Text Between a Pair of Single Quotes
How to Split a CSV File Row to Columns in Python
How to Test If a Column Exists and Is Not Null in a Dataframe
Counting the Number of Duplicates in a List
Calculating Manhattan Distance in Python in an 8-Puzzle Game
Ssl: Certificate_Verify_Failed With Python3
Unpivot Multiple Columns With Same Name in Pandas Dataframe