Code Monkey home page Code Monkey logo

Comments (9)

masterchilidog avatar masterchilidog commented on August 29, 2024 1

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.

joshuashort avatar joshuashort commented on August 29, 2024

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.

masterchilidog avatar masterchilidog commented on August 29, 2024

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.

joshuashort avatar joshuashort commented on August 29, 2024

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.

masterchilidog avatar masterchilidog commented on August 29, 2024

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.

masterchilidog avatar masterchilidog commented on August 29, 2024

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.

joshuashort avatar joshuashort commented on August 29, 2024

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.

masterchilidog avatar masterchilidog commented on August 29, 2024

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.

joshuashort avatar joshuashort commented on August 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.