Hey all, I'm deploying a Django application via Pa...
# general
p
Hey all, I'm deploying a Django application via Pants to AWS Lambda, and I'm seeing this error in our Cloudwatch logs:
Copy code
[ERROR] TypeError: the 'package' argument is required to perform a relative import for '.app.lambdex_handler'
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 122, in import_module
    raise TypeError(msg.format(name))
Has anyone seen this before? There must be some kind of Python versioning issue, but I'm not sure what's going on. Our Lambda runtime is running Python 3.9.
1
👀 1