weechat-notification-center: Permission denied: '/Library/Python/2.7/site-packages/pync/vendor'

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'

About this issue

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

Most upvoted comments

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

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.

sudo chown -R $USER /Library/Python/2.7/site-packages/pync did the trick.

@thiagopnts Yes Iam installing something else and stumbled upon a similar issue mentioned here hence I popped up my issue. Btw it’s solved the geopy version mentioned in requirements.txt was wrong! Thanks for helping though.