mopidy / homebrew-mopidy

Homebrew formulas for Mopidy and Mopidy extensions
https://mopidy.com
Other
22 stars 15 forks source link

brew's mopidy package fails to install on Fedora39 #44

Open davidandreoletti opened 5 months ago

davidandreoletti commented 5 months ago

This is similar to #37 and this time:

Sounds like mopidy expect setup tools

024-03-14T08:21:00.5643425Z ==> Installing mopidy/mopidy/mopidy
2024-03-14T08:21:12.2107176Z ==> /home/linuxbrew/.linuxbrew/opt/python@3.12/bin/python3.12 -c import setuptools... --no-user-cfg install --prefix=/home/linuxbrew/.linuxbrew/Cellar/mopidy/3.4.2/libexec --install-scripts=/home/linuxbrew/.linuxbrew/Cellar/mopidy/3.4.2/libexec/bin --install-lib=/home/linuxbrew/.linuxbrew/Cellar/mopidy/3.4.2/libexec/lib/python3.12/site-packages --single-version-externally-managed --record=installed.txt
2024-03-14T08:21:12.2497757Z Last 15 lines from /root/.cache/Homebrew/Logs/mopidy/01.python3.12:
2024-03-14T08:21:12.2555885Z import setuptools, tokenize
2024-03-14T08:21:12.2556627Z __file__ = 'setup.py'
2024-03-14T08:21:12.2557766Z exec(compile(getattr(tokenize, 'open', open)(__file__).read()
2024-03-14T08:21:12.2558812Z   .replace('\r\n', '\n'), __file__, 'exec'))
2024-03-14T08:21:12.2559193Z --no-user-cfg
2024-03-14T08:21:12.2559402Z install
2024-03-14T08:21:12.2559773Z --prefix=/home/linuxbrew/.linuxbrew/Cellar/mopidy/3.4.2/libexec
2024-03-14T08:21:12.2560413Z --install-scripts=/home/linuxbrew/.linuxbrew/Cellar/mopidy/3.4.2/libexec/bin
2024-03-14T08:21:12.2561234Z --install-lib=/home/linuxbrew/.linuxbrew/Cellar/mopidy/3.4.2/libexec/lib/python3.12/site-packages
2024-03-14T08:21:12.2561874Z --single-version-externally-managed
2024-03-14T08:21:12.2562222Z --record=installed.txt
2024-03-14T08:21:12.2562388Z 
2024-03-14T08:21:12.2562501Z Traceback (most recent call last):
2024-03-14T08:21:12.2562829Z   File "<string>", line 1, in <module>
2024-03-14T08:21:12.2563260Z ModuleNotFoundError: No module named 'setuptools'
2024-03-14T08:21:13.0187767Z 
2024-03-14T08:21:13.1730829Z If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
2024-03-14T08:21:13.1732199Z   https://github.com/mopidy/homebrew-mopidy/issues
2024-03-14T08:21:13.1732695Z 
2024-03-14T08:21:14.8995123Z These open issues may also help:
2024-03-14T08:21:14.8996850Z GST plugins 1.20.x break mopidy audio playback on intel machines https://github.com/mopidy/homebrew-mopidy/issues/41
jodal commented 5 months ago

Python 3.12 no longer bundles setuptools.

The formulas in this repo was very recently updated and seemed to work on Mac then, which leaves me wondering if Python installed by Homebrew on Mac still bundles it or if it just was present on the system where the formulas were tested.

Either way, adding setuptools as an explicit dependency in mopidy.rb should solve this.

jodal commented 5 months ago

@monke0192 Do you have time to attempt to fix this by adding setuptools as a dependency?