Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Serverless Application Model init error on Pycharm

I am trying to create a new AWS Serverless Application on Pycharm but i am getting this error:

Could not execute `sam init`!: [Cloning from https://github.com/aws/aws-sam-cli-app-templates (process may take a moment),
Error: Unstable state when updating repo. Check that you have permissions to create/delete files

How can i solve this problem ?

Details:

OS:Windows 10 , x64
Version: Python 3.9, SAM CLI- 1.53.0
IDE: Pycharm 2022.1.3 Pro Edition
Git Version 2.37
like image 576
Utku Can Avatar asked Jul 18 '26 17:07

Utku Can


1 Answers

Open PowerShell in admin mode and type this and execute

New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" `
-Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force

worked for me. (fixes webstorm aws toolkit error in init too)

like image 142
Yasas Lowe Avatar answered Jul 21 '26 07:07

Yasas Lowe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!