I have created a small scheduler as a few objects to work with it. I am trying to organize my project by placing this code into a python package. I have created my package and copied it to the lib folder on the device. I import it into my code as follows:
from SchedulerPackage import Scheduler
from SchedulerPackage import PinControlledTask
from SchedulerPackage import TimedTask
Before my code even has a chance to run the program crashes on the imports giving the error:
Traceback (most recent call last):
File "main", line 5, in <module>
File "/flash/lib/SchedulerPackage/__init__.py", line 1, in <module>
File "/flash/lib/SchedulerPackage/PinControlledTask.py", line 4, in <module>
TypeError: cannot create 'module' instances
My package has an __init__.py and following the read me on the github page I could be able to use my created classes.
I am willing to share my code, I really just need to figure out why I can not access/create the included objects.