[GH-ISSUE #155] [BUG] Old example(s) #22

Closed
opened 2026-02-27 08:11:29 +03:00 by kerem · 0 comments
Owner

Originally created by @kokarare1212 on GitHub (Sep 29, 2022).
Original GitHub issue: https://github.com/kokarare1212/librespot-python/issues/155

  hello! I have a question.

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

Originally created by @kokarare1212 on GitHub (Sep 29, 2022). Original GitHub issue: https://github.com/kokarare1212/librespot-python/issues/155 hello! I have a question. 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 <module> main() _Originally posted by @kiritannplum in https://github.com/kokarare1212/librespot-python/discussions/1#discussioncomment-3765106_
kerem closed this issue 2026-02-27 08:11:29 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot-python-kokarare1212#22
No description provided.