python - Creating a new virtualenv gives a permissions error -


i'm getting following output when running virtualenv newvenv.

traceback (most recent call last):   file "/usr/local/bin/virtualenv", line 5, in <module>     pkg_resources import load_entry_point   file "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2727, in <module>     add_activation_listener(lambda dist: dist.activate())   file "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 700, in subscribe     callback(dist)   file "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2727, in <lambda>     add_activation_listener(lambda dist: dist.activate())   file "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2227, in activate     self.insert_on(path)   file "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2334, in insert_on     self.check_version_conflict()   file "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2373, in check_version_conflict     modname in self._get_metadata('top_level.txt'):   file "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2221, in _get_metadata     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: [errno 13] permission denied: '/usr/local/lib/python2.7/dist-packages/stevedore-1.5.0.egg-info/top_level.txt' 

i haven't made virtualenvs in while, last time did, there no permissions issue. virtualenv up-to-date. while go messing around permissions in specified file in trace, i'd rather not. has else run similar issues virtualenv, , if so, how did solve them?

edit

the error comes when trying make virtualenv in ~/venvs (ubuntu 12.04), same place before problem starting occurring, there's no mounting problem.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

javascript - cocos2d-js draw circle not instantly -