GithubHelp home page GithubHelp logo

cyanbook / spotipy2 Goto Github PK

View Code? Open in Web Editor NEW
41.0 6.0 10.0 142 KB

The next generation Spotify Web API wrapper for Python 3.7+

License: GNU Lesser General Public License v3.0

Python 92.28% HTML 7.72%
spotify spotify-api spotify-web-api spotipy spotify-library

spotipy2's Introduction

GitHub Stats

spotipy2's People

Contributors

coddo-python avatar cyanbook avatar lykos153 avatar moehmeni avatar oscarnylander avatar xnetcat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

spotipy2's Issues

Unresolved reference 'spotipy2' No module named 'spotipy2'

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

Package for Conda Forge

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!

Documentation

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.

RuntimeError: Timeout context manager should be used inside a task

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.

Full Traceback

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

Installation Details

Operating System: Windows 11 Home 21H2 22000.556
Python Version: 3.10.1
Install Version: 3d351dc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.