Skip to content

Commit d5bd058

Browse files
authored
docs(lambda-python): add troubleshooting for Finch (#24646)
Add troubleshooting instructions to resolve a weird error produced by Finch. Fixes #24458. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 5025410 commit d5bd058

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

packages/@aws-cdk/aws-lambda-python/README.md

+21
Original file line numberDiff line numberDiff line change
@@ -285,3 +285,24 @@ new python.PythonFunction(this, 'function', {
285285
},
286286
});
287287
```
288+
289+
## Troubleshooting
290+
291+
### Containerfile: no such file or directory
292+
293+
If you are on a Mac, using [Finch](https://github.com/runfinch/finch) instead of Docker, and see an error
294+
like this:
295+
296+
```txt
297+
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
298+
```
299+
300+
That is a sign that your temporary directory has not been mapped into the Finch VM. Add the following to `~/.finch/finch.yaml`:
301+
302+
```yaml
303+
additional_directories:
304+
- path: /private/var/folders/
305+
- path: /var/folders/
306+
```
307+
308+
Then restart the Finch VM by running `finch vm stop && finch vm start`.

0 commit comments

Comments
 (0)