Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does sam sync supports requirements.txt? #6022

Closed
ilfoxo opened this issue Oct 2, 2023 · 2 comments
Closed

Does sam sync supports requirements.txt? #6022

ilfoxo opened this issue Oct 2, 2023 · 2 comments
Labels
area/sync sam sync command blocked/more-info-needed More info is needed from the requester. If no response in 14 days, it will become stale.

Comments

@ilfoxo
Copy link

ilfoxo commented Oct 2, 2023

I'm trying to use requirements.txt to handle the dependencies for my lambda, i build and deploy without any issues. But during the development I try to use sam sync and I get this error:

`
...

File "shutil.py", line 435, in copy2
File "shutil.py", line 264, in copyfile
FileNotFoundError: [Errno 2] No such file or directory:
'C:\Users\Admin\Documents\Development\Python\akiastockaws\.aws-sam\auto-dependency-layer\PedidosAppsyncSubscripcionesFunctionAp
p\PedidosAppsyncSubscripcionesFunctionAppActualizaa53246c8DepLayer\python\botocore\data\accessanalyzer\2019-11-01\endpoint-rule-s
et-1.json.gz'`

I'm not sure if it is a sam sync limitation/feature not implemented or it is a bug.

SAM version:
SAM CLI, version 1.97.0

Command:
sam sync --stack-name generico2022-app --region us-east-2 --profile generic-dev --watch
and,
sam sync --stack-name generico2022-app --region us-east-2 --profile generic-dev --watch --dependency-layer

Running on Windows

@ilfoxo ilfoxo added the stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. label Oct 2, 2023
@jfuss
Copy link
Contributor

jfuss commented Oct 2, 2023

@ilfoxo requirements.txt needs to be within the CodeUri directory.

The error looks like it might relate to the auto-dependency-layer feature. What happens if you turn that off (--no-dependency-layer?

@jfuss jfuss added blocked/more-info-needed More info is needed from the requester. If no response in 14 days, it will become stale. area/sync sam sync command and removed stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. labels Oct 2, 2023
@ilfoxo ilfoxo closed this as completed Oct 3, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 2023

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sync sam sync command blocked/more-info-needed More info is needed from the requester. If no response in 14 days, it will become stale.
Projects
None yet
Development

No branches or pull requests

2 participants