serverless / serverless/examples

AWS-PYTHON-REST-API-WITH-DYNAMODB ModuleNotFoundError

Open
#508 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
11.5k
Forks
4.4k
Avg merge
2h 55m
Merged PRs (30d)
3

Description

All the required dependencies are installed. Tried running the lambda functions locally using 'serverless-offline'.
Tried hitting the endpoint GET | http://localhost:3000/dev/todos
Got the following error
ModuleNotFoundError: No module named 'todos\list'

Please note absolutely nothing was changed in the code.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin in the AWS-PYTHON-REST-API-WITH-DYNAMODB example by running the Lambda functions with serverless-offline and requesting GET http://localhost:3000/dev/todos. Inspect the local module resolution around the reported todos\list path; done means the endpoint runs without ModuleNotFoundError and returns its expected response.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
api, backend, cloud, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.