mirror of
https://github.com/kokarare1212/librespot-python.git
synced 2026-04-26 00:55:53 +03:00
[GH-ISSUE #155] [BUG] Old example(s) #22
Labels
No labels
bug
dependencies
duplicate
enhancement
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot-python-kokarare1212#22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kokarare1212 on GitHub (Sep 29, 2022).
Original GitHub issue: https://github.com/kokarare1212/librespot-python/issues/155
However, I am very new to both Python and Github, so there may be many mistakes.
I wanted to control Spotify on the python and play songs, and after some research I came across this project.
I immediately tried to start "examples/player/main.py", but I got an error "'bytes' object cannot be interpreted as an integer" on line 130.
I understand that it seems to be failing when trying to convert the variable 'byte', but I have no idea what to do from there.
I can attach the contents of the variable 'byte', but I can't decide whether it's okay to attach it by myself because it may contain some security-critical data.
I would appreciate it if you could give me some advice.
Please let me know if you need any information. I will prepare it immediately.
Here is a list of information that may be of use to you at this time.
spotify premium account
windows10
Python 3.10.7
Using Visual Studio Code
[error statement]
'bytes' object cannot be interpreted as an integer
File "[omitted]\librespot-python-main\examples\player\main.py", line 130, in play
ffplay.stdin.write(bytes([byte]))
File "[omitted]\librespot-python-main\examples\player\main.py", line 44, in client
play(track_id_str)
File "[omitted]\librespot-python-main\examples\player\main.py", line 143, in main
client()
File "[omitted]\librespot-python-main\examples\player\main.py", line 153, in
main()
Originally posted by @kiritannplum in https://github.com/kokarare1212/librespot-python/discussions/1#discussioncomment-3765106