-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hi, Im trying to run a project on a FRDM-K64F board and I get an error when trying to upload or debug it with the CMIS-DAP protocol. This is the platformio.ini file:
[env:frdm_k64f] platform = freescalekinetis board = frdm_k64f framework = mbed lib_deps = adafruit/Adafruit Motor Shield V2 Library@^1.1.3 mbed-components/[email protected]+sha.226520fc09bf br3ttb/PID@^1.2.1 upload_protocol = cmsis-dap debug_tool = cmsis-dap
And this is the error that I get:
Uploading .pio\build\frdm_k64f\firmware.bin
Collecting pyocd==0.29.0
Using cached pyocd-0.29.0-py2.py3-none-any.whl.metadata (11 kB)
Collecting cmsis-pack-manager>=0.2.7 (from pyocd==0.29.0)
Using cached cmsis_pack_manager-0.6.0-py3-none-win_amd64.whl.metadata (3.6 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)
Using cached intervaltree-3.1.0-py2.py3-none-any.whl
Collecting naturalsort<2.0,>=1.5 (from pyocd==0.29.0)
Using cached naturalsort-1.5.1.tar.gz (7.4 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 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting prettytable (from pyocd==0.29.0)
Using cached prettytable-3.17.0-py3-none-any.whl.metadata (34 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)
Using cached pylink_square-2.0.0-py3-none-any.whl.metadata (5.9 kB)
Collecting pyusb<2.0,>=1.0.0b2 (from pyocd==0.29.0)
Using cached pyusb-1.3.1-py3-none-any.whl.metadata (2.5 kB)
Collecting pyyaml<6.0,>=5.1 (from pyocd==0.29.0)
Using cached 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'
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [67 lines of output]
C:\Users\jtori\AppData\Local\Temp\pip-build-env-dw6e_eui\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\jtori\.platformio\penv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
main()
File "C:\Users\jtori\.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\jtori\.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\jtori\AppData\Local\Temp\pip-build-env-dw6e_eui\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\jtori\AppData\Local\Temp\pip-build-env-dw6e_eui\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires
self.run_setup()
File "C:\Users\jtori\AppData\Local\Temp\pip-build-env-dw6e_eui\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\jtori\AppData\Local\Temp\pip-build-env-dw6e_eui\overlay\Lib\site-packages\setuptools\__init__.py", line 115, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jtori\AppData\Local\Temp\pip-build-env-dw6e_eui\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 186, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "C:\Users\jtori\AppData\Local\Temp\pip-build-env-dw6e_eui\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 202, in run_commands
dist.run_commands()
File "C:\Users\jtori\AppData\Local\Temp\pip-build-env-dw6e_eui\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 1002, in run_commands
self.run_command(cmd)
File "C:\Users\jtori\AppData\Local\Temp\pip-build-env-dw6e_eui\overlay\Lib\site-packages\setuptools\dist.py", line 1102, in run_command
super().run_command(command)
File "C:\Users\jtori\AppData\Local\Temp\pip-build-env-dw6e_eui\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 1021, in run_command
cmd_obj.run()
File "C:\Users\jtori\AppData\Local\Temp\pip-build-env-dw6e_eui\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 312, in run
self.find_sources()
File "C:\Users\jtori\AppData\Local\Temp\pip-build-env-dw6e_eui\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 320, in find_sources
mm.run()
File "C:\Users\jtori\AppData\Local\Temp\pip-build-env-dw6e_eui\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 543, in run
self.add_defaults()
File "C:\Users\jtori\AppData\Local\Temp\pip-build-env-dw6e_eui\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 581, in add_defaults
sdist.add_defaults(self)
File "C:\Users\jtori\AppData\Local\Temp\pip-build-env-dw6e_eui\overlay\Lib\site-packages\setuptools\command\sdist.py", line 109, in add_defaults
super().add_defaults()
File "C:\Users\jtori\AppData\Local\Temp\pip-build-env-dw6e_eui\overlay\Lib\site-packages\setuptools\_distutils\command\sdist.py", line 245, in add_defaults
self._add_defaults_ext()
File "C:\Users\jtori\AppData\Local\Temp\pip-build-env-dw6e_eui\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\jtori\AppData\Local\Temp\pip-build-env-dw6e_eui\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.
ERROR: Failed to build 'pyyaml' when getting requirements to build wheel
Installing Python dependencies for pyOCD...
Error: Couldn't install dependencies for pyOCD!
*** [upload] Error 1
The error gets fixed if I switch to the mbed upload protocol, however debugging still brings up the same error.
Ive already tried installing pyOCD in the virtual environment and it finishes with no issues, but then for some reason it tries to install it again when uploading and fails with the previous error.