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

Installing files under /etc yields SandboxViolation in virtualenv #155

Closed
atodorov opened this Issue Feb 21, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@atodorov
Contributor

atodorov commented Feb 21, 2017

In one of my environments installing a newer version of Nitrate yields:

remote: error: Setup script exited with error: SandboxViolation: open('/etc/httpd/conf.d/nitrate-httpd.conf', 'wb') {}

this is due to the change made in ff4ecc7 adding the data_files attribute to setup.py. I propose installing these files under /etc via the RPM packages, not via pip.

@atodorov

This comment has been minimized.

Contributor

atodorov commented Feb 26, 2017

@tkdchen ping? This is a real problem in virtualenv or pretty much everywhere if you don't have root access. What's your take on it?

@tkdchen

This comment has been minimized.

Member

tkdchen commented Mar 1, 2017

Should be fixed. Removing relative code from setup.py should make it work well.

@atodorov

This comment has been minimized.

Contributor

atodorov commented Mar 1, 2017

OK, sending a patch to fix setup.py shortly.

atodorov added a commit to MrSenko/Nitrate that referenced this issue Mar 1, 2017

Don't install files under /etc from setup.py. Fix Nitrate#155
reverts a change introduced in ff4ecc7. Python tarballs need not
install files under /etc. This will not work with virtualenv and
on OpenShift yields
SandboxViolation: open('/etc/httpd/conf.d/nitrate-httpd.conf', 'wb')

@tkdchen tkdchen added this to the 4.0 milestone Mar 2, 2017

atodorov added a commit to MrSenko/Nitrate that referenced this issue Mar 2, 2017

Don't install files under /etc from setup.py
reverts a change introduced in ff4ecc7. Python tarballs need not
install files under /etc. This will not work with virtualenv and
on OpenShift yields
SandboxViolation: open('/etc/httpd/conf.d/nitrate-httpd.conf', 'wb')

Fix Nitrate#155

@tkdchen tkdchen closed this in 4317dbf Mar 2, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment