question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: No module named pyocd.tools.gdb_server

See original GitHub issue

I used pip install -U pyocd to upgrade my pyocd version today.

I try to run a GDB server with pyocd-gdbserver and I get the following error output:

~ $ pyocd-gdbserver
Traceback (most recent call last):
  File "/usr/local/bin/pyocd-gdbserver", line 7, in <module>
    from pyocd.tools.gdb_server import main
ImportError: No module named pyocd.tools.gdb_server

I am using pyocd version 0.13.2 and arm-none-eabi-gdb version GNU gdb (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 8.1.0.20180315-git

In order to run a pyocd-gdbserver I need to downgrade pyocd to version 0.12.x

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
flitcommented, Dec 7, 2018

This looks like it might be caused by conflicting version requirements between htrun (used by greentea) and pyOCD. I’m working on fixing these tools so they can use the latest pyOCD.

0reactions
yennstercommented, Feb 13, 2019

Issue is resolved now after I updated to the latest pyOCD pip install -U pyocd

Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named pyocd.tools.gdb_server · Issue #465 - GitHub
I try to run a GDB server with pyocd-gdbserver and I get the following error ... ImportError: No module named pyocd.tools.gdb_server #465.
Read more >
Building, Flashing and Debugging
If there is a Zephyr build directory named build in your current working directory, it is incrementally re-compiled. The same is true if...
Read more >
GDB Python support, ImportError no module named gdb
After compilation when I run gdb, I see this warning: Python Exception <type 'exceptions.ImportError'> No module named gdb: warning: Could not ...
Read more >
mbedmicro - Bountysource
I have noticed that recent pyOCD handles dependencies strictly. That causes problems when solving / developing multiple other dependencies - for instance I...
Read more >
doc/application - zephyr - OSTC
Zephyr's base directory hosts Zephyr's own source code, its kernel configuration options, and its build definitions. The files in the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found