Scientific Computing with Python Projects - Time Calculator


I am receiving the below error message when I run the try running the code for time calculator.

python venv/lib/python3.8/site-packages/distlib/
Traceback (most recent call last):
  File "venv/lib/python3.8/site-packages/distlib/", line 18, in <module>
    from . import DistlibException
ImportError: attempted relative import with no known parent package
exit status 1

What is causing this?

Below is the link to my repel.

For clarity. I have not started with my code. I usually start by running the blank code to see if the set up is fine. This time it isn’t.

There is no link to your replit code.

My bad. Here it is!!!

I researched a bit on relative imports and could trace the root cause. The line that is causing this error is,

from . import DistlibException

This is there in venv/lib/python3.8/site-packages/distlib/index

What workaround do we have to make this code run successfully? Any help would be much appreciated.