openassistant / oa-core

Open Assistant Core
http://openassistant.org
GNU General Public License v3.0
291 stars 77 forks source link

After saying any sentences 'Core' object is not callable #2

Closed dimitri-gigot closed 6 years ago

dimitri-gigot commented 6 years ago

Hello the team!

I discover this project today and wanted to give it a try. I install it on my arch (Antergos) machine, but i'm stuck with this error after saying "Boot mind".

[21:46:21]-[dimitri]-[oa-core-next]> $ ./start_oa.sh 
[2018-06-19 21:46:22,860] INFO     MainThread               [oa.py:<module>:134]          Open Assistant Starting..
[2018-06-19 21:46:22,860] INFO     MainThread               [oa.py:__init__:26]   Initializing Open Assistant
[2018-06-19 21:46:22,860] INFO     MainThread               [oa.py:load_modules:53]       Loading Modules..
[2018-06-19 21:46:22,861] INFO     MainThread               [oa.py:load_modules:64]       voice <- /home/dimitri/Downloads/oa-core-next/modules/voice
[2018-06-19 21:46:22,862] ERROR    MainThread               [oa.py:load_modules:80]       No module named 'pyttsx3'
[2018-06-19 21:46:22,862] INFO     MainThread               [oa.py:load_modules:64]       ear <- /home/dimitri/Downloads/oa-core-next/modules/ear
[2018-06-19 21:46:23,085] INFO     MainThread               [oa.py:load_modules:64]       speech_recognition <- /home/dimitri/Downloads/oa-core-next/modules/speech_recognition
[2018-06-19 21:46:23,086] ERROR    MainThread               [oa.py:load_modules:80]       No module named 'pocketsphinx'
[2018-06-19 21:46:23,086] INFO     MainThread               [oa.py:load_modules:64]       mind <- /home/dimitri/Downloads/oa-core-next/modules/mind
[2018-06-19 21:46:23,184] INFO     MainThread               [oa.py:load_modules:64]       sound <- /home/dimitri/Downloads/oa-core-next/modules/sound
[2018-06-19 21:46:23,185] DEBUG    ear                      [oa.py:thread_loop:99]        Started
[2018-06-19 21:46:23,187] DEBUG    mind                     [oa.py:thread_loop:99]        Started
[2018-06-19 21:46:23,187] INFO     mind                     [__init__.py:load_minds:49]   Loading minds...
[2018-06-19 21:46:23,187] DEBUG    sound                    [oa.py:thread_loop:99]        Started
[2018-06-19 21:46:23,318] INFO     mind                     [__init__.py:load_minds:53]   Minds loaded!
[2018-06-19 21:46:23,319] INFO     mind                     [__init__.py:set_mind:36]     Opening Mind: boot
[2018-06-19 21:46:23,319] DEBUG    mind                     [__init__.py:_in:64]          "boot" is now listening. Say "Boot Mind!" to see if it can hear you.
[2018-06-19 21:46:26,232] DEBUG    ear                      [oa.py:thread_loop:106]       ear -> <core.Core object at 0x7f3e49429be0>
[2018-06-19 21:46:26,235] ERROR    ear                      [oa.py:thread_loop:109]       'Core' object is not callable
[2018-06-19 21:46:26,235] DEBUG    ear                      [oa.py:thread_loop:111]       Stopped

Since i'm not a python dev, i don't really know where to look and where to start.

This is my first Issue ever, hope i did it right, if you need any other data, you can ask.

Thank you for the help. Cheers

joshuashort commented 6 years ago

Perfect issue :) thanks for the log

It looks like you don’t have the Python requirements installed. Check the README for some of the things you’ll need to install with pip3.

I’m on mobile right now, so hopefully that gives you a next step. Let me know!

dimitri-gigot commented 6 years ago

Good good.

I only read the "arch" part, i'll check all the dependencies in the other installation process. I should have think about it :)

I let you know asap

dimitri-gigot commented 6 years ago

Well... a part of the deps list was missing when i cat the file (i guess my terminal was too small or something) and i missed "pyttsx3" and "pocketsphinx", after installing them, obviously everything work great.

I'm quite ashamed of myself right now :p

Adding some install _script.sh could be a good idea (for dumb people like me), I guess it could just be what's written in the Readme.

If you think it's a good idea i can start doing this and do a PR (I have a ubuntu and an arch machine so I can test both)

Thanks for the quick response ;)

joshuashort commented 6 years ago

@dimitri-gigot the instructions could definitely use some love.. and we’re about to start improving documentation/wiki stuff.

You’ll probably want to avoid using start_oa.sh. It’s ok if your system’s Python is 3.x, otherwise you’d need to run python3 oa.py instead of python oa.py. Similarly with pip3 vs. pip.

Also, consider switching to the master branch instead of next. They’re basically equal right now, but our aim is for master to be the latest ‘stable’ release.

joshuashort commented 6 years ago

Thanks! I don’t recall the convention right now, but it’s pretty common to see something like requirements.txt with the dependencies listed (on individual lines?). Pretty sure you can then do something like pip3 install -r requirements.txt

Dependencies/modules are kind of in flux, but I’d love a PR with the dependency list in an easy-to-install format. Go for it if that sounds good to you —