Description
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'
Activity
sindresorhus commentedon Jan 4, 2013
Seems like you don't have permission to the Python folder. Try
sudo chown -R $USER /Library/Python/2.7
greenmang0 commentedon Jan 4, 2013
Yeah, but is there any other way? I don't think it's good to change ownership of a folder which is available systemwide. There is a possibility that other apps might misbehave.
greenmang0 commentedon Jan 5, 2013
sudo chown -R $USER /Library/Python/2.7/site-packages/pync
did the trick.Lisa-V-Sau commentedon Aug 18, 2015
Hi
Please can someone help - I am also getting the same error:
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-7.1.0-py2.7.egg/pip/basecommand.py", line 223, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-7.1.0-py2.7.egg/pip/commands/install.py", line 299, in run
root=options.root_path,
File "/Library/Python/2.7/site-packages/pip-7.1.0-py2.7.egg/pip/req/req_set.py", line 646, in install
**kwargs
File "/Library/Python/2.7/site-packages/pip-7.1.0-py2.7.egg/pip/req/req_install.py", line 813, in install
self.move_wheel_files(self.source_dir, root=root)
File "/Library/Python/2.7/site-packages/pip-7.1.0-py2.7.egg/pip/req/req_install.py", line 1008, in move_wheel_files
isolated=self.isolated,
File "/Library/Python/2.7/site-packages/pip-7.1.0-py2.7.egg/pip/wheel.py", line 339, in move_wheel_files
clobber(source, lib_dir, True)
File "/Library/Python/2.7/site-packages/pip-7.1.0-py2.7.egg/pip/wheel.py", line 310, in clobber
ensure_dir(destdir)
File "/Library/Python/2.7/site-packages/pip-7.1.0-py2.7.egg/pip/utils/init.py", line 70, in ensure_dir
os.makedirs(path)
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/selenium'
I've also tried: sudo chown -R $USER /Library/Python/2.7/site-packages/pync but don't think it has fixed it. I am now getting this: /Library/Python/2.7/site-packages/pync: No such file or directory
thiagopnts commentedon Aug 18, 2015
Looks like you don't have
pync
installed, can you try:sudo pip install pync
then you run the chown
Lisa-V-Sau commentedon Aug 18, 2015
Its fixed, thanks!
rafaelcamargo commentedon Oct 30, 2015
Thanks from here too!
HeidiW commentedon Apr 15, 2016
Thanks x3!!
MissSharp commentedon Apr 18, 2016
@sindresorhus how can I restore from 'sudo chown -R $USER /Library/Python/2.7' ? thanks
avneechadha commentedon Apr 29, 2016
Hi!
Can any one help?
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip/commands/uninstall.py", line 76, in run
requirement_set.uninstall(auto_confirm=options.yes)
File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 326, in uninstall
req.uninstall(auto_confirm=auto_confirm)
File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 746, in uninstall
paths_to_remove.remove(auto_confirm)
File "/Library/Python/2.7/site-packages/pip/req/req_uninstall.py", line 115, in remove
renames(path, new_path)
File "/Library/Python/2.7/site-packages/pip/utils/init.py", line 267, in renames
shutil.move(old, new)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 303, in move
os.unlink(src)
OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/IPython/init.py'
thiagopnts commentedon Apr 30, 2016
@Avnikaur it seems to be a permissions error, can you try to run the command again with
sudo
?shreyamittal17 commentedon May 16, 2016
OSError: [Errno 13] Permission denied: '/usr/Python2.7/os.py'
Can anyone help with this ?
Thankyou in advance
thiagopnts commentedon May 19, 2016
@shreyamittal17 you get this error when you run
pip install pync
?15 remaining items