-
-
Notifications
You must be signed in to change notification settings - Fork 348
Description
Platformio IDE
I keep getting this result when trying to build my firmware.
I have been working on this for more than a month and now I have this issue.
OUTPUT
Resolving genericSTM32F103RC dependencies...
AttributeError: Traceback (most recent call last):
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/platformio/main.py", line 103, in main
cli() # pylint: disable=no-value-for-parameter
^^^^^
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/platformio/cli.py", line 85, in invoke
return super().invoke(ctx)
^^^^^^^^^^^^^^^^^^^
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/platformio/project/commands/init.py", line 106, in project_init_cmd
install_project_dependencies(
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/platformio/package/commands/install.py", line 107, in install_project_dependencies
already_up_to_date = not install_project_env_dependencies(env, options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/platformio/package/commands/install.py", line 132, in install_project_env_dependencies
_install_project_env_platform(project_env, options),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/platformio/package/commands/install.py", line 149, in _install_project_env_platform
PlatformPackageManager().install(
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/platformio/package/manager/platform.py", line 60, in install
p.configure_project_packages(project_env, project_targets)
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/platformio/platform/base.py", line 185, in configure_project_packages
self.configure_default_packages(options, targets or [])
File "/Users/johncoobs/.platformio/platforms/[email protected]/platform.py", line 43, in configure_default_packages
if board.startswith("portenta"):
^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'startswith'
============================================================
An unexpected error occurred. Further steps:
-
Verify that you have the latest version of PlatformIO using
python -m pip install -U platformiocommand -
Try to find answer in FAQ Troubleshooting section
https://docs.platformio.org/page/faq/index.html -
Report this problem to the developers
https://github.com/platformio/platformio-core/issues
============================================================
BUILD
- Executing task: platformio run --environment genericSTM32F103RC
Processing genericSTM32F103RC (platform: ststm32@~12.1; framework: arduino)
AttributeError: Traceback (most recent call last):
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/platformio/main.py", line 103, in main
cli() # pylint: disable=no-value-for-parameter
^^^^^
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/platformio/cli.py", line 85, in invoke
return super().invoke(ctx)
^^^^^^^^^^^^^^^^^^^
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/platformio/run/cli.py", line 145, in cli
process_env(
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/platformio/run/cli.py", line 208, in process_env
).process()
^^^^^^^^^
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/platformio/run/processor.py", line 81, in process
install_project_env_dependencies(
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/platformio/package/commands/install.py", line 132, in install_project_env_dependencies
_install_project_env_platform(project_env, options),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/platformio/package/commands/install.py", line 149, in _install_project_env_platform
PlatformPackageManager().install(
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/platformio/package/manager/platform.py", line 60, in install
p.configure_project_packages(project_env, project_targets)
File "/Users/johncoobs/.platformio/penv/lib/python3.11/site-packages/platformio/platform/base.py", line 185, in configure_project_packages
self.configure_default_packages(options, targets or [])
File "/Users/johncoobs/.platformio/platforms/[email protected]/platform.py", line 43, in configure_default_packages
if board.startswith("portenta"):
^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'startswith'
============================================================
An unexpected error occurred. Further steps:
-
Verify that you have the latest version of PlatformIO using
python -m pip install -U platformiocommand -
Try to find answer in FAQ Troubleshooting section
https://docs.platformio.org/page/faq/index.html -
Report this problem to the developers
https://github.com/platformio/platformio-core/issues
============================================================
- The terminal process "platformio 'run', '--environment', 'genericSTM32F103RC'" terminated with exit code: 1.
- Terminal will be reused by tasks, press any key to close it.