**What are you doing?** 打开编译文件`.map.view`时,无法打开报错 **Describe the bug** ```python Parse error: Command failed: PYTHONPATH="/home/xsj/.eide/bin/builder/utils/memap" python -m memap -t ARM_MICRO -d 100 "/home/xsj/Documents/Projects/MDK-ARM/build/LED/atk_f103.map" Traceback (most recent call last): File "", line 203, in _run_module_as_main File "", line 88, in _run_code File "/home/xsj/.eide/bin/builder/utils/memap/__main__.py", line 34, in from prettytable import PrettyTable, HEADER File "/home/xsj/.eide/bin/builder/utils/memap/prettytable.py", line 45, in import pkg_resources ModuleNotFoundError: No module named 'pkg_resources' ``` **To Reproduce** Steps to reproduce the behavior: 1. Go to 'output files' 2. Click on 'atk_f103.map.view' **Expected behavior** **Screenshots** If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - OS: [arch linux] - EIDE Version [3.27.2] - VSCode Version [1.131.0] **Additional context** ```bash pacman -Qo $(which python) /usr/bin/python is owned by python 3.14.6-1 pacman -Q python-setuptools python-setuptools 1:83.0.0-1 python -c "import pkg_resources;print(pkg_resources.__file__)" Traceback (most recent call last): File "<string>", line 1, in <module> import pkg_resources;print(pkg_resources.__file__) ^^^^^^^^^^^^^^^^^^^^ ModuleNotFoundError: No module named 'pkg_resources' ``` 和AI交流了一下,AI最后得出结论是:`python-setuptools 已经不再提供 pkg_resources 模块了。pkg_resources 已经被官方长期弃用,很多发行版开始将其移除`
Activity
github0null commentedon Jul 30, 2026
https://stackoverflow.com/questions/7446187/no-module-named-pkg-resources
这是兼容性变更导致的,如果你需要这个功能的话,有两个方法:
我的建议是回退 setuptools,最省事
插件后面会修复,但是短期内不会发布更新,着急的话只能自行解决
github0null commentedon Jul 30, 2026
pypa/setuptools#5174
社区也在讨论这个。(破坏兼容性是不好的决定,很多软件不可能随时跟着更新)