cyanbook / spotipy2 Goto Github PK
View Code? Open in Web Editor NEWThe next generation Spotify Web API wrapper for Python 3.7+
License: GNU Lesser General Public License v3.0
The next generation Spotify Web API wrapper for Python 3.7+
License: GNU Lesser General Public License v3.0
Hello! I tried to package for Conda Forge using the source that you've made available with the PyPI package you distribute. There is, however, an issue with the tarball provided at PyPI which results in failed builds. (Specifically, setup.py bombs out because it references a missing requirements.txt file.) Rather than try to work around that, I've packaged spotipy2for Conda Forge using this GitHub repo as source.
I'm pleased to say that the package has been accepted and is available in Conda Forge.
Cheers!
Hi, I was scrolling through my Github explore section and saw this repo, so I wanted to try it out. I simply copy-pasted the demo from the README.md
(and changed the client id and client token) and it gave me the error RuntimeError: Timeout context manager should be used inside a task
.
The error seems to originate from line 25, in get_access_token
inside the client_credentials_flow.py
file. Full traceback is given below.
Traceback (most recent call last):
File "C:\Users\REMOVED\Documents\Private\Coding\Python\spotipy2\test.py", line 28, in <module>
asyncio.run(get_track_name(input("Insert the track ID: ")))
File "C:\Users\REMOVED\.pyenv\pyenv-win\versions\3.10.1\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\REMOVED\.pyenv\pyenv-win\versions\3.10.1\lib\asyncio\base_events.py", line 641, in run_until_complete
return future.result()
File "C:\Users\REMOVED\Documents\Private\Coding\Python\spotipy2\test.py", line 24, in get_track_name
track = await s.get_track(track_id)
File "C:\Users\REMOVED\Documents\Private\Coding\Python\spotipy2\spotipy2\methods\tracks.py", line 18, in get_track
return Track.from_dict(await self._get(f"tracks/{self.get_id(track_id)}"))
File "C:\Users\REMOVED\Documents\Private\Coding\Python\spotipy2\spotipy2\client.py", line 83, in _get
return await self._req("GET", endpoint, params, can_be_cached)
File "C:\Users\REMOVED\Documents\Private\Coding\Python\spotipy2\spotipy2\client.py", line 55, in _req
token = await self.auth_flow.get_access_token(self.http)
File "C:\Users\REMOVED\Documents\Private\Coding\Python\spotipy2\spotipy2\auth\client_credentials_flow.py", line 25, in get_access_token
async with http.post(
File "C:\Users\REMOVED\Documents\Private\Coding\Python\spotipy2\venv\lib\site-packages\aiohttp\client.py", line 1138, in __aenter__
self._resp = await self._coro
File "C:\Users\REMOVED\Documents\Private\Coding\Python\spotipy2\venv\lib\site-packages\aiohttp\client.py", line 466, in _request
with timer:
File "C:\Users\REMOVED\Documents\Private\Coding\Python\spotipy2\venv\lib\site-packages\aiohttp\helpers.py", line 701, in __enter__
raise RuntimeError(
RuntimeError: Timeout context manager should be used inside a task
Operating System: Windows 11 Home 21H2 22000.556
Python Version: 3.10.1
Install Version: 3d351dc
I have a problem with install pkg. Maybe it's incorrect pkg manifest.
Unresolved reference 'spotipy2'
(venv) rbeltsov@roman test % pip list | grep spotipy2
spotipy2 0.5
(venv) rbeltsov@roman test % python3 --version
Python 3.10.1
(venv) rbeltsov@roman test % python3 -c 'import spotipy2'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'spotipy2'
(venv) rbeltsov@roman test % uname -a
Darwin 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE_X86_64 x86_64
MacOS 12.1
The landing page lists as a feature: "Documented - API methods, types and interfaces are all well documented". Where are these docs? The linked docs website covers very little of the API or usage, and many methods lack docstrings.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.