Traceback (most recent call last):


 "./flash_test.py", line 109, in run

result = self.test_function(board.unique_id)


 "./flash_test.py", line 121, in flash_test

with ConnectHelper.session_with_chosen_probe(board_id=board_id, **get_session_options()) as session:


 "/home/osboxes/stage/pyOCD/pyocd/core/helpers.py", line 199, in session_with_chosen_probe

session.open()


 "/home/osboxes/stage/pyOCD/pyocd/core/session.py", line 281, in open

self._board.init()


 "/home/osboxes/stage/pyOCD/pyocd/board/board.py", line 66, in init

self.target.init()


 "/home/osboxes/stage/pyOCD/pyocd/core/coresight_target.py", line 152, in init

seq.invoke()


 "/home/osboxes/stage/pyOCD/pyocd/utility/sequencer.py", line 189, in invoke

resultSequence = call()


 "/home/osboxes/stage/pyOCD/pyocd/coresight/dap.py", line 98, in init

self.link.connect()


 "/home/osboxes/stage/pyOCD/pyocd/probe/stlink_probe.py", line 90, in connect

self._link.enter_debug(STLink.Protocol.SWD)


 "/home/osboxes/stage/pyOCD/pyocd/probe/stlink/stlink.py", line 215, in enter_debug

self._check_status(response)


 "/home/osboxes/stage/pyOCD/pyocd/probe/stlink/stlink.py", line 251, in _check_status

raise self._ERROR_CLASSES[status](error_message)
pyocd.core.exceptions.TransferTimeoutError: STLink error (20): DP wait

Traceback (most recent call last):


 "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main

status = self.run(options, args)


 "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 335, in run

wb.build(autobuilding=True)


 "/usr/lib/python2.7/site-packages/pip/wheel.py", line 749, in build

self.requirement_set.prepare_files(self.finder)


 "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepare_files

ignore_dependencies=self.ignore_dependencies))


 "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 634, in _prepare_file

abstract_dist.prep_for_dist()


 "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 129, in prep_for_dist

self.req_to_install.run_egg_info()


 "/usr/lib/python2.7/site-packages/pip/req/req_install.py", line 412, in run_egg_info

self.setup_py, self.name,


 "/usr/lib/python2.7/site-packages/pip/req/req_install.py", line 387, in setup_py

import setuptools
# noqa


 "/usr/lib/python2.7/site-packages/setuptools/__init__.py", line 12, in <module>

import setuptools.version


 "/usr/lib/python2.7/site-packages/setuptools/version.py", line 1, in <module>

import pkg_resources


 "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 72, in <module>

import packaging.requirements


 "/usr/lib/python2.7/site-packages/packaging/requirements.py", line 59, in <module>

MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
TypeError: __call__() takes exactly 2 arguments (1 given)
