I am trying to wrap my head around the use of the __init__
file in python and I though I did it correctly but I am getting a "No module named ..." error.
I put the project here link to project for simplicity. The issue in question is pythonds/test/parens.py
, I have __init__.py
files in all my directories so I am not sure where I have gone wrong with this.
I have also tried using PEP 238 using from ..basic.stack import Stack
and get the error
ValueError: Attempted relative import in non-package
I though all I had to do was stick an __init__.py
files into my directories to make them a module and then I would be able to call them from different modules.