Skip to content

sam build error: The process cannot access the file because it is being used by another process #4595

Open
@betimer

Description

@betimer

Describe the bug

PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 
'C:\\Users\\betim\\AppData\\Local\\Temp\\tmpr4kzrh76'

To reproduce

  1. sam init
  2. just choose hello world (type script)
  3. rename the folder name (also update the path in template.yaml
  4. sam build

Expected behavior
Success without any error (I have also tried to manually remove the temp file, but it turns out the error is consistent with each time it also generate again, so the root cause will be from sam build itself, and it generate the temp file

Screenshots
image
Your Environment

  • OS: Windwos 11 64bit

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions