shazamio / ShazamIO

🎵 Is a free asynchronous library from reverse engineered Shazam API written in Python 3.8+ with asyncio and aiohttp.
MIT License
519 stars 75 forks source link

Failed to build when running pip install #102

Closed raylin01 closed 7 months ago

raylin01 commented 7 months ago

Hi, I am trying to install this package in my docker with pip install shazamio. I am getting the following error:

12.56   Downloading shazamio_core-1.0.7.tar.gz (2.2 kB)
12.57   Installing build dependencies: started
13.64   Installing build dependencies: finished with status 'done'
13.64   Getting requirements to build wheel: started
13.67   Getting requirements to build wheel: finished with status 'done'
13.67   Preparing metadata (pyproject.toml): started
13.72   Preparing metadata (pyproject.toml): finished with status 'error'
13.72   error: subprocess-exited-with-error
13.72   
13.72   × Preparing metadata (pyproject.toml) did not run successfully.
13.72   │ exit code: 1
13.72   ╰─> [5 lines of output]
13.72       💥 maturin failed
13.72         Caused by: Can't find /tmp/pip-install-_pq0d2g2/shazamio-core_7152718c50934472b402d0dfd12c51f1/Cargo.toml (in /tmp/pip-install-_pq0d2g2/shazamio-core_7152718c50934472b402d0dfd12c51f1)
13.72       Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/tmp/pip-modern-metadata-6helvmpj', '--interpreter', '/var/lang/bin/python3.11']' returned non-zero exit status 1.
13.72       Checking for Rust toolchain....
13.72       Running `maturin pep517 write-dist-info --metadata-directory /tmp/pip-modern-metadata-6helvmpj --interpreter /var/lang/bin/python3.11`
13.72       [end of output]
13.72   
13.72   note: This error originates from a subprocess, and is likely not a problem with pip.
13.73 error: metadata-generation-failed
13.73 
13.73 × Encountered error while generating package metadata.
13.73 ╰─> See above for output.
13.73 
13.73 note: This is an issue with the package mentioned above, not pip.
13.73 hint: See above for details.

I was able to get rust installed and installing maturin doesn't seem to help. Are there any specific build instructions and prerequisites I should follow? Thanks.

raylin01 commented 7 months ago

it appears its a shazamio core issue, as specified here: https://github.com/shazamio/shazamio-core/issues/9. I will be updating if i can get it to work

dotX12 commented 7 months ago

@raylin01, Hello, what is your operating system and version?

dotX12 commented 7 months ago

Please leave a response in this thread https://github.com/shazamio/shazamio-core/issues/9 and close the question in this thread. I will help you with your problem in shazamio-core.