ggeop / Python-ai-assistant

Python AI assistant 🧠
MIT License
921 stars 247 forks source link

Error when Start.py is running #117

Closed preetsuthar17 closed 2 years ago

preetsuthar17 commented 2 years ago

When the start.py file runs i get this error

\Traceback (most recent call last):
  File "c:\Users\pritg\Downloads\Python-ai-assistant-develop\Python-ai-assistant-develop\src\jarvis\start.py", line 3, in <module>
    from jarvis import settings
  File "c:\Users\pritg\Downloads\Python-ai-assistant-develop\Python-ai-assistant-develop\src\jarvis\jarvis\__init__.py", line 26, in 
<module>
    configure_MongoDB(db, settings)
  File "c:\Users\pritg\Downloads\Python-ai-assistant-develop\Python-ai-assistant-develop\src\jarvis\jarvis\utils\startup.py", line 77, in configure_MongoDB
    from jarvis.skills.registry import CONTROL_SKILLS, ENABLED_BASIC_SKILLS
  File "c:\Users\pritg\Downloads\Python-ai-assistant-develop\Python-ai-assistant-develop\src\jarvis\jarvis\skills\registry.py", line 
20, in <module>
    from jarvis.skills.collection.configuration import ConfigurationSkills
  File "c:\Users\pritg\Downloads\Python-ai-assistant-develop\Python-ai-assistant-develop\src\jarvis\jarvis\skills\collection\configuration.py", line 12, in <module>
    input_mode = db.get_documents(collection='general_settings')[0]['input_mode']
TypeError: 'NoneType' object is not subscriptable

Please help me to fix this error

89Q12 commented 2 years ago

Looks like a Mongodb error but as you use Windows I can't help you as this project is not designed to work on windows.

preetsuthar17 commented 2 years ago
$ bash run_jarvis.sh 
run_jarvis.sh: line 10: ./jarvis_virtualenv/bin/python: No such file or directory