Package Details: mycroft-core 21.2.2-2

Git Clone URL: https://aur.archlinux.org/mycroft-core.git (read-only, click to copy)
Package Base: mycroft-core
Description: The Mycroft Artificial Intelligence platform.
Upstream URL: https://github.com/MycroftAI/mycroft-core
Licenses: Apache
Submitter: manzo
Maintainer: robertfoster
Last Packager: robertfoster
Votes: 30
Popularity: 0.010301
First Submitted: 2016-12-27 12:48 (UTC)
Last Updated: 2023-01-25 11:20 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

portaloffreedom commented on 2018-03-12 19:10 (UTC)

@schrieveslaach Update: I got the same error as well. But I cannot reproduce it with certainty. Have you started it manually or with systemctl --user mycroft.target?

portaloffreedom commented on 2018-03-12 18:04 (UTC)

@schrieveslaach mmmmm, not really sure. I'm using pulseaudio and haven't tryed with Jack. Are you using jack in your system? It seems to me that is trying to connect to alsa and alsa to jack...

schrieveslaach commented on 2018-03-11 10:39 (UTC) (edited on 2018-03-11 10:39 (UTC) by schrieveslaach)

@portaloffreedom, I tried your version, however, the microphone is not working:

ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2501:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2501:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2501:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed

Do you have any idea what the cause of the error is?

schrieveslaach commented on 2018-03-10 06:55 (UTC)

@portaloffreedom, that looks nice. Tomorrow I have time to look into your code changes. Getting rid of virtualenv would be very nice.

Additionally, I found some other issues in the Mycroft core, I need to resolve.

portaloffreedom commented on 2018-03-08 19:12 (UTC)

So, I kind of overdid it. I made an entirely new package inspired from the opensuse package. You can find it here (it works!) https://git.covolunablu.org/portaloffreedom/mycroft-core-PKGBUILD

Other then working, the main differences are that my package doesn't use virtualenv hacks and uses python3.

If the mantainers of this package want to copy it into this, they are more than welcome. I would like to have this PKGBUILD for everyone but I don't want to create a duplicate on aur. If you don't want to use what I create for this package, then just tell me I'll come up with an idea for a new name in aur.

renyuneyun commented on 2018-03-08 11:50 (UTC) (edited on 2018-03-08 11:51 (UTC) by renyuneyun)

