Bug 1958941 - python-jinja2 fails to build with Python 3.10: DeprecationWarning: There is no current event loop (treated as error)
Summary: python-jinja2 fails to build with Python 3.10: DeprecationWarning: There is n...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-jinja2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Thomas Moschny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.10
TreeView+ depends on / blocked
 
Reported: 2021-05-10 13:07 UTC by Miro Hrončok
Modified: 2021-06-14 10:37 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-14 10:37:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2021-05-10 13:07:49 UTC
python-jinja2 fails to build with Python 3.10.0b1:

...
>       loop = asyncio.get_event_loop()
E       DeprecationWarning: There is no current event loop
src/jinja2/asyncsupport.py:72: DeprecationWarning
...
FAILED tests/test_async.py::test_basic_async - DeprecationWarning: There is n...
FAILED tests/test_async.py::test_await_on_calls - DeprecationWarning: There i...
FAILED tests/test_async.py::test_await_on_calls_normal_render - DeprecationWa...
FAILED tests/test_async.py::test_await_and_macros - DeprecationWarning: There...
FAILED tests/test_async.py::test_async_blocks - DeprecationWarning: There is ...
FAILED tests/test_async.py::test_async_generate - DeprecationWarning: There i...
FAILED tests/test_async.py::test_async_iteration_in_templates - DeprecationWa...
FAILED tests/test_async.py::test_async_iteration_in_templates_extended - Depr...
FAILED tests/test_async.py::TestAsyncImports::test_context_imports - Deprecat...
FAILED tests/test_async.py::TestAsyncImports::test_exports - DeprecationWarni...
FAILED tests/test_async.py::TestAsyncIncludes::test_context_include - Depreca...
FAILED tests/test_async.py::TestAsyncIncludes::test_choice_includes - Depreca...
FAILED tests/test_async.py::TestAsyncIncludes::test_include_ignoring_missing
FAILED tests/test_async.py::TestAsyncIncludes::test_unoptimized_scopes - Depr...
FAILED tests/test_async.py::TestAsyncIncludes::test_unoptimized_scopes_autoescape
FAILED tests/test_async.py::TestAsyncForLoop::test_simple - DeprecationWarnin...
FAILED tests/test_async.py::TestAsyncForLoop::test_else - DeprecationWarning:...
FAILED tests/test_async.py::TestAsyncForLoop::test_empty_blocks - Deprecation...
FAILED tests/test_async.py::TestAsyncForLoop::test_context_vars[<lambda>0] - ...
FAILED tests/test_async.py::TestAsyncForLoop::test_context_vars[iter] - Depre...
FAILED tests/test_async.py::TestAsyncForLoop::test_context_vars[reversed] - D...
FAILED tests/test_async.py::TestAsyncForLoop::test_context_vars[<lambda>1] - ...
FAILED tests/test_async.py::TestAsyncForLoop::test_context_vars[auto_aiter]
FAILED tests/test_async.py::TestAsyncForLoop::test_cycling - DeprecationWarni...
FAILED tests/test_async.py::TestAsyncForLoop::test_lookaround - DeprecationWa...
FAILED tests/test_async.py::TestAsyncForLoop::test_changed - DeprecationWarni...
FAILED tests/test_async.py::TestAsyncForLoop::test_scope - DeprecationWarning...
FAILED tests/test_async.py::TestAsyncForLoop::test_varlen - DeprecationWarnin...
FAILED tests/test_async.py::TestAsyncForLoop::test_noniter - DeprecationWarni...
FAILED tests/test_async.py::TestAsyncForLoop::test_recursive - DeprecationWar...
FAILED tests/test_async.py::TestAsyncForLoop::test_recursive_lookaround - Dep...
FAILED tests/test_async.py::TestAsyncForLoop::test_recursive_depth0 - Depreca...
FAILED tests/test_async.py::TestAsyncForLoop::test_recursive_depth - Deprecat...
FAILED tests/test_async.py::TestAsyncForLoop::test_looploop - DeprecationWarn...
FAILED tests/test_async.py::TestAsyncForLoop::test_reversed_bug - Deprecation...
FAILED tests/test_async.py::TestAsyncForLoop::test_loop_errors - DeprecationW...
FAILED tests/test_async.py::TestAsyncForLoop::test_loop_filter - DeprecationW...
FAILED tests/test_async.py::TestAsyncForLoop::test_scoped_special_var - Depre...
FAILED tests/test_async.py::TestAsyncForLoop::test_scoped_loop_var - Deprecat...
FAILED tests/test_async.py::TestAsyncForLoop::test_recursive_empty_loop_iter
FAILED tests/test_async.py::TestAsyncForLoop::test_call_in_loop - Deprecation...
FAILED tests/test_async.py::TestAsyncForLoop::test_scoping_bug - DeprecationW...
FAILED tests/test_async.py::TestAsyncForLoop::test_unpacking - DeprecationWar...
FAILED tests/test_async.py::TestAsyncForLoop::test_recursive_loop_filter - De...
FAILED tests/test_async.py::TestAsyncForLoop::test_nonrecursive_loop_filter
FAILED tests/test_async.py::TestAsyncForLoop::test_bare_async - DeprecationWa...
FAILED tests/test_async.py::TestAsyncForLoop::test_awaitable_property_slicing
FAILED tests/test_async.py::test_namespace_awaitable - DeprecationWarning: Th...
FAILED tests/test_asyncfilters.py::test_first[<lambda>0] - DeprecationWarning...
FAILED tests/test_asyncfilters.py::test_first[<lambda>1] - DeprecationWarning...
FAILED tests/test_asyncfilters.py::test_groupby[<lambda>0] - DeprecationWarni...
FAILED tests/test_asyncfilters.py::test_groupby[<lambda>1] - DeprecationWarni...
FAILED tests/test_asyncfilters.py::test_groupby_tuple_index[<lambda>0] - Depr...
FAILED tests/test_asyncfilters.py::test_groupby_tuple_index[<lambda>1] - Depr...
FAILED tests/test_asyncfilters.py::test_groupby_multidot[<lambda>0] - Depreca...
FAILED tests/test_asyncfilters.py::test_groupby_multidot[<lambda>1] - Depreca...
FAILED tests/test_asyncfilters.py::test_join_env_int[<lambda>0] - Deprecation...
FAILED tests/test_asyncfilters.py::test_join_env_int[<lambda>1] - Deprecation...
FAILED tests/test_asyncfilters.py::test_join_string_list[<lambda>0] - Depreca...
FAILED tests/test_asyncfilters.py::test_join_string_list[<lambda>1] - Depreca...
FAILED tests/test_asyncfilters.py::test_join_attribute[<lambda>0] - Deprecati...
FAILED tests/test_asyncfilters.py::test_join_attribute[<lambda>1] - Deprecati...
FAILED tests/test_asyncfilters.py::test_simple_reject[<lambda>0] - Deprecatio...
FAILED tests/test_asyncfilters.py::test_simple_reject[<lambda>1] - Deprecatio...
FAILED tests/test_asyncfilters.py::test_bool_reject[<lambda>0] - DeprecationW...
FAILED tests/test_asyncfilters.py::test_bool_reject[<lambda>1] - DeprecationW...
FAILED tests/test_asyncfilters.py::test_simple_select[<lambda>0] - Deprecatio...
FAILED tests/test_asyncfilters.py::test_simple_select[<lambda>1] - Deprecatio...
FAILED tests/test_asyncfilters.py::test_bool_select[<lambda>0] - DeprecationW...
FAILED tests/test_asyncfilters.py::test_bool_select[<lambda>1] - DeprecationW...
FAILED tests/test_asyncfilters.py::test_simple_select_attr[<lambda>0] - Depre...
FAILED tests/test_asyncfilters.py::test_simple_select_attr[<lambda>1] - Depre...
FAILED tests/test_asyncfilters.py::test_simple_map[<lambda>0] - DeprecationWa...
FAILED tests/test_asyncfilters.py::test_simple_map[<lambda>1] - DeprecationWa...
FAILED tests/test_asyncfilters.py::test_map_sum - DeprecationWarning: There i...
FAILED tests/test_asyncfilters.py::test_attribute_map[<lambda>0] - Deprecatio...
FAILED tests/test_asyncfilters.py::test_attribute_map[<lambda>1] - Deprecatio...
FAILED tests/test_asyncfilters.py::test_empty_map - DeprecationWarning: There...
FAILED tests/test_asyncfilters.py::test_sum[<lambda>0] - DeprecationWarning: ...
FAILED tests/test_asyncfilters.py::test_sum[<lambda>1] - DeprecationWarning: ...
FAILED tests/test_asyncfilters.py::test_sum_attributes[<lambda>0] - Deprecati...
FAILED tests/test_asyncfilters.py::test_sum_attributes[<lambda>1] - Deprecati...
FAILED tests/test_asyncfilters.py::test_sum_attributes_nested - DeprecationWa...
FAILED tests/test_asyncfilters.py::test_sum_attributes_tuple - DeprecationWar...
FAILED tests/test_asyncfilters.py::test_slice[<lambda>0] - DeprecationWarning...
FAILED tests/test_asyncfilters.py::test_slice[<lambda>1] - DeprecationWarning...
================== 86 failed, 661 passed, 3 skipped in 4.50s ===================


