Unable to install in windows through pip

Issue #6 resolved
udhay prakash pethakamsetty created an issue

I tried installing localstack through pip in my windows 10 machine: python -m pip install localstack But, I got the below error.

unnamed.png

The problem can be solved simply by letting it to install "pbs" rather than "sh", in windows.

Comments (7)

  1. Waldemar Hummer Account Deactivated

    Thanks for this bug report. It looks like pbs has been superseded (replaced) by the sh package, though. The pbs package is no longer supported or maintained: https://pypi.python.org/pypi/pbs

    So if we use pbs instead of sh, then we might break support for Linux/Mac OS. We need to find a cross-platform solution that works for everyone.

  2. udhay prakash pethakamsetty 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.

  3. Waldemar Hummer 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.

  4. Waldemar Hummer Account Deactivated

    @udhayprakash did you have a chance to try out running LocalStack in Docker on Windows?

  5. 秦晓宇

    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.

  6. Log in to comment