-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: AI/ML
-
None
-
Python Drivers
[2024/08/21 14:52:49.751] + OPENAI_API_KEY=<REDACTED:openai_api_key>[2024/08/21 14:52:49.751] + OPENAI_ORG_ID=[2024/08/21 14:52:49.751] + AZURE_OPENAI_DEPLOYMENT_NAME=[2024/08/21 14:52:49.751] + AZURE_OPENAI_ENDPOINT=[2024/08/21 14:52:49.751] + AZURE_OPENAI_API_KEY=[2024/08/21 14:52:49.751] + MONGODB_ATLAS_CONNECTION_STRING='mongodb://127.0.0.1:40609/?directConnection=true'[2024/08/21 14:52:49.751] + Python_Integration_Tests=1[2024/08/21 14:52:49.751] + /opt/python/3.10/bin/python3 -m poetry run pytest tests/integration/connectors/memory/test_mongodb_atlas.py[2024/08/21 14:52:51.299] ==================================== ERRORS ====================================[2024/08/21 14:52:51.299] __ ERROR collecting tests/integration/connectors/memory/test_mongodb_atlas.py __[2024/08/21 14:52:51.299] ImportError while importing test module '/data/mci/37bc0381771a4129eb06bdbae51bc9a7/src/semantic-kernel-python/semantic-kernel/python/tests/integration/connectors/memory/test_mongodb_atlas.py'.[2024/08/21 14:52:51.299] Hint: make sure your test modules/packages have valid Python names.[2024/08/21 14:52:51.299] Traceback:[2024/08/21 14:52:51.299] /opt/python/3.10/lib/python3.10/importlib/__init__.py:126: in import_module[2024/08/21 14:52:51.299] return _bootstrap._gcd_import(name[level:], package, level)[2024/08/21 14:52:51.299] tests/integration/connectors/memory/test_mongodb_atlas.py:10: in <module>[2024/08/21 14:52:51.299] from semantic_kernel.connectors.memory.mongodb_atlas.mongodb_atlas_memory_store import MongoDBAtlasMemoryStore[2024/08/21 14:52:51.299] semantic_kernel/connectors/memory/mongodb_atlas/__init__.py:3: in <module>[2024/08/21 14:52:51.299] from semantic_kernel.connectors.memory.mongodb_atlas.mongodb_atlas_memory_store import ([2024/08/21 14:52:51.299] semantic_kernel/connectors/memory/mongodb_atlas/mongodb_atlas_memory_store.py:8: in <module>[2024/08/21 14:52:51.299] from motor import core, motor_asyncio[2024/08/21 14:52:51.299] E ModuleNotFoundError: No module named 'motor'[2024/08/21 14:52:51.299] =========================== short test summary info ============================[2024/08/21 14:52:51.299] ERROR tests/integration/connectors/memory/test_mongodb_atlas.py[2024/08/21 14:52:51.299] !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
Detailed steps to reproduce the problem?
Definition of done: what must be done to consider the task complete?
The exact Python version used, with patch level:
$ python -c "import sys; print(sys.version)"
The exact version of PyMongo used, with patch level:
$ python -c "import pymongo; print(pymongo.version); print(pymongo.has_c())"
Describe how MongoDB is set up. Local vs Hosted, version, topology, load balanced, etc.
The operating system and version (e.g. Windows 7, OSX 10.8, ...)
Web framework or asynchronous network library used, if any, with version (e.g. Django 1.7, mod_wsgi 4.3.0, gevent 1.0.1, Tornado 4.0.2, ...)
Security Vulnerabilities
If you’ve identified a security vulnerability in a driver or any other MongoDB project, please report it according to the instructions here