Closed anthrax-0 closed 3 years ago
Sorry for the comments spamming. It seems https://github.com/pyocd/pyocd-pemicro/blob/main/pyocd_pemicro/pemicro_probe.py#L107 should actually be if cls.NO_LIBRARY_ERR in str(exc):
Thanks for the report! I'll pin the version of pypemicro so this can't happen again.
I have also encountered this problem, reported here https://github.com/pyocd/pyOCD/pull/1154. Will try the pyocd-pemicro
master and report back :-)
Update: I can confirm this is fixed in the master. I now have problem with OS detection, will report in a separate issue :-)
As pypemicro package has removed the message field in the latest version 0.1.6, the current version of pyocd-pemicro can't catch specific exceptions and being now installed by default it always fails pyocd on the system without libraries @flit :
All two instances of
if cls.NO_LIBRARY_ERR not in exc.message:
has to be replaced. For example,if cls.NO_LIBRARY_ERR not in str(exc):
seems to work.