Unable to install in windows through pip
I tried installing localstack through pip in my windows 10 machine: python -m pip install localstack But, I got the below error.
The problem can be solved simply by letting it to install "pbs" rather than "sh", in windows.
Comments (7)
-
Account Deactivated -
reporter @w_hummer Then, is there a possibility to have requirements.txt specific for OS. It tries to install whatever is present in requirements.txt.
-
Account Deactivated The problem is that, even if we fix the installation of that package, there will still be problems at runtime. LocalStack currently only runs on Linux/MacOS, because the code makes several assumptions that are usually only satisfied on UNIX-based systems (e.g., availability of a
/tmp
folder, running commands in sub-shells, handling of processes, etc.).Arguably, this is not great programming practice because Python code is supposed to be cross-platform compatible, but unfortunately this is where we are today. Making LocalStack compatible with Windows will be a huge undertaking which will affect pretty much the entire code base. Unless someone from the community is willing to take on this task, I don't see it happening anytime soon.
But there is another solution: Would it be an option for you to run LocalStack in a Docker container? In this case you don't have to install anything or modify your environment at all. A good starting point for Docker on Windows can be found here: https://docs.docker.com/docker-for-windows/
Once you have Docker installed, all you need to do is run the following command:
docker run -it -p 4567-4578:4567-4578 -p 8080:8080 atlassianlabs/localstack
I hope that helps.
-
Account Deactivated @udhayprakash did you have a chance to try out running LocalStack in Docker on Windows?
-
The docker file specifies an alpine linux environment, so it will run on a virtual machine with linux kernel as the container. Therefore I do not think we will have any problem to run docker localstack on windows. However, this is not the purpose and this is still a bug in my opinion.
-
Account Deactivated @udhayprakash @cswords This issue is now tracked in a new location: https://github.com/localstack/localstack/issues/157 Please follow up and share your experience on the new ticket. Thanks
-
Account Deactivated - changed status to resolved
- Log in to comment
Thanks for this bug report. It looks like
pbs
has been superseded (replaced) by thesh
package, though. Thepbs
package is no longer supported or maintained: https://pypi.python.org/pypi/pbsSo if we use
pbs
instead ofsh
, then we might break support for Linux/Mac OS. We need to find a cross-platform solution that works for everyone.