PyCortexMDebug icon indicating copy to clipboard operation
PyCortexMDebug copied to clipboard

Windows 10: No module named 'pkg_resources'

Open LeoSunTL opened this issue 10 months ago • 1 comments

Using this project on Windows 10 with Python 3.12.3

When source svd scripts, report errors:

(gdb) source PyCortexMDebug/cmdebug/svd_gdb.py
Traceback (most recent call last):
  File "c:\users\403283\scoop\apps\xpack-gcc-arm-none-eabi\current\arm-none-eabi\share\gdb/python\gdb\__init__.py", line 147, in _execute_file
    exec(compiled, globals, globals)
  File "PyCortexMDebug/cmdebug/svd_gdb.py", line 23, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

LeoSunTL avatar Apr 22 '24 05:04 LeoSunTL

I think pkg_resources is part of the setuptools package. Try installing that.

bnahill avatar Apr 28 '24 01:04 bnahill

Thank you, turns out I have to make gdb to load .gdbinit to make python of gdb to load environments of host PC.

LeoSunTL avatar Apr 28 '24 02:04 LeoSunTL