Comments (9)
thanks for your help. i already had python 3.6.6(i think) installed. i think the gcc was the issue. i installed that through regular pacman and then used pip3 install and it failed again so i tried running it as root with sudo and it worked so i got it up and working now. thank you again for your assistance
from oa-core.
I’m pretty sure feedparser is only used for reading a news feed, so if you want to get things running, you should be able to remove that import and carry on.
from oa-core.
when i type "$ python oa.py" it returns
"Traceback (most recent call last);
File "oa.py", line 10, in
import core
File "/home/[my name]/core.py", line 8, in
import feedparser
ModuleNotFoundError: No Module named 'feedparser'
from oa-core.
Comment out or delete the line (8) in that file where it’s importing feedparser.
You seem to be using an earlier version, but feedparser would still be a problem.
from oa-core.
i downloaded the version from this github so i figured it would be up to date? also i commented out feedparser and it told me psutil wasnt there so i commented that out too and now its telling me a bunch of stuff isnt there including pocketsphinx which i know for a fact is there cuz it downloaded correctly, but psutil and feedparser couldnt be found
from oa-core.
so i think the issue is with the original pip3 install. i tried it again and the first couple packages installed but im getting this at the end. also i apologize in advance, im new to using github to comment and i dont know proper formatting but ill just paste my console error output
Installing collected packages: pocketsphinx, psutil, feedparser, cookies, responses, python-forecastio, numpy
Running setup.py install for pocketsphinx ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-ogd9w1rl/pocketsphinx/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-v8dbzfoa/install-record.txt --single-version-externally-managed --compile:
running install
running build_ext
building 'sphinxbase._sphinxbase' extension
swigging deps/sphinxbase/swig/sphinxbase.i to deps/sphinxbase/swig/sphinxbase_wrap.c
swig -python -modern -threads -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -Ideps/sphinxbase/swig -outdir sphinxbase -o deps/sphinxbase/swig/sphinxbase_wrap.c deps/sphinxbase/swig/sphinxbase.i
creating build
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/deps
creating build/temp.linux-x86_64-3.6/deps/sphinxbase
creating build/temp.linux-x86_64-3.6/deps/sphinxbase/src
creating build/temp.linux-x86_64-3.6/deps/sphinxbase/src/libsphinxbase
creating build/temp.linux-x86_64-3.6/deps/sphinxbase/src/libsphinxbase/lm
creating build/temp.linux-x86_64-3.6/deps/sphinxbase/src/libsphinxbase/feat
creating build/temp.linux-x86_64-3.6/deps/sphinxbase/src/libsphinxbase/util
creating build/temp.linux-x86_64-3.6/deps/sphinxbase/src/libsphinxbase/fe
creating build/temp.linux-x86_64-3.6/deps/sphinxbase/swig
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fPIC -DSPHINXBASE_EXPORTS -DPOCKETSPHINX_EXPORTS -DSPHINX_DLL -DHAVE_CONFIG_H -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -I/usr/include/python3.6m -c deps/sphinxbase/src/libsphinxbase/lm/ngrams_raw.c -o build/temp.linux-x86_64-3.6/deps/sphinxbase/src/libsphinxbase/lm/ngrams_raw.o -Wno-unused-label -Wno-strict-prototypes -Wno-parentheses -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-result -Wno-sign-compare -Wno-misleading-indentation
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-ogd9w1rl/pocketsphinx/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-v8dbzfoa/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-ogd9w1rl/pocketsphinx/
from oa-core.
I asked about the version because that file core.py
in the error log isn't around any more, and oa.py
isn't the launcher script.. you seem to be using one of the packaged releases vs. the current master branch. But you're having an issue with dependencies, and that's bigger than which OA version you're using..
So, another thing to check is if you're actually running Python3 -- some distros have versions 2.x and 3.x installed, so verifypython
is running the right version. If not, use python3 oa.py
instead of python oa.py
. That seems like part of the problem.. especially if you're installing with pip3
and python
is actually 2.x.
From the log you posted, it looks like gcc
isn't installed on your system. Not sure how it is on Arch, but Debian systems (or only Ubuntu?) have a package called build-essentials
that includes things like gcc, make, and some other stuff for building software. You might be able to get away with simply installing the things it complains about if you can't find a similar meta package. Sometimes pip needs to compile things when installing, so start by installing gcc with your package manager.
from oa-core.
so now that the program is functioning correctly, and doing very well with voice recognition, whats the best way to go about adding stuff, maybe similar to stella used in the demo video.
from oa-core.
I’d recommend looking at the ‘minds’. You should be able to add new functions / expressions if you follow the pattern in them.
from oa-core.
Related Issues (20)
- pip install -r requirements.txt fails on Manjaro Arch Linux HOT 7
- PocketSphinx Missing Attribute HOT 1
- No Module Named 'gi' HOT 2
- pip install -r requirements.txt fails on Windows HOT 3
- Weird voice reply And Difficulty to understand what is said. HOT 3
- Is this still being mantained? HOT 5
- problem with starting up HOT 2
- Is this working? HOT 10
- Begin writing unit testing. HOT 3
- Verify that keyboard command input is working. HOT 6
- Phoneme Availability HOT 1
- No module named 'gi' HOT 2
- Failed to download Windows version HOT 1
- Does not work on Linux HOT 2
- Install instructions for Ubuntu does not work. HOT 3
- Challenges with ALSA / Raspberry Pi OS HOT 1
- no response for voice commands HOT 4
- Error 404 on www.speech.cs.cmu.edu/cgi-bin/tools/lmtool/run
- Installation does not work in Mac OS. HOT 1
- espeak package name in arch linux repo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oa-core.