[GH-ISSUE #225] Python 3.5 doesn't seem to be supported #176

Closed
opened 2026-02-27 22:08:27 +03:00 by kerem · 2 comments
Owner

Originally created by @spidru on GitHub (Aug 31, 2021).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/225

Hi there,

I'd like to report that I get the following error when trying to use Python 3.5:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/venv/lib/python3.5/site-packages/ytmusicapi/__init__.py", line 2, in <module>
    from ytmusicapi.ytmusic import YTMusic
  File "/home/venv/lib/python3.5/site-packages/ytmusicapi/ytmusic.py", line 10, in <module>
    from ytmusicapi.mixins.browsing import BrowsingMixin
  File "/home/venv/lib/python3.5/site-packages/ytmusicapi/mixins/browsing.py", line 278
    raise ValueError(f"The YouTube Channel {channelId} has no music content.")
                                                                            ^
SyntaxError: invalid syntax

My understanding is that f-strings were only introduced in Python 3.6, causing this syntax error. So I guess the README should be updated to "3.6 or higher" rather than "3.5 or higher"?

Originally created by @spidru on GitHub (Aug 31, 2021). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/225 Hi there, I'd like to report that I get the following error when trying to use Python 3.5: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/venv/lib/python3.5/site-packages/ytmusicapi/__init__.py", line 2, in <module> from ytmusicapi.ytmusic import YTMusic File "/home/venv/lib/python3.5/site-packages/ytmusicapi/ytmusic.py", line 10, in <module> from ytmusicapi.mixins.browsing import BrowsingMixin File "/home/venv/lib/python3.5/site-packages/ytmusicapi/mixins/browsing.py", line 278 raise ValueError(f"The YouTube Channel {channelId} has no music content.") ^ SyntaxError: invalid syntax ``` My understanding is that f-strings were only introduced in Python 3.6, causing this syntax error. So I guess the README should be updated to "3.6 or higher" rather than "3.5 or higher"?
kerem closed this issue 2026-02-27 22:08:27 +03:00
Author
Owner

@sigma67 commented on GitHub (Sep 2, 2021):

Hm it seems that one snuck in unnoticed during a recent PR. But Python 3.5 has reached end-of-life, so we should instead up version in the README as you suggested.

https://www.python.org/downloads/

<!-- gh-comment-id:912001089 --> @sigma67 commented on GitHub (Sep 2, 2021): Hm it seems that one snuck in unnoticed during a recent PR. But Python 3.5 has reached end-of-life, so we should instead up version in the README as you suggested. https://www.python.org/downloads/
Author
Owner

@spidru commented on GitHub (Sep 6, 2021):

Agreed. Let me know if you'd rather I create a PR for this.

<!-- gh-comment-id:913778502 --> @spidru commented on GitHub (Sep 6, 2021): Agreed. Let me know if you'd rather I create a PR for this.
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/ytmusicapi#176
No description provided.