From 9c9c00cf60e4cadbb7bbb8d483abae2f3385a362 Mon Sep 17 00:00:00 2001 From: MedizinPumPer <49619839+MedizinPumPer@users.noreply.github.com> Date: Sun, 6 Feb 2022 17:57:46 +0100 Subject: [PATCH] Fix "No module Found" error To fix the error ```Traceback (most recent call last): File "/home/pi/nfl-led-scoreboard/main.py", line 6, in from data.data import Data File "/home/pi/nfl-led-scoreboard/data/data.py", line 3, in import nfl_api_parser as nflparser ModuleNotFoundError: No module named 'nfl_api_parser'``` We need to add a "data." that python3 can find the module. --- data/data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/data.py b/data/data.py index 23378aa..9d9e88e 100644 --- a/data/data.py +++ b/data/data.py @@ -1,6 +1,6 @@ from datetime import datetime, timedelta import time as t -import nfl_api_parser as nflparser +import data.nfl_api_parser as nflparser import debug NETWORK_RETRY_SLEEP_TIME = 10.0 @@ -147,4 +147,4 @@ def __next_game_index(self): # debug.log("Overview Refreshed: {}".format(self.overview.id)) # debug.log("Pre: {}".format(Pregame(self.overview, self.config.time_format))) # debug.log("Live: {}".format(Scoreboard(self.overview))) - # debug.log("Final: {}".format(Final(self.current_game()))) \ No newline at end of file + # debug.log("Final: {}".format(Final(self.current_game())))