Skip to content

Commit

Permalink
docs(lambda-python): add troubleshooting for Finch
Browse files Browse the repository at this point in the history
Add troubleshooting instructions to resolve a weird error produced by
Finch.

Fixes #24458.
  • Loading branch information
rix0rrr committed Mar 16, 2023
1 parent 5025410 commit a97a5b5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/@aws-cdk/aws-lambda-python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,3 +285,24 @@ new python.PythonFunction(this, 'function', {
},
});
```

## Troubleshooting

### Containerfile: no such file or directory

If you are on a Mac, using [Finch](https://github.com/runfinch/finch) instead of Docker, and see an error
like this:

```txt
lstat /private/var/folders/zx/d5wln9n10sn0tcj1v9798f1c0000gr/T/jsii-kernel-9VYgrO/node_modules/@aws-cdk/aws-lambda-python-alpha/lib/Containerfile: no such file or directory
```

That is a sign that your temporary directory has not been mapped into the Finch VM. Add the following to `~/.finch/finch.yaml`:

```yaml
additional_directories:
- path: /private/var/folders/
- path: /var/folders/
```
Then restart the Finch VM by running `finch vm stop && finch vm start`.

0 comments on commit a97a5b5

Please sign in to comment.