Skip to content

Install in virtualenv stalls on sudo prompt #1292

@ocervell

Description

@ocervell

When running python3 setup.py develop inside a virtualenv, the install never finishes. It waits for a sudo prompt and doesn't accept the password as stdin.

The error is due to the post install script scripts/install.sh trying to run a sudo check:

if [ ! "$(uname)" == "Darwin" ]; then
    check_sudo > /dev/null
fi

proxy_setup
make post-install

If I uncomment this line, the install proceeds normally.

Last logs seen:

Requirement already satisfied: black==18.4a3 in ./.venv/lib/python3.11/site-packages (18.4a3)
Requirement already satisfied: click in ./.venv/lib/python3.11/site-packages (from black==18.4a3) (8.1.7)
Requirement already satisfied: attrs>=17.4.0 in ./.venv/lib/python3.11/site-packages (from black==18.4a3) (24.2.0)
Requirement already satisfied: appdirs in ./.venv/lib/python3.11/site-packages (from black==18.4a3) (1.4.4)
pre-commit installed at /home/osboxes/Workspace/owtf/.git/hooks/pre-commit
  installed package bbot 1.1.0.2124, installed using Python 3.11.2
  These apps are now globally available
    - bbot
done! ✨ 🌟 ✨
[!] Skipping copying directory conf 
[!] Skipping copying directory dictionaries 
[!] Skipping copying directory tools 
[sudo] password for <USER>: 
sudo: unable to read password: Input/output error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions