Reproduction:
1. Clean PlatformIO folder (`rm -rf ~/.platformio/packages/*`)
2…. Create new project for lpc1768 with baremetal mbed config (from https://github.com/platformio/platform-nxplpc/tree/develop/examples/mbed-rtos-blink-baremetal)
3. Hit "Debug"
Output:
```
Downloading...
Unpacking...
Tool Manager: tool-pyocd@1.2900.210122 has been installed!
Collecting pyocd==0.29.0
Downloading pyocd-0.29.0-py2.py3-none-any.whl.metadata (11 kB)
Collecting cmsis-pack-manager>=0.2.7 (from pyocd==0.29.0)
Downloading cmsis_pack_manager-0.5.3-py3-none-win_amd64.whl.metadata (3.7 kB)
Collecting colorama (from pyocd==0.29.0)
Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Collecting intelhex<3.0,>=2.0 (from pyocd==0.29.0)
Using cached intelhex-2.3.0-py2.py3-none-any.whl.metadata (2.7 kB)
Collecting intervaltree<4.0,>=3.0.2 (from pyocd==0.29.0)
Downloading intervaltree-3.1.0.tar.gz (32 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting naturalsort<2.0,>=1.5 (from pyocd==0.29.0)
Downloading naturalsort-1.5.1.tar.gz (7.4 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting prettytable (from pyocd==0.29.0)
Downloading prettytable-3.16.0-py3-none-any.whl.metadata (33 kB)
Collecting pyelftools (from pyocd==0.29.0)
Using cached pyelftools-0.32-py3-none-any.whl.metadata (372 bytes)
Collecting pylink-square (from pyocd==0.29.0)
Downloading pylink_square-1.6.0-py2.py3-none-any.whl.metadata (5.8 kB)
Collecting pyusb<2.0,>=1.0.0b2 (from pyocd==0.29.0)
Downloading pyusb-1.3.1-py3-none-any.whl.metadata (2.5 kB)
Collecting pyyaml<6.0,>=5.1 (from pyocd==0.29.0)
Downloading PyYAML-5.4.1.tar.gz (175 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
undefined error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [67 lines of output]
C:\Users\Max\AppData\Local\Temp\pip-build-env-7i7y63v8\overlay\Lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: MIT License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running egg_info
writing lib3\PyYAML.egg-info\PKG-INFO
writing dependency_links to lib3\PyYAML.egg-info\dependency_links.txt
writing top-level names to lib3\PyYAML.egg-info\top_level.txt
Traceback (most recent call last):
File "C:\Users\Max\.platformio\penv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
main()
File "C:\Users\Max\.platformio\penv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Max\.platformio\penv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Max\AppData\Local\Temp\pip-build-env-7i7y63v8\overlay\Lib\site-packages\setuptools\build_meta.py", line 331, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Max\AppData\Local\Temp\pip-build-env-7i7y63v8\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires
self.run_setup()
File "C:\Users\Max\AppData\Local\Temp\pip-build-env-7i7y63v8\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup
exec(code, locals())
File "<string>", line 271, in <module>
File "C:\Users\Max\AppData\Local\Temp\pip-build-env-7i7y63v8\overlay\Lib\site-packages\setuptools\__init__.py", line 115, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Max\AppData\Local\Temp\pip-build-env-7i7y63v8\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 186, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "C:\Users\Max\AppData\Local\Temp\pip-build-env-7i7y63v8\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 202, in run_commands
dist.run_commands()
File "C:\Users\Max\AppData\Local\Temp\pip-build-env-7i7y63v8\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 1002, in run_commands
self.run_command(cmd)
File "C:\Users\Max\AppData\Local\Temp\pip-build-env-7i7y63v8\overlay\Lib\site-packages\setuptools\dist.py", line 1102, in run_command
super().run_command(command)
File "C:\Users\Max\AppData\Local\Temp\pip-build-env-7i7y63v8\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 1021, in run_command
cmd_obj.run()
File "C:\Users\Max\AppData\Local\Temp\pip-build-env-7i7y63v8\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 312, in run
self.find_sources()
File "C:\Users\Max\AppData\Local\Temp\pip-build-env-7i7y63v8\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 320, in find_sources
mm.run()
File "C:\Users\Max\AppData\Local\Temp\pip-build-env-7i7y63v8\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 543, in run
self.add_defaults()
File "C:\Users\Max\AppData\Local\Temp\pip-build-env-7i7y63v8\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 581, in add_defaults
sdist.add_defaults(self)
File "C:\Users\Max\AppData\Local\Temp\pip-build-env-7i7y63v8\overlay\Lib\site-packages\setuptools\command\sdist.py", line 109, in add_defaults
super().add_defaults()
File "C:\Users\Max\AppData\Local\Temp\pip-build-env-7i7y63v8\overlay\Lib\site-packages\setuptools\_distutils\command\sdist.py", line 245, in add_defaults
self._add_defaults_ext()
File "C:\Users\Max\AppData\Local\Temp\pip-build-env-7i7y63v8\overlay\Lib\site-packages\setuptools\_distutils\command\sdist.py", line 330, in _add_defaults_ext
self.filelist.extend(build_ext.get_source_files())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 201, in get_source_files
File "C:\Users\Max\AppData\Local\Temp\pip-build-env-7i7y63v8\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 131, in __getattr__
raise AttributeError(attr)
AttributeError: cython_sources
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
[notice] A new release of pip is available: 25.0.1 -> 25.1.1
[notice] To update, run: C:\Users\Max\.platformio\penv\Scripts\python.exe -m pip install --upgrade pip
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Error: Couldn't install dependencies for pyOCD!
Installing Python dependencies for pyOCD...
C:\Users\Max\.platformio\packages\toolchain-gccarmnoneeabi@1.90201.191206\bin\arm-none-eabi-gdb.exe: warning: Couldn't determine a path for the index cache directory.
Reading symbols from c:\Users\Max\temp\nxp_bare\.pio\build\lpc1768\firmware.elf...
PlatformIO Unified Debugger -> https://bit.ly/pio-debug
PlatformIO: debug_tool = cmsis-dap
PlatformIO: Initializing remote target...
.pioinit:13: Error in sourced command file:
:3333: Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte.
```