Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SAM CLI executable not found - Pycharm

I'm trying to configure PyCharm in order to run a Lambda Function.

First of all in AWS Toolkit I select the SAM CLI executable, and it goes well: enter image description here

Anyway, when I want to add a Lambda run configuration pycharm says: Invalid sam executable: "The system couldn't find the specific route." enter image description here

My system PATH variable: enter image description here

Someone could help me here please, I really don't know what else to do.

Many thanks! Xevi

like image 989
Xevi Avatar asked Mar 06 '26 06:03

Xevi


2 Answers

Actually, I encountered same problem and solved as following;

I assume that you use mac and write in terminal this;

which sam

This gives you the path where sam installed.

Then copy this and paste into sam cli executable path like below;

enter image description here

like image 107
Tuncay Elvanağaç Avatar answered Mar 08 '26 20:03

Tuncay Elvanağaç


This means that SAM is not installed on your system or path is not configured in pycharm. Kindly follow the instructions for installing SAM as per the AWS documentation.

like image 25
Ravik Avatar answered Mar 08 '26 19:03

Ravik