Bug 2183378 - python-colcon-notification uses the deprecated pkg_resources
Summary: python-colcon-notification uses the deprecated pkg_resources
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-colcon-notification
Version: 39
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Scott K Logan
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2144132
TreeView+ depends on / blocked
 
Reported: 2023-03-31 00:11 UTC by Charalampos Stratakis
Modified: 2024-02-01 19:34 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-02-01 19:34:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Charalampos Stratakis 2023-03-31 00:11:07 UTC
python-colcon-notification fails to build with the latest setuptools version.

This report is automated and not very verbose, but we'll try to get back here with details.

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/cstratak/setuptools-67.5.1/fedora-rawhide-x86_64/05722709-python-colcon-notification/

For all our attempts to build python-colcon-notification with the latest setuptools, see:
https://copr.fedorainfracloud.org/coprs/cstratak/setuptools-67.5.1/package/python-colcon-notification/

Let us know here if you have any questions.

Comment 2 Charalampos Stratakis 2023-04-19 13:54:05 UTC
The actual error:


==================================== ERRORS ====================================
______________ ERROR collecting test/test_status_event_handler.py ______________
test/test_status_event_handler.py:12: in <module>
    from colcon_core.executor import Job
<frozen importlib._bootstrap>:1178: in _find_and_load
    ???
<frozen importlib._bootstrap>:1149: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/usr/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:168: in exec_module
    exec(co, module.__dict__)
/usr/lib/python3.11/site-packages/colcon_core/executor/__init__.py:17: in <module>
    from colcon_core.event_reactor import create_event_reactor
<frozen importlib._bootstrap>:1178: in _find_and_load
    ???
<frozen importlib._bootstrap>:1149: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/usr/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:168: in exec_module
    exec(co, module.__dict__)
/usr/lib/python3.11/site-packages/colcon_core/event_reactor.py:11: in <module>
    from colcon_core.event_handler import apply_event_handler_arguments
<frozen importlib._bootstrap>:1178: in _find_and_load
    ???
<frozen importlib._bootstrap>:1149: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/usr/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:168: in exec_module
    exec(co, module.__dict__)
/usr/lib/python3.11/site-packages/colcon_core/event_handler/__init__.py:4: in <module>
    from colcon_core.plugin_system import get_first_line_doc
<frozen importlib._bootstrap>:1178: in _find_and_load
    ???
<frozen importlib._bootstrap>:1149: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/usr/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:168: in exec_module
    exec(co, module.__dict__)
/usr/lib/python3.11/site-packages/colcon_core/plugin_system.py:7: in <module>
    from colcon_core.entry_point import load_entry_points
<frozen importlib._bootstrap>:1178: in _find_and_load
    ???
<frozen importlib._bootstrap>:1149: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/usr/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:168: in exec_module
    exec(co, module.__dict__)
/usr/lib/python3.11/site-packages/colcon_core/entry_point.py:12: in <module>
    from pkg_resources import iter_entry_points
/usr/lib/python3.11/site-packages/pkg_resources/__init__.py:121: in <module>
    warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)
E   DeprecationWarning: pkg_resources is deprecated as an API
=========================== short test summary info ============================
ERROR test/test_status_event_handler.py - DeprecationWarning: pkg_resources i...
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.20s ===============================

Comment 3 Charalampos Stratakis 2023-04-19 13:55:03 UTC
I've pushed the workaround.

Keeping this bug open, as while this has been worked around and the package will not fail to build, the issue is still there.

Comment 4 Fedora Release Engineering 2023-08-16 07:12:46 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 5 Scott K Logan 2024-02-01 19:34:22 UTC
Ah I missed this ticket, but this issue was resolved by an update to colcon-core. Thanks!


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