Skip to content

Permission denied: '/Library/Python/2.7/site-packages/pync/vendor' #1

Closed
@greenmang0

Description

@greenmang0

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

sindresorhus commented on Jan 4, 2013

@sindresorhus
Owner

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

greenmang0

greenmang0 commented on Jan 4, 2013

@greenmang0
Author

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

greenmang0 commented on Jan 5, 2013

@greenmang0
Author

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

Lisa-V-Sau

Lisa-V-Sau commented on Aug 18, 2015

@Lisa-V-Sau

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

thiagopnts commented on Aug 18, 2015

@thiagopnts

Looks like you don't have pync installed, can you try:
sudo pip install pync
then you run the chown

Lisa-V-Sau

Lisa-V-Sau commented on Aug 18, 2015

@Lisa-V-Sau

Its fixed, thanks!

rafaelcamargo

rafaelcamargo commented on Oct 30, 2015

@rafaelcamargo

Thanks from here too!

HeidiW

HeidiW commented on Apr 15, 2016

@HeidiW

Thanks x3!!

MissSharp

MissSharp commented on Apr 18, 2016

@MissSharp

@sindresorhus how can I restore from 'sudo chown -R $USER /Library/Python/2.7' ? thanks

avneechadha

avneechadha commented on Apr 29, 2016

@avneechadha

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

thiagopnts commented on Apr 30, 2016

@thiagopnts

@Avnikaur it seems to be a permissions error, can you try to run the command again with sudo?

shreyamittal17

shreyamittal17 commented on May 16, 2016

@shreyamittal17

OSError: [Errno 13] Permission denied: '/usr/Python2.7/os.py'

Can anyone help with this ?

Thankyou in advance

thiagopnts

thiagopnts commented on May 19, 2016

@thiagopnts

@shreyamittal17 you get this error when you run pip install pync?

15 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dblack@sindresorhus@thiagopnts@greenmang0@Lisa-V-Sau

        Issue actions

          Permission denied: '/Library/Python/2.7/site-packages/pync/vendor' · Issue #1 · sindresorhus/weechat-notification-center