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.000064
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 »

<deleted-account> commented on 2018-03-14 21:10 (UTC)

Hey @portaloffreedom, I'm using your PKGBUILD to test. I can use the Microphone OK on my laptop (can't tell on my desktop, because it doesn't have a mic).

I am hitting a wall trying to use skills, though. I am getting the following error:

>>> systemctl status --user mycroft-skills                                                                                                                                                                                                                                                        
● mycroft-skills.service - Mycroft skills provider
   Loaded: loaded (/usr/lib/systemd/user/mycroft-skills.service; disabled; vendor preset: enabled)
   Active: active (running) since Wed 2018-03-14 16:47:31 EDT; 6min ago
 Main PID: 22185 (mycroft-skills)
    CGroup: /user.slice/user-1000.slice/user@1000.service/mycroft-skills.service
           └─22185 /usr/bin/python3 /usr/bin/mycroft-skills

Mar 14 16:54:07  mycroft-skills[22185]:   File "/home/user/.mycroft/skills/skill-installer/__init__.py", line 96, in get_skill_list
Mar 14 16:54:07  mycroft-skills[22185]:     self.ansi_escape.sub('', check_output([BIN, 'list'])).split('\n')
Mar 14 16:54:07  mycroft-skills[22185]: TypeError: cannot use a string pattern on a bytes-like object

Have you been seeing this too? Not sure if this is something to ask the Mycroft devs about.

schrieveslaach commented on 2018-03-13 05:19 (UTC) (edited on 2018-03-13 05:20 (UTC) by schrieveslaach)

@portaloffreedom I tried it with systemctl --user mycroft.target and I also tried it by running the scripts manually. I'm also using PulseAudio

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)