From ef2e3cfd3bf3c6d3226fb285b9a8597f0fe63463 Mon Sep 17 00:00:00 2001 From: git-pixel22 Date: Thu, 16 Nov 2023 22:17:45 +0530 Subject: [PATCH] Fix: Resolve 'ModuleNotFoundError: No module named 'AudioLib'' issue --- tests/effects.py | 3 +++ tests/processing.py | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/tests/effects.py b/tests/effects.py index 7808d6a..1e2726a 100644 --- a/tests/effects.py +++ b/tests/effects.py @@ -7,6 +7,9 @@ Note : Please change the code below to fit your needs. ''' +import sys +sys.path.append('/PythonAudioEffects') +# EXAMPLE: In my case it was, sys.path.append('/home/pixel22/Projects/PythonAudioEffects') from AudioLib import AudioEffect input_file_path = 'input.wav' diff --git a/tests/processing.py b/tests/processing.py index 6a48685..1127ab0 100644 --- a/tests/processing.py +++ b/tests/processing.py @@ -7,6 +7,10 @@ Note : Please change the code below to fit your needs. ''' +import sys +sys.path.append('/PythonAudioEffects') +# EXAMPLE: In my case it was, sys.path.append('/home/pixel22/Projects/PythonAudioEffects') +from AudioLib import AudioEffect from AudioLib.AudioProcessing import AudioProcessing sound1 = AudioProcessing('input.wav')