By the way, there maybe two possible bugs in mycroft-core.install.

  1. In post_remove(), I suspect the group to be removed should be mycroft-core (forgotten dash)
  2. In post_install() or somewhere, it may be necessary to set the default permission (maybe through mask or umask?) of the directory /usr/share/mycroft-core(or some of its subdirectories) to 0775, otherwise the user may not be able to alter that directory (so won't be able to install skills).

One last thing: is /usr/share/xxx a good place to install things which can change itself? Maybe /opt/ is a better place?

(I haven't made the software to run correctly, so I haven't had any experiences... Forgive me if any inference is wrong.)

renyuneyun commented on 2018-03-08 11:36 (UTC) (edited on 2018-03-08 11:37 (UTC) by renyuneyun)

@portaloffreedom Yes, I also solved that by installing libfann. However, I'm still getting trouble using the software, and was hoping to post the solution together... Though I can't get the software work. Do you have any clue?

portaloffreedom commented on 2018-03-08 10:49 (UTC)

in the post_install script I get a compilation error

    creating build/temp.linux-x86_64-2.7/fann2
    gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fPIC -DSWIG_COMPILE -I./include -I../include -Iinclude -I/usr/include/python2.7 -c fann2/fann2_wrap.cxx -o build/temp.linux-x86_64-2.7/fann2/fann2_wrap.o
    g++ -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now build/temp.linux-x86_64-2.7/fann2/fann2_wrap.o -L/usr/lib -ldoublefann -lpython2.7 -o build/lib.linux-x86_64-2.7/fann2/_libfann.so
    /usr/bin/ld: cannot find -ldoublefann
    collect2: error: ld returned 1 exit status
    error: command 'g++' failed with exit status 1

it seems there is a missing dependency in the package: libfann (installing the libfann package gets rid of the error)

renyuneyun commented on 2018-03-05 14:01 (UTC)

I'm getting error during installation (but the installation successfully finished).

(My locale is in Chinese and a few words in the error are in Chinese, so I manually translated them into English, which may make them not identical to the original one (but meaning is kept).

  Running setup.py bdist_wheel for fann2: started
  Running setup.py bdist_wheel for fann2: finished with status 'error'
  Complete output from command /usr/share/mycroft-core/.virtualenvs/mycroft/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-wBlr9_/fann2/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpTxg3tVpip-wheel- --python-tag cp27:
  running swig
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/fann2
  copying fann2/__init__.py -> build/lib.linux-x86_64-2.7/fann2
  copying fann2/libfann.py -> build/lib.linux-x86_64-2.7/fann2
  running egg_info
  writing fann2.egg-info/PKG-INFO
  writing top-level names to fann2.egg-info/top_level.txt
  writing dependency_links to fann2.egg-info/dependency_links.txt
  reading manifest file 'fann2.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file 'fann2.egg-info/SOURCES.txt'
  copying fann2/fann2.i -> build/lib.linux-x86_64-2.7/fann2
  copying fann2/fann2_wrap.cxx -> build/lib.linux-x86_64-2.7/fann2
  copying fann2/fann_cpp_subclass.h -> build/lib.linux-x86_64-2.7/fann2
  running build_ext
  building 'fann2._libfann' extension
  creating build/temp.linux-x86_64-2.7
  creating build/temp.linux-x86_64-2.7/fann2
  gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fPIC -DSWIG_COMPILE -I./include -I../include -Iinclude -I/usr/include/python2.7 -c fann2/fann2_wrap.cxx -o build/temp.linux-x86_64-2.7/fann2/fann2_wrap.o
  g++ -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now build/temp.linux-x86_64-2.7/fann2/fann2_wrap.o -L/usr/lib -ldoublefann -lpython2.7 -o build/lib.linux-x86_64-2.7/fann2/_libfann.so
  /usr/bin/ld: can't find -ldoublefann
  collect2: error:ld returned 1
  error: command 'g++' failed with exit status 1

  ----------------------------------------
  Failed building wheel for fann2
  Running setup.py clean for fann2
  Running setup.py bdist_wheel for olefile: started
  Running setup.py bdist_wheel for olefile: finished with status 'done'
  Stored in directory: /usr/share/mycroft-core/.cache/pip/wheels/75/f2/18/9f073aab5b308aaccec50c17d4afb33dffc3265254e7962d67
  Running setup.py bdist_wheel for httplib2: started
  Running setup.py bdist_wheel for httplib2: finished with status 'done'
  Stored in directory: /usr/share/mycroft-core/.cache/pip/wheels/ca/ac/5f/749651f7925b231103f5316cacca82a487810c22d30f011c0c
  Running setup.py bdist_wheel for xxhash: started
  Running setup.py bdist_wheel for xxhash: finished with status 'done'
  Stored in directory: /usr/share/mycroft-core/.cache/pip/wheels/99/02/66/22b257c04a4c131f2114f38b7d367e8f1e259af1b293b0c75d
  Running setup.py bdist_wheel for netifaces: started
  Running setup.py bdist_wheel for netifaces: finished with status 'done'
  Stored in directory: /usr/share/mycroft-core/.cache/pip/wheels/28/e1/08/e66a4f207479500a27eae682a4773fa00605f2c5d953257824
Successfully built gTTS gTTS-token backports.ssl-match-hostname PyAudio pyee tornado websocket-client adapt-parser future requests-futures pyyaml pyalsaaudio xmlrunner pyserial psutil pocketsphinx inflection python-vlc olefile httplib2 xxhash netifaces
Failed to build fann2
Installing collected packages: six, requests, gTTS-token, gTTS, backports.ssl-match-hostname, PyAudio, pyee, SpeechRecognition, certifi, tornado, websocket-client, adapt-parser, futures, future, requests-futures, parsedatetime, pyyaml, pyalsaaudio, xmlrunner, pyserial, psutil, pocketsphinx, inflection, olefile, pillow, python-dateutil, protobuf, netifaces, zeroconf, pychromecast, python-vlc, pulsectl, httplib2, pyasn1, pyasn1-modules, rsa, oauth2client, uritemplate, google-api-python-client, pep8, fann2, xxhash, padatious
  Found existing installation: six 1.11.0
    Not uninstalling six at /usr/lib/python2.7/site-packages, outside environment /usr/share/mycroft-core/.virtualenvs/mycroft
  Running setup.py install for fann2: started
    Running setup.py install for fann2: finished with status 'error'
    Complete output from command /usr/share/mycroft-core/.virtualenvs/mycroft/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-wBlr9_/fann2/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-LhkEAx-record/install-record.txt --single-version-externally-managed --compile --install-headers /usr/share/mycroft-core/.virtualenvs/mycroft/include/site/python2.7/fann2:
    running swig
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    creating build/lib.linux-x86_64-2.7/fann2
    copying fann2/__init__.py -> build/lib.linux-x86_64-2.7/fann2
    copying fann2/libfann.py -> build/lib.linux-x86_64-2.7/fann2
    running egg_info
    writing fann2.egg-info/PKG-INFO
    writing top-level names to fann2.egg-info/top_level.txt
    writing dependency_links to fann2.egg-info/dependency_links.txt
    reading manifest file 'fann2.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'fann2.egg-info/SOURCES.txt'
    copying fann2/fann2.i -> build/lib.linux-x86_64-2.7/fann2
    copying fann2/fann2_wrap.cxx -> build/lib.linux-x86_64-2.7/fann2
    copying fann2/fann_cpp_subclass.h -> build/lib.linux-x86_64-2.7/fann2
    running build_ext
    building 'fann2._libfann' extension
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/fann2
    gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fPIC -DSWIG_COMPILE -I./include -I../include -Iinclude -I/usr/include/python2.7 -c fann2/fann2_wrap.cxx -o build/temp.linux-x86_64-2.7/fann2/fann2_wrap.o
    g++ -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now build/temp.linux-x86_64-2.7/fann2/fann2_wrap.o -L/usr/lib -ldoublefann -lpython2.7 -o build/lib.linux-x86_64-2.7/fann2/_libfann.so
    /usr/bin/ld: can't find -ldoublefann
    collect2: error:ld returned 1
    error: command 'g++' failed with exit status 1

    ----------------------------------------
Command "/usr/share/mycroft-core/.virtualenvs/mycroft/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-wBlr9_/fann2/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-LhkEAx-record/install-record.txt --single-version-externally-managed --compile --install-headers /usr/share/mycroft-core/.virtualenvs/mycroft/include/site/python2.7/fann2" failed with error code 1 in /tmp/pip-build-wBlr9_/fann2/
*** ATTENTION ***

schrieveslaach commented on 2018-03-01 07:09 (UTC)

@z3ntu, I have not yet a running version because the current version of Mycroft is not yet working with systemd. When I'm done, I will update this package.