Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission error after installing "pyechonest" #20

Open
neomilium opened this issue Jun 14, 2013 · 0 comments
Open

Permission error after installing "pyechonest" #20

neomilium opened this issue Jun 14, 2013 · 0 comments

Comments

@neomilium
Copy link

I'm facing a permission problem while I'm using "echonest" plugin under Debian Squeeze (Python 2.6).

$ sudo pip install pyechonest
Downloading/unpacking pyechonest
Downloading pyechonest-8.0.0.tar.gz
Running setup.py egg_info for package pyechonest
Installing collected packages: pyechonest
Running setup.py install for pyechonest
Successfully installed pyechonest
Cleaning up...

$ beet imp autoKratz
Traceback (most recent call last):
File "/usr/local/bin/beet", line 5, in
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2691, in
add_activation_listener(lambda dist: dist.activate())
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 668, in subscribe
callback(dist)
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2691, in
add_activation_listener(lambda dist: dist.activate())
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2192, in activate
self.insert_on(path)
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2299, in insert_on
self.check_version_conflict()
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2338, in check_version_conflict
for modname in self._get_metadata('top_level.txt'):
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2186, in _get_metadata
for line in self.get_metadata_lines(name):
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1174, in get_metadata_lines
return yield_lines(self.get_metadata(name))
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1166, in get_metadata
return self._get(self._fn(self.egg_info,name))
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1281, in _get
stream = open(path, 'rb')
IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.6/dist-packages/pyechonest-8.0.0.egg-info/top_level.txt'

$ ls /usr/local/lib/python2.6/dist-packages/pyechonest-8.0.0.egg-info/top_level.txt -alh
-rwx------ 1 root staff 11 Jun 12 13:51 /usr/local/lib/python2.6/dist-packages/pyechonest-8.0.0.egg-info/top_level.txt

Fixed by chmoding to 664:
$ sudo chmod 664 /usr/local/lib/python2.6/dist-packages/pyechonest-8.0.0.egg-info/top_level.txt

I hope it helps :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant