question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to install Music Assistant on HASS supervised

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:25 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
dinhchinh82commented, Jun 1, 2022

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.

0reactions
sgueniotcommented, Nov 5, 2022

Hi, on my raspberry with HA core in docker I have a similar error. The problem (visible int the log : command 'gcc' failed: No such file or directory) was that I needed to install gcc and some other dependencies in the docker container. I am using portainer, I just opened the HA container console, it is based on alpine linux so I started the installation with

apk update
apk add build-base

After the reboot, I restart the Music Assistant installation successfully. I hope this helps someone

Read more comments on GitHub >

github_iconTop Results From Across the Web

Music Assistant could not be installed with Home ... - GitHub
The problem. Installation via HACS fails. Configuration flow could not be started because of an „unknown error“. How to reproduce. Add Music ......
Read more >
Home Assistant Supervised can't install Addons - Reddit
Hey, I'm trying to install Home Assistant Supervised. Since in Docker I can't have addons and I don't want the OS version, the...
Read more >
How to Install Home Assistant Supervised - OFFICIAL WAY
UPDATE: The installation method has changed a bit! Updated instructions can be found here ...
Read more >
Home Assistant Supervised Installation on Debian Linux
Home Assistant is one of the best open sourced Smart Home platforms and it can be installed using several different ways.
Read more >
Adding local media - Home Assistant
If you are running Home Assistant OS or Supervised, you can access your (automatically) created media folder using the Samba add-on.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found