-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
[CentOS7 + Python 2.7]: python::virtualenv fails #365
Comments
Can we have an option to disable the hard-coded Should be able to reproduce this by doing
|
OK, I see that I can override this behavior by specifying |
@tprestegard can you create a PR that updates the README.md? |
The creation of new virtualenvs fails with:
Error: true && virtualenv --no-site-packages -p python /opt/privacyidea && /opt/privacyidea/bin/pip wheel --help > /dev/null 2>&1 && { /opt/privacyidea/bin/pip wheel --version > /dev/null 2>&1 || wheel_support_flag='--no-use-wheel'; } ; { /opt/privacyidea/bin/pip --log /opt/privacyidea/pip.log install $wheel_support_flag --upgrade pip distribute || /opt/privacyidea/bin/pip --log /opt/privacyidea/pip.log install --upgrade pip distribute ;} returned 1 instead of one of [0]
Error: /Stage[main]/Projects::Privacyidea::Install/Python::Virtualenv[/opt/privacyidea]/Exec[python_virtualenv_/opt/privacyidea]/returns: change from notrun to 0 failed: true && virtualenv --no-site-packages -p python /opt/privacyidea && /opt/privacyidea/bin/pip wheel --help > /dev/null 2>&1 && { /opt/privacyidea/bin/pip wheel --version > /dev/null 2>&1 || wheel_support_flag='--no-use-wheel'; } ; { /opt/privacyidea/bin/pip --log /opt/privacyidea/pip.log install $wheel_support_flag --upgrade pip distribute || /opt/privacyidea/bin/pip --log /opt/privacyidea/pip.log install --upgrade pip distribute ;} returned 1 instead of one of [0]
The puppet code looks like this:
class { 'python' :
version => 'system',
pip => 'present',
dev => 'present',
virtualenv => 'present',
gunicorn => 'absent',
use_epel => false,
}
python::virtualenv { '/opt/privacyidea':
ensure => present,
version => 'system',
owner => 'root',
group => 'root',
cwd => '/opt/privacyidea',
}
Maybe this is in relation with #309. Actually we can not use the python::virtualenv class because of this error. Let me know if you need further information.
The text was updated successfully, but these errors were encountered: