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

lambda is not reconized as a command #135

Open
AlissonRS opened this issue Feb 19, 2019 · 8 comments
Open

lambda is not reconized as a command #135

AlissonRS opened this issue Feb 19, 2019 · 8 comments

Comments

@AlissonRS
Copy link

@AlissonRS AlissonRS commented Feb 19, 2019

So I run exactly these commands, as the readme.md file explains:

$ mkvirtualenv pylambda
(pylambda) $ mkdir pylambda
(pylambda) $ pip install python-lambda

From your pylambda directory, run the following to bootstrap your project.

(pylambda) $ cd pylambda
(pylambda) $ lambda init

When I run lambda init, It throws "lambda" is not recognized as an internal command. How can I fix this?

@soapergem
Copy link
Collaborator

@soapergem soapergem commented Feb 19, 2019

Without knowing more specifics about your particular setup, I don't think anyone will be able to help. When I run those same commands verbatim, everything works fine. Are you on Linux, Mac, Windows, WSL? Are you using anything like pyenv or conda? What version of Python do you have installed?

@AlissonRS
Copy link
Author

@AlissonRS AlissonRS commented Feb 19, 2019

Hi @soapergem , I appreciate your help.

So I'm using Windows 10 Pro, and regarding the packages you mentioned, these are the versions:

image

I don't have pyenv, I do have conda, but it's not installed globally (added to my environment variable PATH). So I suspect it shouldn't be impacting this. When I need to use conda, I either use PyCharm IDE, or open Anaconda Prompt instead of powershell and CMD.

After trying the first time, I found this virtualenvwrapper-win (which is a wrapper for windows), I installed version 1.2.5 but it failed as well.

Right now I'm deploying my Python code to Azure Functions, however I'd like to try using AWS Lambda. So Azure provide a cli which is used to deploy code. If you have docker installed, behind the scenes they use docker to pull some Linux image, build everything they need there, and finally deploy. I believe this package aims to do the same thing, which would be something really useful.

I'm sorry If I couldn't help with enough details, but please let me know if there is anything else I could do to help.

@Varxtis511
Copy link

@Varxtis511 Varxtis511 commented Mar 11, 2019

Try "lambda.py" instead of just "lambda".
I had the same issue and this fixed it for me since the lambda command is a .py file.

@nathanjr
Copy link

@nathanjr nathanjr commented Mar 25, 2019

I'm on Windows 10 as well. I had to rename "lambda" to "lambda.py" in my python "Scripts" folder. I could then do "lambda.py init".

@AlissonRS
Copy link
Author

@AlissonRS AlissonRS commented Apr 1, 2019

@Varxtis511 @nathanjr nice catch, I'll try that when I come back to this project. Thanks!!!

@stevefan
Copy link

@stevefan stevefan commented Apr 1, 2019

@AlissonRS
Copy link
Author

@AlissonRS AlissonRS commented Apr 1, 2019

@stevefan that's cool mate, I understand you were just trying to help, I appreciate that. Unfortunately I'm working on a different project now, but if this thread is still open when I get back to this project, I'll post here my findings.

@rnobleeddy
Copy link

@rnobleeddy rnobleeddy commented Jul 26, 2019

If it helps anyone, I had both rename lambda to lambda.py and then invoke it with python c:\full\path\to\lambda.py init

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.