DistlibException Error Arithmetic Formatter

Each time I try to run my project from main.py I keep getting a traceback on the DistlibException file in line 20 for no known parent. The error I keep getting is below and I cannot continue forward with it. Please help.

 python venv/lib/python3.8/site-packages/distlib/index.py
Traceback (most recent call last):
File “venv/lib/python3.8/site-packages/distlib/index.py”, line 17, in
from . import DistlibException
ImportError: attempted relative import with no known parent package
exit status 1

There’s probably something wrong with your import statements.

If you do a google search on this line you may get hints to look for/fix.

What hbar1st said. But also, if you can post a little of the code where the error is happening, that would help in being able to confirm what the import error might be.

@GregBazile I had an issue with the run button being set to “python venv/lib/python 3.8/site-packages/distlib/index.py” instead of the test module “python test_module.py”. I couldn’t find where to change the run button behavior and had to import the replit again and change the run button behavior to fix this.

1 Like