PyCortexMDebug
PyCortexMDebug copied to clipboard
Windows 10: No module named 'pkg_resources'
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'
I think pkg_resources is part of the setuptools package. Try installing that.
Thank you, turns out I have to make gdb to load .gdbinit to make python of gdb to load environments of host PC.