Circle CI showing my python modules as "No Module Named ( )" but work on local level w/ vs code

==================================== ERRORS ====================================
____________________ ERROR collecting tests/test_awsnew.py _____________________
ImportError while importing test module ‘/home/circleci/repo/tests/test_awsnew.py’.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.7/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_awsnew.py:2: in
from src.aws import awsnew
src/aws/awsnew.py:1: in
import AWSIoTMQTTClient
E ModuleNotFoundError: No module named ‘AWSIoTMQTTClient’

Any solutions to get this to be successful? Thank you in advance.

Hi @ASiar88,

Let’s verify that AWSIoTPythonSDK is installed in your build environment. Can you SSH into your build and do this? You can install AWSIoTPythonSDK by running pip install AWSIoTPythonSDK. Can you also make sure from AWSIoTPythonSDK.MQTTLib import AWSIoTMQTTClient is included in your build script?

Let me know how it goes and what you find.