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

Run fails with python warning #2

Open
passdan opened this issue May 11, 2015 · 2 comments
Open

Run fails with python warning #2

passdan opened this issue May 11, 2015 · 2 comments

Comments

@passdan
Copy link

passdan commented May 11, 2015

I found my runs always failing with this warning:

/usr/lib/python2.7/dist-packages/pkg_resources.py:1049: UserWarning: /home/USER/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
  warnings.warn(msg, UserWarning)

I'm not sure why a warning would kill the run it and I haven't found the call in the script, but after modifying the folder ($ chmod g-wx,o-wx ~/.python-eggs), it completes satisfactorily.

Perhaps this could be modified to warn the user rather than terminate the process, as I can't imagine it is process breaking.

@nboley
Copy link
Owner

nboley commented May 12, 2015

Hi Daniel,

I found my runs always failing with this warning:

/usr/lib/python2.7/dist-packages/pkg_resources.py:1049: UserWarning: /home/USER/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
warnings.warn(msg, UserWarning)

I'm not sure why a warning would kill the run it and I haven't found the
call in the script, but after modifying the folder ($ chmod g-wx,o-wx
~/.python-eggs), it completes satisfactorily.

Perhaps this could be modified to warn the user rather than terminate the
process, as I can't imagine it is process breaking.

From what I can tell that's a problem with the permissions on that machine

  • my setup.py doesn't touch that directly. I could be wrong, but as of now
    I don't know how I could fix this from my end.

Best, Nathan

@sanyog92
Copy link

Looks like this is a problem with your Python enviroment configuration on your Linux distribution.

Run this command in your Linux environment, will solve your problem

Try the following command to fix it:

chmod g-wx,o-wx ~/.python-eggs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants