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

Stuck on stdout.readline #36

Open
fgsalomon opened this issue Nov 7, 2020 · 1 comment
Open

Stuck on stdout.readline #36

fgsalomon opened this issue Nov 7, 2020 · 1 comment
Assignees
Labels
bug Something isn't working linux

Comments

@fgsalomon
Copy link
Contributor

On a lume project with:

install:
  run:
    linux:
      - sudo apt install swig

when executing lume -install after requesting the sudo password the process gets stuck.
After aborting the trace is:

...
 File "/miniconda3/envs/test/lib/python3.6/site-packages/lume/src/application/use_cases/lume_use_case.py", line 220, in run_commands
    self.executor_service.execute(command, cwd).handle(
  File "/miniconda3/envs/test/lib/python3.6/site-packages/lume/src/infrastructure/services/executor/popen_executor_service.py", line 24,
in execute
    output = process.stdout.readline()
@fgsalomon fgsalomon added the bug Something isn't working label Nov 7, 2020
@acostapazo
Copy link
Contributor

acostapazo commented Nov 11, 2020

I've just checked on macos and it works as expected. We have to reproduce it on linux...

Anyway, use a password-required command (manual typing) seems to be problematic in order to automate a continuous integration procedure, for instance.

Maybe, we should try to incorporate this kind of automations: https://stackoverflow.com/questions/233217/how-to-pass-the-password-to-su-sudo-ssh-without-overriding-the-tty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working linux
Projects
None yet
Development

No branches or pull requests

2 participants