[Buildroot] [PATCH v2 1/1] utils/genrandconfig: switch to async/await format
Peter Korsgaard
peter at korsgaard.com
Sat Jun 8 16:52:11 UTC 2024
>>>>> "James" == James Hilliard <james.hilliard1 at gmail.com> writes:
> This requires python 3.5 or newer but is a bit cleaner than the
> previous coroutine method.
> This should also fix a python3.12 issue:
> [Tue, 28 May 2024 13:09:05] INFO: generate the configuration
> Traceback (most recent call last):
> File "/home/autobuild/autobuild/instance-0/buildroot/utils/genrandconfig", line 833, in <module>
> ret = asyncio.run(gen_config(args))
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
> return runner.run(main)
> ^^^^^^^^^^^^^^^^
> File "/usr/lib/python3.12/asyncio/runners.py", line 89, in run
> raise ValueError("a coroutine was expected, got {!r}".format(coro))
> ValueError: a coroutine was expected, got <generator object gen_config at 0xffff7bd822c0>
> [Tue, 28 May 2024 13:09:06] WARN: failed to generate configuration
> Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
> ---
> Changes v1 -> v2:
> - rebase
> - update commit message with python 3.12 fix info
Committed to 2024.02.x, thanks.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list