AnsweredAssumed Answered

pyOCD Debug Launch error

Question asked by Jay Aurabind on Aug 13, 2016
Latest reply on Aug 19, 2016 by Jay Aurabind

Hi,

 

I have KDS 3.2.0 installed along with GNU ARM Eclipse Plugin on Linux (Fedora 24). I am getting an error when trying to debug the application through the USB with the dock.:

 

Traceback (most recent call last):   File "/usr/bin/pyocd-gdbserver", line 5, in <module>     from pkg_resources import load_entry_point   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2927, in <module>     @_call_aside   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2913, in _call_aside     f(*args, **kwargs)   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2952, in _initialize_master_working_set     add_activation_listener(lambda dist: dist.activate())   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 956, in subscribe     callback(dist)   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2952, in <lambda>     add_activation_listener(lambda dist: dist.activate())   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2513, in activate     for pkg in self._get_metadata('namespace_packages.txt'):   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2503, in _get_metadata     for line in self.get_metadata_lines(name):   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1477, in get_metadata_lines     return yield_lines(self.get_metadata(name))   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1469, in get_metadata     return self._get(self._fn(self.egg_info, name))   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1580, in _get     with open(path, 'rb') as stream: IOError: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/protobuf-3.0.0b3-py2.7.egg/EGG-INFO/namespace_packages.txt'

 

I have pyOCD installed from the latest git, and available as /usr/bin/pyocd-gdbserver.

 

Please help me fix the issue.

Outcomes