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

Library no longer compatible with Python 3.11 since release 2.0.2 #247

Closed
LightlessOne opened this issue Dec 27, 2024 · 5 comments
Closed
Assignees

Comments

@LightlessOne
Copy link

LightlessOne commented Dec 27, 2024

When I try importing this library with Python 3.11, I get
SyntaxError: f-string expression part cannot include a backslash
in "webexpythonsdk\models\cards\utils.py"
It's most likely caused by changes in ad65a86

This syntax is only supported from Python 3.12 onward, so we should probably revert these changes, as it breaks compatibility with 3.10 & 3.11.

As a workaround you can still downgrade to release 2.0.1 of 'webexpythonsdk'

@LightlessOne LightlessOne changed the title Library no longer compatible with Python 3.11 since release 2.0.2 f-string expression part cannot include a backslash Library no longer compatible with Python 3.11 since release 2.0.2 Dec 27, 2024
@nugsolot
Copy link

nugsolot commented Jan 6, 2025

I have seen the same thing on python 3.10.15 and 3.10.16

@Joezanini Joezanini self-assigned this Jan 6, 2025
@Joezanini
Copy link
Collaborator

I saw this when first testing the Adaptive Cards PR, after some code changes the error went away. I will work on getting this remedied. Thanks for bringing it up.

@Joezanini
Copy link
Collaborator

Joezanini commented Jan 6, 2025

I am also looking at the Build and Test action and version used is 3.12

@Sakthivel-Ramasamy
Copy link

Opened a PR to fix this issue #248

Joezanini added a commit that referenced this issue Jan 11, 2025
Remove backslash from f-string to maintain backward compatibility with
Python 3.10 and 3.11 versions.

Also, corrected little (very minor non-impacting) cosmetic issues.

Patch for Issue: #247
@Joezanini
Copy link
Collaborator

Fixed with release v2.0.3

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

4 participants