hass-music-assistant: Unable to install Music Assistant on HASS supervised

Thank you for making the great music custom component for HASS. By the way, I’m running HASS on supervised environment and install Music Assistant 1.19 via HACS but not successfully.

Could you give me the suggestion how to fix.

Here is error log:

  2022-05-30 23:05:11 ERROR (SyncWorker_0) [homeassistant.util.package] Unable to install package music-assistant==1.1.19: error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [22 lines of output]
      running bdist_wheel
      running build
      running build_py
      running egg_info
      writing src/greenlet.egg-info/PKG-INFO
      writing dependency_links to src/greenlet.egg-info/dependency_links.txt
      writing requirements to src/greenlet.egg-info/requires.txt
      writing top-level names to src/greenlet.egg-info/top_level.txt
      reading manifest file 'src/greenlet.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      no previously-included directories found matching 'docs/_build'
      warning: no files found matching '*.py' under directory 'appveyor'
      warning: no previously-included files matching '*.pyc' found anywhere in distribution
      warning: no previously-included files matching '*.pyd' found anywhere in distribution
      warning: no previously-included files matching '*.so' found anywhere in distribution
      warning: no previously-included files matching '.coverage' found anywhere in distribution
      adding license file 'LICENSE'
      adding license file 'LICENSE.PSF'
      adding license file 'AUTHORS'
      running build_ext
      building 'greenlet._greenlet' extension
      error: command 'gcc' failed: No such file or directory
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for greenlet
  error: subprocess-exited-with-error
  
  × Running setup.py install for greenlet did not run successfully.
  │ exit code: 1
  ╰─> [24 lines of output]
      running install
      /usr/local/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      running egg_info
      writing src/greenlet.egg-info/PKG-INFO
      writing dependency_links to src/greenlet.egg-info/dependency_links.txt
      writing requirements to src/greenlet.egg-info/requires.txt
      writing top-level names to src/greenlet.egg-info/top_level.txt
      reading manifest file 'src/greenlet.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      no previously-included directories found matching 'docs/_build'
      warning: no files found matching '*.py' under directory 'appveyor'
      warning: no previously-included files matching '*.pyc' found anywhere in distribution
      warning: no previously-included files matching '*.pyd' found anywhere in distribution
      warning: no previously-included files matching '*.so' found anywhere in distribution
      warning: no previously-included files matching '.coverage' found anywhere in distribution
      adding license file 'LICENSE'
      adding license file 'LICENSE.PSF'
      adding license file 'AUTHORS'
      running build_ext
      building 'greenlet._greenlet' extension
      error: command 'gcc' failed: No such file or directory
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> greenlet

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
WARNING: You are using pip version 22.0.3; however, version 22.1.1 is available.
You should consider upgrading via the '/usr/local/bin/python3 -m pip install --upgrade pip' command.

My environment:

Home Assistant Core 2022.5.5
Home Assistant Supervisor 2022.05.3

I also tried to install greenlet manually via pip3 install greenlet then try to install music assistant again but still same error.

Thank you.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 25 (10 by maintainers)

Most upvoted comments

Other than that I can’t help you. You are running an unsupported config at the moment, for example armbian. Not all packages/wheels are available. So without being rude I want to tell you that when you decide to create a supervised install with unsupported building blocks you’re kind of on your own when it comes to issues.

If I were you I’d look into installing HA OS into your device, works rock stable for me.

Thank you very much for your support. Regarding to the “unsupported” issue, I think that’s just the message from HA team that they warning for these hardware which are not certified by them officially. I’ve used Armbian for more than 3 years and now it is quite stable. This is the 1st time I got the issue with a custom_component.

Question is why it is trying to install greenlet while that is already installed. Version 1.1.20 of MA has greenlet pinned in the integration’s manifest to hopefully solve this weird issue. Looks like that doesn’t help and I’m out of options.

There’s a good chance there’s another (custom) integration or its dependencies or maybe some leftover cached stuff that is causing this issue but I’m not a pip expert to have the answer here. Unfortunately it is system specific because the majority of users can install just fine.

I guess there might be some conflict somewhere in our system but not related to unsupported environment or hardware. At the first install, I just follow your guide to install from HACS then ininiating it from integration menu. Because of installing failed then I tried to install manually but got same issue.

I will try it again with other environment then report you result.