Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flake8: DeprecationWarning: SelectableGroups dict interface is deprecated. #867

Closed
fujitatomoya opened this issue Nov 1, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@fujitatomoya
Copy link
Collaborator

Bug report

Required Info:

  • Operating System:
    • Ubuntu 22.04
  • Installation type:
    • source build
  • Version or commit hash:
  • DDS implementation:
    • Any
  • Client library (if applicable):
    • rclpy

Steps to reproduce issue

root@tomoyafujita:~/ros2_ws/colcon_ws# colcon test --event-handlers console_direct+ --packages-select ros2component
Starting >>> ros2component
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
cachedir: /root/ros2_ws/colcon_ws/build/ros2component/.pytest_cache
rootdir: /root/ros2_ws/colcon_ws/src/ros2/ros2cli, configfile: pytest.ini
plugins: ament-xmllint-0.16.0, ament-copyright-0.16.0, ament-pep257-0.16.0, ament-flake8-0.16.0, ament-lint-0.16.0, rerunfailures-10.2, cov-3.0.0, mock-3.6.1, repeat-0.9.1, colcon-core-0.15.0, timeout-2.1.0
timeout: 900.0s
timeout method: thread
timeout func_only: False
collecting ...                              
collected 6 items                                                              

test/test_api.py ..                                                      [ 33%]
test/test_copyright.py .                                                 [ 50%]
test/test_flake8.py .                                                    [ 66%]
test/test_pep257.py .                                                    [ 83%]
test/test_xmllint.py .                                                   [100%]
-- generated xml file: /root/ros2_ws/colcon_ws/build/ros2component/pytest.xml --

=============================== warnings summary ===============================
ros2component/test/test_flake8.py::test_flake8
ros2component/test/test_flake8.py::test_flake8
  /usr/lib/python3/dist-packages/flake8/plugins/manager.py:261: DeprecationWarning: SelectableGroups dict interface is deprecated. Use select.
    eps = importlib_metadata.entry_points().get(self.namespace, ())

-- Docs: https://docs.pytest.org/en/stable/warnings.html
======================== 6 passed, 2 warnings in 1.50s =========================
--- stderr: ros2component                   

=============================== warnings summary ===============================
ros2component/test/test_flake8.py::test_flake8
ros2component/test/test_flake8.py::test_flake8
  /usr/lib/python3/dist-packages/flake8/plugins/manager.py:261: DeprecationWarning: SelectableGroups dict interface is deprecated. Use select.
    eps = importlib_metadata.entry_points().get(self.namespace, ())

-- Docs: https://docs.pytest.org/en/stable/warnings.html
---
Finished <<< ros2component [2.18s]

Summary: 1 package finished [3.07s]
  1 package had stderr output: ros2component

Expected behavior

No warning messages.

Actual behavior

/usr/lib/python3/dist-packages/flake8/plugins/manager.py:261: DeprecationWarning: SelectableGroups dict interface is deprecated.

Additional information

https://bugs.launchpad.net/ubuntu/+source/python-flake8/+bug/1968072

@fujitatomoya fujitatomoya self-assigned this Nov 1, 2023
@fujitatomoya fujitatomoya added the enhancement New feature or request label Nov 1, 2023
fujitatomoya added a commit that referenced this issue Nov 1, 2023
…ated.

  Ref: #867

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
fujitatomoya added a commit that referenced this issue Nov 3, 2023
#868)

  Ref: #867

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Co-authored-by: Chen Lihui <lihui.chen@sony.com>
Co-authored-by: Chris Lalancette <clalancette@gmail.com>
@fujitatomoya
Copy link
Collaborator Author

closing in favor of #868

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant