spotDL / spotify-downloader

Download your Spotify playlists and songs along with album art and metadata (from YouTube if a match is found).
https://spotdl.readthedocs.io/en/latest/
MIT License
17.14k stars 1.57k forks source link

Not able to install spotDL using termux #2092

Closed aneesh1122 closed 4 months ago

aneesh1122 commented 4 months ago

System OS

Termux (Android)

Python Version

3.11 (CPython)

Install Source

Termux Installation Script (spotDL provided)

Install version / commit hash

Not installed yet

Expected Behavior vs Actual Behavior

Should have installed but it's throwing errors

Steps to reproduce - Ensure to include actual links!

  1. open termux
  2. run code curl -L https://raw.githubusercontent.com/spotDL/spotify-downloader/master/scripts/termux.sh | sh

Traceback

error: command '/data/data/com.termux/files/usr/bin/aarch64-linux-android-clang' failed with exit code 1        [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.                            ERROR: Failed building wheel for pycryptodomex        
Failed to build brotli pycryptodomex                    
ERROR: Could not build wheels for brotli, pycryptodomex, which is required to install pyproject.toml-based projects

Other details

No response

aneesh1122 commented 4 months ago

_file="$(find $PREFIX/lib/python3.11 -name "_sysconfigdata*.py")" rm -rf $PREFIX/lib/python3.11/_pycache_ cp $_file "$_file".backup sed -i 's|-fno-openmp-implicit-rpath||g' "$_file"

Run this and it will solve your problem