You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "start.py", line 23, in
from jarvis import settings
File "G:\Desktop\Python-ai-assistant-master\src\jarvis\jarvis_init_.py", line 46, in
configure_MongoDB(db, settings)
File "G:\Desktop\Python-ai-assistant-master\src\jarvis\jarvis\utils\startup.py", line 97, in configure_MongoDB
from jarvis.skills.registry import CONTROL_SKILLS, ENABLED_BASIC_SKILLS
File "G:\Desktop\Python-ai-assistant-master\src\jarvis\jarvis\skills\registry.py", line 40, in
from jarvis.skills.collection.configuration import ConfigurationSkills
File "G:\Desktop\Python-ai-assistant-master\src\jarvis\jarvis\skills\collection\configuration.py", line 32, in
input_mode = db.get_documents(collection='general_settings')[0]['input_mode']
TypeError: 'NoneType' object is not subscriptable
I have checked the configuration.py and can see the below so I would assume its either the key or the limit parameters?:
def get_documents(self, collection, key=None, limit=None):
Any help is greatly appreciated
The text was updated successfully, but these errors were encountered:
Normally this MongoDB call (get_documents) it works, I suppose that the error is related with the MongoDB server. The keys 'key' and 'limit' are correct, are not mandatory fields.
You mentioned that you have changed the host, maybe this is the problem. Can you describe me what changes have you done for different host, and also can you check the connectivity with MongoDB server? I have tested it with local MongoDB, with remote DB maybe you will face connectivity problems.
Traceback attached below:
Traceback (most recent call last):
File "start.py", line 23, in
from jarvis import settings
File "G:\Desktop\Python-ai-assistant-master\src\jarvis\jarvis_init_.py", line 46, in
configure_MongoDB(db, settings)
File "G:\Desktop\Python-ai-assistant-master\src\jarvis\jarvis\utils\startup.py", line 97, in configure_MongoDB
from jarvis.skills.registry import CONTROL_SKILLS, ENABLED_BASIC_SKILLS
File "G:\Desktop\Python-ai-assistant-master\src\jarvis\jarvis\skills\registry.py", line 40, in
from jarvis.skills.collection.configuration import ConfigurationSkills
File "G:\Desktop\Python-ai-assistant-master\src\jarvis\jarvis\skills\collection\configuration.py", line 32, in
input_mode = db.get_documents(collection='general_settings')[0]['input_mode']
TypeError: 'NoneType' object is not subscriptable
I have checked the configuration.py and can see the below so I would assume its either the key or the limit parameters?:
def get_documents(self, collection, key=None, limit=None):
Any help is greatly appreciated
The text was updated successfully, but these errors were encountered: