nboley/grit

Run fails with python warning

Opened this issue · 2 comments

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.

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

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