Closed Yaser-Feyli closed 4 years ago
and when i run the python -m oa i get the following:
2019-07-01 22:14:12,496] INFO MainThread [__main__.py:<module>:110]: Start Open Assistant [2019-07-01 22:14:12,496] INFO MainThread [__main__.py:__init__:18]: Initializing Open Assistant [2019-07-01 22:14:12,496] INFO MainThread [agent.py:_load_modules:33]: Loading Modules <- /home/yfeyli/Downloads/oa-core-master/oa/modules [2019-07-01 22:14:12,496] INFO MainThread [util.py:load_module:60]: sound <- /home/yfeyli/Downloads/oa-core-master/oa/modules/sound [2019-07-01 22:14:12,498] INFO MainThread [util.py:load_module:60]: voice <- /home/yfeyli/Downloads/oa-core-master/oa/modules/voice [2019-07-01 22:14:12,499] ERROR MainThread [agent.py:_load_modules:42]: Error loading voice: No module named 'pyttsx3' [2019-07-01 22:14:12,499] INFO MainThread [util.py:load_module:60]: speech_recognition <- /home/yfeyli/Downloads/oa-core-master/oa/modules/speech_recognition [2019-07-01 22:14:12,500] ERROR MainThread [agent.py:_load_modules:42]: Error loading speech_recognition: No module named 'pocketsphinx' [2019-07-01 22:14:12,500] INFO MainThread [util.py:load_module:60]: ear <- /home/yfeyli/Downloads/oa-core-master/oa/modules/ear [2019-07-01 22:14:12,585] ERROR MainThread [agent.py:_load_modules:42]: Error loading ear: No module named 'sounddevice' [2019-07-01 22:14:12,585] INFO MainThread [util.py:load_module:60]: mind <- /home/yfeyli/Downloads/oa-core-master/oa/modules/mind Traceback (most recent call last): [2019-07-01 22:14:12,778] INFO mind [__init__.py:load_minds:54]: Loading minds... File "/usr/local/anaconda/lib/python3.6/runpy.py", line 193, in _run_module_as_main [2019-07-01 22:14:12,779] INFO mind [__init__.py:load_minds:58]: <- boot.py "__main__", mod_spec) File "/usr/local/anaconda/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/yfeyli/Downloads/oa-core-master/oa/__main__.py", line 113, in <module> config=args.config_file, File "/home/yfeyli/Downloads/oa-core-master/oa/__main__.py", line 80, in start a = LoadAssistant(config=kwargs.get('config')) File "/home/yfeyli/Downloads/oa-core-master/oa/__main__.py", line 54, in LoadAssistant a.parts[_in].output += [a.parts[_out]] File "/home/yfeyli/Downloads/oa-core-master/oa/core/util.py", line 89, in __getitem__ return getattr(self, key) AttributeError: 'Core' object has no attribute 'ear' [2019-07-01 22:14:12,785] INFO mind [__init__.py:load_minds:58]: <- root.py [2019-07-01 22:14:12,813] INFO mind [__init__.py:load_minds:61]: Minds loaded! [2019-07-01 22:14:12,813] INFO mind [__init__.py:set_mind:40]: Opening Mind: boot
python -m oa
won't work until the requirements are successfully installed..
I don't have an easy way to read the file you attached, but I'd already skimmed the original message.. in general, you'll want to read that log output and figure out where the first failure is occurring. The most likely cause is going to be your system is missing some required package (could be some development headers, could be a build tool). How/what to install is going to be platform-specific.
It looks like you're using Anaconda, so you might need to use that project's way to add modules (if it's different from the 'built-in' ways).
Thank you good sir
On Tue, Jul 2, 2019, 01:45 joshuashort notifications@github.com wrote:
python -m oa won't work until the requirements are successfully installed..
I don't have an easy way to read the file you attached, but I'd already skimmed the original message.. in general, you'll want to read that log output and figure out where the first failure is occurring. The most likely cause is going to be your system is missing some required package (could be some development headers, could be a build tool). How/what to install is going to be platform-specific.
It looks like you're using Anaconda, so you might need to use that project's way to add modules (if it's different from the 'built-in' ways).
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/openassistant/oa-core/issues/22?email_source=notifications&email_token=AMIYAIVRZUCQNOBE6VOERNDP5KJJFA5CNFSM4H4VQNB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY7UU6Q#issuecomment-507464314, or mute the thread https://github.com/notifications/unsubscribe-auth/AMIYAIQXNA7FGJ7DMO6ZGHTP5KJJFANCNFSM4H4VQNBQ .
It looks like your system is having trouble building/installing pocketsphinx.
It seems like this could be an issue with the tool chain used by Anaconda.. I'm not familiar enough with this particular setup..
I had a similar issue doing the build-- since I don't use Python much, myself, I was missing some fundamental things that seemed to be assumed that I would have them installed: setuptools wheel
then the python3-dev package (to get Python.h) I then installed a few different ALSA dev packages-- not sure which specific one satisfies the requirement, but then I got it to build and run.
I had the exact same issue.
Installing libasound2-dev
package allowed pocketsphinx to work
Updated https://github.com/openassistant/oa-core/wiki/Installation#linux with some of this info.
Hi, I get this error code when i typ in the pip install -r requirements.txt command. new 1.DOCX