question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Permission denied on requires.txt

See original GitHub issue

Seems that this file has wrong ACL in pypi.

File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1572, in _get
with open(path, 'rb') as stream:
IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/httpretty-0.9.4-py2.7.egg/EGG-INFO/requires.txt'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Sispheorcommented, Mar 10, 2020

Ok, I just notive that I use your lib for onely one test. I’ll see how o refactor and fallback on the integrated Flask test tool. Thanks anyway for your time !

0reactions
gabrielfalcaocommented, Mar 10, 2020

Hi, On our side, the user is free to install the tool in a venv or not. But I agree with you that it’s always better to use a venv when you can.

I never had the issue for other python lib so far.The lib is installed via the setup here

The full concerned path is dist-packages/httpretty-0.9.4-py2.7.egg/EGG-INFO/requires.txt. Is the requires.txt a file from your repo or something generated by the installer?

https://setuptools.readthedocs.io/en/latest/formats.html#requires-txt

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip freeze > requirements.txt - permission denied with sudo ...
I am attempting to run this command during the heroku-flask tutorial sudo pip freeze > requirements.txt.
Read more >
permissions denied on reading requires.txt · Issue #24 - GitHub
Authorization is required to access your Google Drive. Navigate to the following URL: https://<google_key_url> Type in the received code: < ...
Read more >
Permission denied when installing python requirements
I'm trying to use pip3 to install python requirements but getting “permission denied” despite using the --user option:
Read more >
local_requirements.txt Permission denied - Google Groups
You received this message because you are subscribed to the Google Groups "NetBox" group. To unsubscribe from this group and stop receiving ...
Read more >
pip freeze > requirements.txt - permission denied ... - splunktool
looks like you don't have write permission in the folder your working in. This should solve the issue. sudo sh - c 'sudo...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found