Closed tobia closed 11 years ago
Thanks for the issue report! We hadn't noticed the problem because we use the library under virtualenv, where the app's user has permissions to write the file. You don't have to use it our way, though: As you describe, it works correctly (though with the annoying error message) even when installed as root.
We'll look into how to stop ply from trying to regenerate this file every time.
I think this was fixed long ago and we just never closed the issue. Looking into confirming that the error isn't happening anymore.
This still seems to be broken. I followed the following procedure to duplicate
sudo pip install eulxml
After it was installed i ran
python -c "import eulxml.xpath"
Unable to create '/Library/Python/2.7/site-packages/eulxml/xpath/parsetab.py'
[Errno 13] Permission denied: '/Library/Python/2.7/site-packages/eulxml/xpath/parsetab.py'
Fixed in c02ed76
I installed eulxml-0.15.3 on the latest Debian stable (6.0.1) by issuing:
./setup.py build sudo ./setup.py install
This installed a bunch of stuff into
/usr/local/lib/python2.6/dist-packages/eulxml-0.15.3-py2.6.egg/
, precompiling.pyc
files and giving everything root ownership.Now, whenever I use eulxml in my Django projects, I get this error in my log files / console output:
Unable to create '/usr/local/lib/python2.6/dist-packages/eulxml-0.15.3-py2.6.egg/eulxml/xpath/parsetab.py' [Errno 13] Permission denied: '/usr/local/lib/python2.6/dist-packages/eulxml-0.15.3-py2.6.egg/eulxml/xpath/parsetab.py'
Everything works fine all the same, but the error is annoying.