I am trying to import my own module but I am getting error:
Unable to import module 'lambda_function': attempted relative import with no known parent package
lambda_function.py

Own modulename.py

You import it as if you were to import any other Python module. In other words don't do this:
from .name import *
but do this:
from name import show_name
For example:

The contents of name.py:
def my_name():
print("Your name goes here.")
Don't forget to Deploy your function after making changes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With