https://docs.python.org/3.10/whatsnew/3.10.html#deprecated
"""
asyncio.get_event_loop() now emits a deprecation warning if there is no running event loop. In the future it will be an alias of get_running_loop(). asyncio functions which implicitly create a Future or Task objects now emit a deprecation warning if there is no running event loop and no explicit loop argument is passed: ensure_future(), wrap_future(), gather(), shield(), as_completed() and constructors of Future, Task, StreamReader, StreamReaderProtocol.
"""
https://bugs.python.org/issue39529


For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/02171283-python-jinja2/

For all our attempts to build python-jinja2 with Python 3.10, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/python-jinja2/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Miro Hrončok 2021-06-04 20:13:56 UTC
This is a mass-posted update. Sorry if it is not 100% accurate to this bugzilla.


The Python 3.10 rebuild is in progress in a Koji side tag. If you manage to fix the problem, please commit the fix in the rawhide branch, but don't build the package in regular rawhide.

You can either build the package in the side tag, with:

    $ fedpkg build --target=f35-python

Or you can the build and we will eventually build it for you.

Note that the rebuild is still in progress, so not all (build) dependencies of this package might be available right away.

Thanks.

See also https://fedoraproject.org/wiki/Changes/Python3.10

If you have general questions about the rebuild, please use this mailing list thread: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/G47SGOYIQLRDTWGOSLSWERZSSHXDEDH5/

Comment 2 Miro Hrončok 2021-06-07 22:58:38 UTC
The f35-python side tag has been merged to Rawhide. From now on, build as you would normally build.

Comment 3 Miro Hrončok 2021-06-14 10:37:07 UTC
This package was successfully rebuilt with Python 3.10.

If you need this bugzilla open for tracking purposes, sorry for the automatic closing: feel free to reopen it.


Note You need to log in before you can comment on or make changes to this bug.