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: '/Library/Python/2.7/site-packages/pync/vendor'

See original GitHub issue

I get following error when I load script.

I am running weechat latest version.

Weechat is installed through brew - brew install weechat Pync is installed through pip - sudo pip install pync

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Python/2.7/site-packages/pync/__init__.py", line 3, in <module> from TerminalNotifier import Notifier File "/Library/Python/2.7/site-packages/pync/TerminalNotifier.py", line 117, in <module> Notifier = TerminalNotifier() File "/Library/Python/2.7/site-packages/pync/TerminalNotifier.py", line 24, in __init__ self.download_app() File "/Library/Python/2.7/site-packages/pync/TerminalNotifier.py", line 46, in download_app shutil.move(os.path.join(path_to_folder, "terminal-notifier.app"), self.app_path) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 295, in move copytree(src, real_dst, symlinks=True) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 174, in copytree os.makedirs(dst) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 150, in makedirs makedirs(head, mode) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode)OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pync/vendor'

Issue Analytics

  • State:closed
  • Created 11 years ago
  • Comments:26 (1 by maintainers)

github_iconTop GitHub Comments

77reactions
sindresorhuscommented, Jan 4, 2013

Seems like you don’t have permission to the Python folder. Try sudo chown -R $USER /Library/Python/2.7

6reactions
dblackcommented, Jun 25, 2016

In case it might still help anyone (sorry if it’s just noise), I was having these permission problems a-go-go, until I ran brew doctor and it told me to consider deleting ~/.pydistutils.cfg.

I considered.

I deleted.

All was well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

1 - Stack Overflow
pip install pkg gives Permission denied: /Library/Python/2.7/site-packages/pkg ; main status = self.run(options, args) File "/Library/Python/2.7/ ...
Read more >
Error: Permission denied (publickey) - GitHub Docs
A "Permission denied" error means that the server rejected your connection. There could be several reasons why, and the most common examples are...
Read more >
Permission denied error received when performing Reconcile ...
When perform change or reconcile task, CPM produces permission denied error for non-Windows accounts. Example seen when debug log level is ...
Read more >
Permission denied errors - Spectrum Software
The permission denied error occurs when Micro-Cap is unable to perform the necessary read or write to the specified file. In most cases,...
Read more >
Troubleshoot "Permission denied (Publickey)" or ...
I'm receiving "Permission denied (publickey)" or "Authentication failed, permission denied" errors when trying to access my EC2 instance. How do ...
Read more >

github_iconTop Related Medium Post

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