[GH-ISSUE #105] [Bug Report] Nested Quotes SyntaxError f-string #93

Closed
opened 2026-02-27 04:57:29 +03:00 by kerem · 4 comments
Owner

Originally created by @damanjit-singh on GitHub (Oct 27, 2025).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/105

Originally assigned to: @Googolplexed0 on GitHub.

Zotify Version
v0.10.21

Bug Description
I am running efficient-api branch version and my Python version is 3.11.11 on Oracle Linux Server 9.4. Running zotify gives this:

Traceback (most recent call last):
  File "/home/opc/.local/bin/zotify", line 3, in <module>
    from zotify.__main__ import main
  File "/home/opc/.local/share/pipx/venvs/zotify/lib64/python3.11/site-packages/zotify/__main__.py", line 11, in <module>
    from zotify.app import client
  File "/home/opc/.local/share/pipx/venvs/zotify/lib64/python3.11/site-packages/zotify/app.py", line 4, in <module>
    from zotify.api import Query, LikedSong, UserPlaylist, FollowedArtist, SavedAlbum, VerifyLibrary, fetch_search_display
  File "/home/opc/.local/share/pipx/venvs/zotify/lib64/python3.11/site-packages/zotify/api.py", line 12, in <module>
    from zotify.termoutput import PrintChannel, Printer, Loader, Interface
  File "/home/opc/.local/share/pipx/venvs/zotify/lib64/python3.11/site-packages/zotify/termoutput.py", line 200
    f"WARNING: {"CONFIG" if CONFIG else "ARGUMENT"} `{option_string}` IS DEPRECIATED, IGNORING\n" +
                 ^^^^^^
SyntaxError: f-string: expecting '}'

Bug Triggering Command
zotify

Looks like the issue is at multiple places. I would request @Googolplexed0 to please keep this open for a while I keep reporting the issue till f-string errors are fixed at all the places.

Originally created by @damanjit-singh on GitHub (Oct 27, 2025). Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/105 Originally assigned to: @Googolplexed0 on GitHub. **Zotify Version** v0.10.21 **Bug Description** I am running efficient-api branch version and my Python version is 3.11.11 on Oracle Linux Server 9.4. Running zotify gives this: ``` Traceback (most recent call last): File "/home/opc/.local/bin/zotify", line 3, in <module> from zotify.__main__ import main File "/home/opc/.local/share/pipx/venvs/zotify/lib64/python3.11/site-packages/zotify/__main__.py", line 11, in <module> from zotify.app import client File "/home/opc/.local/share/pipx/venvs/zotify/lib64/python3.11/site-packages/zotify/app.py", line 4, in <module> from zotify.api import Query, LikedSong, UserPlaylist, FollowedArtist, SavedAlbum, VerifyLibrary, fetch_search_display File "/home/opc/.local/share/pipx/venvs/zotify/lib64/python3.11/site-packages/zotify/api.py", line 12, in <module> from zotify.termoutput import PrintChannel, Printer, Loader, Interface File "/home/opc/.local/share/pipx/venvs/zotify/lib64/python3.11/site-packages/zotify/termoutput.py", line 200 f"WARNING: {"CONFIG" if CONFIG else "ARGUMENT"} `{option_string}` IS DEPRECIATED, IGNORING\n" + ^^^^^^ SyntaxError: f-string: expecting '}' ``` **Bug Triggering Command** zotify Looks like the issue is at multiple places. I would request @Googolplexed0 to please keep this open for a while I keep reporting the issue till f-string errors are fixed at all the places.
kerem 2026-02-27 04:57:29 +03:00
Author
Owner

@Googolplexed0 commented on GitHub (Oct 28, 2025):

Should be fixed with github.com/Googolplexed0/zotify@62ba62954a

Unfortunately, you are correct that there are multiple of these. Python improved f-string parsing around 3.12 so these errors aren't caught by my dev environment. Thank you for reporting them.

<!-- gh-comment-id:3454317722 --> @Googolplexed0 commented on GitHub (Oct 28, 2025): Should be fixed with https://github.com/Googolplexed0/zotify/commit/62ba62954a505cd4d04bf58d0d9486a9fcd403bc Unfortunately, you are correct that there are multiple of these. Python improved f-string parsing around 3.12 so these errors aren't caught by my dev environment. Thank you for reporting them.
Author
Owner

@damanjit-singh commented on GitHub (Oct 29, 2025):

Thank you for keep fixing these. I was worried that it will be too much of a hassle for you to fix them back to back. Will report more here in this issue.

Here is one more:

Traceback (most recent call last):
  File "/home/opc/.local/bin/zotify", line 3, in <module>
    from zotify.__main__ import main
  File "/home/opc/.local/share/pipx/venvs/zotify/lib64/python3.11/site-packages/zotify/__main__.py", line 11, in <module>
    from zotify.app import client
  File "/home/opc/.local/share/pipx/venvs/zotify/lib64/python3.11/site-packages/zotify/app.py", line 4, in <module>
    from zotify.api import Query, LikedSong, UserPlaylist, FollowedArtist, SavedAlbum, VerifyLibrary, fetch_search_display
  File "/home/opc/.local/share/pipx/venvs/zotify/lib64/python3.11/site-packages/zotify/api.py", line 12, in <module>
    from zotify.termoutput import PrintChannel, Printer, Loader, Interface
  File "/home/opc/.local/share/pipx/venvs/zotify/lib64/python3.11/site-packages/zotify/termoutput.py", line 461
    dashboard = f"Query Tree: {" -> ".join([i._clsn for i in obj.parent_tree])}\n" +\
                                 ^^
SyntaxError: f-string: expecting '}'
<!-- gh-comment-id:3459563700 --> @damanjit-singh commented on GitHub (Oct 29, 2025): Thank you for keep fixing these. I was worried that it will be too much of a hassle for you to fix them back to back. Will report more here in this issue. Here is one more: ``` Traceback (most recent call last): File "/home/opc/.local/bin/zotify", line 3, in <module> from zotify.__main__ import main File "/home/opc/.local/share/pipx/venvs/zotify/lib64/python3.11/site-packages/zotify/__main__.py", line 11, in <module> from zotify.app import client File "/home/opc/.local/share/pipx/venvs/zotify/lib64/python3.11/site-packages/zotify/app.py", line 4, in <module> from zotify.api import Query, LikedSong, UserPlaylist, FollowedArtist, SavedAlbum, VerifyLibrary, fetch_search_display File "/home/opc/.local/share/pipx/venvs/zotify/lib64/python3.11/site-packages/zotify/api.py", line 12, in <module> from zotify.termoutput import PrintChannel, Printer, Loader, Interface File "/home/opc/.local/share/pipx/venvs/zotify/lib64/python3.11/site-packages/zotify/termoutput.py", line 461 dashboard = f"Query Tree: {" -> ".join([i._clsn for i in obj.parent_tree])}\n" +\ ^^ SyntaxError: f-string: expecting '}' ```
Author
Owner

@Googolplexed0 commented on GitHub (Oct 30, 2025):

Also fixed with github.com/Googolplexed0/zotify@9d8c40b9d8

<!-- gh-comment-id:3465874685 --> @Googolplexed0 commented on GitHub (Oct 30, 2025): Also fixed with https://github.com/Googolplexed0/zotify/commit/9d8c40b9d850057d1ca8958340ca87b2c907c40f
Author
Owner

@damanjit-singh commented on GitHub (Nov 5, 2025):

Seems like all the errors are fixed. I can now run Zotify just fine. Closing this issue

<!-- gh-comment-id:3489552006 --> @damanjit-singh commented on GitHub (Nov 5, 2025): Seems like all the errors are fixed. I can now run Zotify just fine. Closing this issue
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/zotify#93
No description provided.