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

Permission denied error (Unable to create parsetab.py) #1

Closed
tobia opened this issue Jun 28, 2011 · 4 comments
Closed

Permission denied error (Unable to create parsetab.py) #1

tobia opened this issue Jun 28, 2011 · 4 comments
Assignees

Comments

@tobia
Copy link

tobia commented Jun 28, 2011

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.

@ghost ghost assigned epilanthanomai Jun 28, 2011
@epilanthanomai
Copy link

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.

@rlskoeser
Copy link
Contributor

I think this was fixed long ago and we just never closed the issue. Looking into confirming that the error isn't happening anymore.

@kwbock
Copy link

kwbock commented Jan 28, 2013

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'

@ghost ghost assigned rlskoeser Jan 28, 2013
@rlskoeser
Copy link
Contributor

Fixed in c02ed76

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

4 participants