I have a custom package that I am using for a python project that won't load for some reason. My structure is as follows:
ParentFolder
|-.gitignore
|-ReadMe.md
|-requirements.txt
|-setup.py
|-lib
|-__init__.py
|-NextBus.py
|-src
|-Scheduler.py
the init function is empty and serves only to allow Python to view lib as a package directory. The import statement in Scheduler.py looks like this:
import lib.NextBus as nb
I tried another import statement that looked like this:
from lib.NextBus import *
which also issued the same error.
I am getting a pylint error that says "unable to import lib.NextBus", however in my IDE (VSCode) when I go to type the import statement it correctly autofills the statement, which makes me think that pylint knows that the package should be in lib. I wasn't able to uncover much more about my error as the NextBus code is custom written. Hopefully someone can help...?