Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am trying to run this via a network MongoDB by changing the host (as I already have it setup on another box) but I get nonetype object errors #71

Open
decrecondiz opened this issue Jun 29, 2020 · 1 comment
Assignees
Labels
help wanted Extra attention is needed
Projects

Comments

@decrecondiz
Copy link

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

@ggeop
Copy link
Owner

ggeop commented Jun 29, 2020

Hi @decrecondiz,

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.

@ggeop ggeop self-assigned this Jul 6, 2020
@ggeop ggeop added the help wanted Extra attention is needed label Jul 6, 2020
@ggeop ggeop added this to To do in Jarvis via automation Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
No open projects
Jarvis
  
To do
Development

No branches or pull requests

2 participants