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

Getting the error in lambads With django 3.2 #285

Closed
deep-kr opened this issue Sep 19, 2023 · 5 comments
Closed

Getting the error in lambads With django 3.2 #285

deep-kr opened this issue Sep 19, 2023 · 5 comments

Comments

@deep-kr
Copy link

deep-kr commented Sep 19, 2023

[ERROR] Runtime.UserCodeSyntaxError: Syntax error in module 'pr_dd_to_rds': invalid syntax (typing_extensions.py, line 874)
Traceback (most recent call last):
  File "/opt/python/typing_extensions.py" Line 874
        def TypedDict(typename, fields=_marker, /, *, total=True, **kwargs):

After 18th release we start facing this issue. As our requirements are not freezed so latest version installed and lambda start falling.

@deep-kr deep-kr changed the title Getting the error in lambdas With django 3.2 Getting the error in lambads With django 3.2 Sep 19, 2023
@hauntsaninja
Copy link
Collaborator

hauntsaninja commented Sep 19, 2023

It sounds like you're running with Python 3.7. Are you using a non-standard installer or using different Python versions for your installer and actual code? The 4.8.0 release of typing-extensions specifies a lower bound of Python 3.8 for this reason:

requires-python = ">=3.8"

@deep-kr
Copy link
Author

deep-kr commented Sep 19, 2023

Its python 3.8 installer. Runtime env is 3.7

@hauntsaninja
Copy link
Collaborator

Yeah, that's not going to work. You should use an installer that matches the interpreter you actually run with.

@hauntsaninja hauntsaninja closed this as not planned Won't fix, can't repro, duplicate, stale Sep 19, 2023
@deep-kr
Copy link
Author

deep-kr commented Sep 19, 2023

You mean installer should also on 3.7. Then this 4.8 version will work.

Or i can freeze the requirement. That also works.

@JelleZijlstra
Copy link
Member

The latest release no longer supports Python 3.7. You'll have to keep using 4.7.1.

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

3 participants