Mycroft code is declared very old and replaced by Neon and OVOS

I tried to install mycroft on my HP laptop, but it failed, because of

  • “… We have detected that your computer has the libjack-jackd2-0 package installed. Mycroft requires a conflicting package, …”
  • and “… WARNING: You are using pip version 20.0.2; however, version 23.3.1 is available. …” ← fixed that with the given command “… You should consider upgrading via the '/mnt/dietpi_userdata/mycroft-core/.venv/bin/python3 -m pip install --upgrade pip’ command …”, which worked.

after trying again sudo dietpi-software install 176 it still hung up on the issue with pip version.

I than tried to install it directly following the instruction from mycroft. but ran into another problem. My research than revealed the following statement
“… The Mycroft software is very old and not maintained anymore. We suggest that you switch to [OVOS ] or [Neon ] …”

you find the link under Error installing Mycroft exit status 1 and venv - #2 by biva - Mycroft Project - Mycroft Community Forum

can you share the whole installation log?

Regarding pip, this is a warning only. Not an error.

We have detected that your computer has the libjack-jackd2-0 package installed.
Mycroft requires a conflicting package, and will likely uninstall this package.
On some systems, this can cause other programs to be marked for removal.
Please review the following package changes carefully.
Press enter to continue

Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version (1:2.39.2-1.1).
python3 is already the newest version (3.11.2-1+b1).
python3-dev is already the newest version (3.11.2-1+b1).
python3-setuptools is already the newest version (66.1.1-1).
libtool is already the newest version (2.4.7-5).
libffi-dev is already the newest version (3.4.4-1).
libssl-dev is already the newest version (3.0.11-1~deb12u2).
autoconf is already the newest version (2.71-3).
automake is already the newest version (1:1.16.5-1.3).
bison is already the newest version (2:3.8.2+dfsg-1+b1).
swig is already the newest version (4.1.0-0.2).
libglib2.0-dev is already the newest version (2.74.6-2).
portaudio19-dev is already the newest version (19.6.0-1.2).
mpg123 is already the newest version (1.31.2-1).
screen is already the newest version (4.9.0-4).
flac is already the newest version (1.4.2+ds-2).
curl is already the newest version (7.88.1-10+deb12u4).
libicu-dev is already the newest version (72.1-3).
pkg-config is already the newest version (1.8.1-1).
libjpeg-dev is already the newest version (1:2.1.5-2).
libfann-dev is already the newest version (2.2.0+ds-8).
build-essential is already the newest version (12.9).
jq is already the newest version (1.6-2.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
./dev_setup.sh: line 471: [: ==: unary operator expected
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
 Dload  Upload   Total   Spent    Left  Speed
100 2570k  100 2570k    0     0  5773k      0 --:--:-- --:--:-- --:--:-- 5776k
Collecting pip==20.0.2
Downloading pip-20.0.2-py2.py3-none-any.whl (1.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 12.3 MB/s eta 0:00:00
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.0.2
Uninstalling pip-20.0.2:
Successfully uninstalled pip-20.0.2
Successfully installed pip-20.0.2

[notice] A new release of pip is available: 20.0.2 -> 23.3.1
[notice] To update, run: python3 -m pip install --upgrade pip
grep: ./.git/hooks/pre-commit: No such file or directory
Collecting requests<2.26.0,>=2.20.0
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7afa235310>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /packages/29/c1/24814557f1d22c56d50280771a17307e6bf87b70727d975fd6b2ce6b014a/requests-2.25.1-py2.py3-none-any.whl
Downloading requests-2.25.1-py2.py3-none-any.whl (61 kB)
Collecting gTTS<2.3.0,>=2.2.2
Downloading gTTS-2.2.4-py3-none-any.whl (26 kB)
Collecting PyAudio==0.2.11
Downloading PyAudio-0.2.11.tar.gz (37 kB)
Collecting pyee==8.1.0
Downloading pyee-8.1.0-py2.py3-none-any.whl (12 kB)
Collecting SpeechRecognition==3.8.1
Downloading SpeechRecognition-3.8.1-py2.py3-none-any.whl (32.8 MB)
Collecting tornado~=6.1
Downloading tornado-6.4-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (435 kB)
Collecting websocket-client~=1.2.1
Downloading websocket_client-1.2.3-py3-none-any.whl (53 kB)
Collecting requests-futures==0.9.5
Downloading requests-futures-0.9.5.tar.gz (5.3 kB)
Collecting pyserial==3.0
Downloading pyserial-3.0.tar.gz (133 kB)
Collecting psutil==5.6.6
Downloading psutil-5.6.6.tar.gz (447 kB)
Collecting pocketsphinx==0.1.0
Downloading pocketsphinx-0.1.0.tar.gz (503 kB)
Collecting inflection==0.3.1
Downloading inflection-0.3.1.tar.gz (8.7 kB)
Collecting pillow==8.3.2
Downloading Pillow-8.3.2.tar.gz (48.8 MB)
Collecting python-dateutil==2.6.0
Downloading python_dateutil-2.6.0-py2.py3-none-any.whl (194 kB)
Collecting fasteners==0.14.1
Downloading fasteners-0.14.1-py2.py3-none-any.whl (20 kB)
Collecting PyYAML==5.4
Downloading PyYAML-5.4.tar.gz (174 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /mnt/dietpi_userdata/mycroft-core/.venv/bin/python3 /mnt/dietpi_userdata/mycroft-core/.venv/lib/python3.11/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpgkjjndvq
cwd: /tmp/pip-install-203drdg4/PyYAML
Complete output (54 lines):
running egg_info
writing lib3/PyYAML.egg-info/PKG-INFO
writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
writing top-level names to lib3/PyYAML.egg-info/top_level.txt
Traceback (most recent call last):
File "/mnt/dietpi_userdata/mycroft-core/.venv/lib/python3.11/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
main()
File "/mnt/dietpi_userdata/mycroft-core/.venv/lib/python3.11/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/dietpi_userdata/mycroft-core/.venv/lib/python3.11/site-packages/pip/_vendor/pep517/_in_process.py", line 91, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-7pht4_19/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-7pht4_19/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-7pht4_19/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 271, in <module>
File "/tmp/pip-build-env-7pht4_19/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-7pht4_19/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-7pht4_19/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-7pht4_19/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-7pht4_19/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 963, in run_command
super().run_command(command)
File "/tmp/pip-build-env-7pht4_19/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-7pht4_19/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 321, in run
self.find_sources()
File "/tmp/pip-build-env-7pht4_19/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 329, in find_sources
mm.run()
File "/tmp/pip-build-env-7pht4_19/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 551, in run
self.add_defaults()
File "/tmp/pip-build-env-7pht4_19/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 589, in add_defaults
sdist.add_defaults(self)
File "/tmp/pip-build-env-7pht4_19/overlay/lib/python3.11/site-packages/setuptools/command/sdist.py", line 112, in add_defaults
super().add_defaults()
File "/tmp/pip-build-env-7pht4_19/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
self._add_defaults_ext()
File "/tmp/pip-build-env-7pht4_19/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
self.filelist.extend(build_ext.get_source_files())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 201, in get_source_files
File "/tmp/pip-build-env-7pht4_19/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
raise AttributeError(attr)
AttributeError: cython_sources
----------------------------------------
ERROR: Command errored out with exit status 1: /mnt/dietpi_userdata/mycroft-core/.venv/bin/python3 /mnt/dietpi_userdata/mycroft-core/.venv/lib/python3.11/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpgkjjndvq Check the logs for full command output.
WARNING: You are using pip version 20.0.2; however, version 23.3.1 is available.
You should consider upgrading via the '/mnt/dietpi_userdata/mycroft-core/.venv/bin/python3 -m pip install --upgrade pip' command.
Warning: Failed to install required dependencies. Continue? y/N
dietpi@elite2740:~$ python3 --version
Python 3.11.2
dietpi@elite2740:~$ pip --version
pip 23.3.1 from /usr/local/lib/python3.11/dist-packages/pip (python 3.11)
dietpi@elite2740:~$ pip3 --version
pip 23.3.1 from /usr/local/lib/python3.11/dist-packages/pip (python 3.11)

pls share following

Required

  • DietPi version | cat /boot/dietpi/.version
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
  • Kernel version | uname -a
  • Architecture | dpkg --print-architecture
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
DietPi version 
G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=24
G_DIETPI_VERSION_RC=1
G_GITBRANCH='master'
G_GITOWNER='MichaIng'

Distro version | bookworm
Kernel version | Linux elite2740 6.1.0-13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09-29) x86_64 GNU/Linux
Architecture | amd64
SBC model | Native PC (x86_64)

Issue seems to be with building Python module PyYAML-5.4.

I found 2 similar issues at MycroftAI GitHub account

Unfortunately no solution on this.

But on the link you shared above, a possible workaround is describe

Means, you need to do following before running the install again

G_CONFIG_INJECT 'PyYAML==' 'PyYAML==6.0.1' /mnt/dietpi_userdata/mycroft-core/requirements/requirements.txt
dietpi-software install 176
1 Like