binghan 发表于 2014-5-5 09:56:09

运行 flexget --test 报错,求解

运行命令:
pi@raspberrypi ~ $ flexget --test

出现下面情况,用sudo 就没问题,请问怎么回事?

Traceback (most recent call last):
File "/usr/local/bin/flexget", line 5, in <module>
    from pkg_resources import load_entry_point
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in <module>
    working_set.require(__requires__)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require
    needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 589, in resolve
    requirements.extend(dist.requires(req.extras)[::-1])
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2207, in requires
    dm = self._dep_map
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2199, in _dep_map
    for extra,reqs in split_sections(self._get_metadata(name)):
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2663, in split_sections
    for line in yield_lines(s):
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1891, in yield_lines
    for ss in strs:
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2221, in _get_metadata
    for line in self.get_metadata_lines(name):
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1209, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1201, in get_metadata
    return self._get(self._fn(self.egg_info,name))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1316, in _get
    stream = open(path, 'rb')
IOError: Permission denied: '/usr/local/lib/python2.7/dist-packages/FlexGet-1.2.egg-info/requires.txt'
pi@raspberrypi ~ $


页: [1]
查看完整版本: 运行 flexget --test 报错,求解