Error installing Mycroft exit status 1 and venv

Hello, I can’t succeed installing Mycroft on a Linux Raspberry Pi. I get the following error:
My config: Debian GNU/Linux 11 (bullseye)
6.1.21-v8+ aarch64

I searched extensively but didn’t find any solution :frowning:
Would anybody have an idea?

  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /home/userx/mycroft-core/.venv/bin/python3 /home/userx/mycroft-core/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpe4dfb0m4
       cwd: /tmp/pip-install-ro4qgfke/PyYAML
  Complete output (62 lines):
  /tmp/pip-build-env-wu7qeptb/overlay/lib/python3.9/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
  !!

          ********************************************************************************
          The license_file parameter is deprecated, use license_files instead.

          This deprecation is overdue, please update your project and remove deprecated
          calls to avoid build errors in the future.

          See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
          ********************************************************************************

  !!
    parsed = self.parsers.get(option_name, lambda x: x)(value)
  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 "/home/userx/mycroft-core/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
      main()
    File "/home/userx/mycroft-core/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/home/userx/mycroft-core/.venv/lib/python3.9/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-wu7qeptb/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=['wheel'])
    File "/tmp/pip-build-env-wu7qeptb/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-wu7qeptb/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 341, in run_setup
      exec(code, locals())
    File "<string>", line 271, in <module>
    File "/tmp/pip-build-env-wu7qeptb/overlay/lib/python3.9/site-packages/setuptools/__init__.py", line 103, in setup
      return distutils.core.setup(**attrs)
    File "/tmp/pip-build-env-wu7qeptb/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
    File "/tmp/pip-build-env-wu7qeptb/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/tmp/pip-build-env-wu7qeptb/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/tmp/pip-build-env-wu7qeptb/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 989, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-wu7qeptb/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
 File "/tmp/pip-build-env-wu7qeptb/overlay/lib/python3.9/site-packages/setuptools/command/egg_info.py", line 318, in run
      self.find_sources()
    File "/tmp/pip-build-env-wu7qeptb/overlay/lib/python3.9/site-packages/setuptools/command/egg_info.py", line 326, in find_sources
      mm.run()
    File "/tmp/pip-build-env-wu7qeptb/overlay/lib/python3.9/site-packages/setuptools/command/egg_info.py", line 548, in run
      self.add_defaults()
    File "/tmp/pip-build-env-wu7qeptb/overlay/lib/python3.9/site-packages/setuptools/command/egg_info.py", line 586, in add_defaults
      sdist.add_defaults(self)
    File "/tmp/pip-build-env-wu7qeptb/overlay/lib/python3.9/site-packages/setuptools/command/sdist.py", line 113, in add_defaults
      super().add_defaults()
    File "/tmp/pip-build-env-wu7qeptb/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
      self._add_defaults_ext()
    File "/tmp/pip-build-env-wu7qeptb/overlay/lib/python3.9/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-wu7qeptb/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
      raise AttributeError(attr)
  AttributeError: cython_sources
  ----------------------------------------
ERROR: Command errored out with exit status 1: /home/userx/mycroft-core/.venv/bin/python3 /home/userx/mycroft-core/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpe4dfb0m4 Check the logs for full command output.

Some say that setuptools should be 58.2.0 (not above). I tried pip install setuptools==58.2.0 but without success

The Mycroft software is very old and not maintained anymore. We suggest that you switch to OVOS or Neon

The software here is a fork of Mycroft and is being actively maintained and updated.

There are prebuilt images for both the Rpi3 and Rpi4 here, and even one with the GUI.

You can also run the docker containers on a Rpi3.

You can find the latest Neon image here.

Hope this helps.

Also, there is active chats on the ovos matrix channels.

2 Likes

Thank you very much!

In my case, using the latest version of pyYAML it is currently fixed in 6.0.1 (PyYAML · PyPI).
to do this you have to modify the file requirements/requirments.txt

1 Like

Thanks, that helps! But then it demanded GitPython 3.0.5 (3.0.3 is installed). I was able to install that with

pip install GitPython==3.0.5

and now Mycroft runs!!