Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: f-string: unmatched '(' #6

Closed
mobicu opened this issue Nov 30, 2023 · 1 comment
Closed

SyntaxError: f-string: unmatched '(' #6

mobicu opened this issue Nov 30, 2023 · 1 comment
Assignees

Comments

@mobicu
Copy link

mobicu commented Nov 30, 2023

D:\Github\Merge-image>python cli.py merge -folder "Merged\CH (1)" -fit
Traceback (most recent call last):
File "D:\Github\Merge-image\cli.py", line 86, in
from utils.image_merger import merge_folder
File "D:\Github\Merge-image\utils\image_merger.py", line 42
copy2(list_to_merge[0].filename, f'{path_to_destination}/{index+1:03d}.{list_to_merge[0].filename.split('.')[-1]}')
^
SyntaxError: f-string: unmatched '('

@YofaGh
Copy link
Owner

YofaGh commented Dec 1, 2023

Regarding this, as of python 3.12.0, f-strings support nested apostrophe characters. so you need to update your python version to 3.12.x or higher. but since its a new version and a lot of other codes might still have some issues with it, I'll just roll back the f-string changes to previous structure. Don't forget to update the code!!!!

@YofaGh YofaGh closed this as completed Dec 1, 2023
@YofaGh YofaGh self-assigned this Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants