Describe the issue
According to https://arc.codes/docs/en/guides/developer-experience/dependency-management#relative-modules-%26-code-sharing-1, one can import relative modules in Lambdas (as in import .foo). First of all, the sample code in the documentation is not valid Python syntax:
>>> import .foo
File "<stdin>", line 1
import .foo
^
SyntaxError: invalid syntax
But secondly, the correct syntax, from . import foo, does not work in an Architect-managed Lambda. It fails with the following error message:
ImportError: attempted relative import with no known parent package
Steps to reproduce
- Clone https://github.com/nasa-gcn/arc-python-example.
- Run
npm install.
- Run
npm start.
- Open a browser and navigate to http://localhost:3333/.
Expected behavior
Browser should display JSON response: {"hello": "world"}
Screenshots

Desktop
Please complete the following information (if appropriate):
Describe the issue
According to https://arc.codes/docs/en/guides/developer-experience/dependency-management#relative-modules-%26-code-sharing-1, one can import relative modules in Lambdas (as in
import .foo). First of all, the sample code in the documentation is not valid Python syntax:But secondly, the correct syntax,
from . import foo, does not work in an Architect-managed Lambda. It fails with the following error message:Steps to reproduce
npm install.npm start.Expected behavior
Browser should display JSON response:
{"hello": "world"}Screenshots

Desktop
Please complete the following information (if appropriate):