[Buildroot] Missing select package/python-can

Dan Ambrosio dambrosio at outrider.ai
Fri Mar 17 02:06:30 UTC 2023


Hello,
I just recently upgraded Buildroot from 2022.02 to 2023.02 and believe
there is a missing select on BR2_PACKAGE_PYTHON_SETUPTOOLS in the
python-can package.

The version of python-can for 2023.02 is 4.1.0 and the Config.in does
not have a select on BR2_PACKAGE_PYTHON_SETUPTOOLS even though the
setup.py on tag v4.1.0 contains a install_requires on setuptools. See
https://github.com/hardbyte/python-can/blob/v4.1.0/setup.py#L92.

------------
config BR2_PACKAGE_PYTHON_CAN
bool "python-can"
select BR2_PACKAGE_PYTHON3_SQLITE # runtime
select BR2_PACKAGE_PYTHON_AENUM # runtime
select BR2_PACKAGE_PYTHON_MSGPACK # runtime
select BR2_PACKAGE_PYTHON_PACKAGING # runtime
select BR2_PACKAGE_PYTHON_TYPING_EXTENSIONS # runtime
select BR2_PACKAGE_PYTHON_WRAPT # runtime
select BR2_PACKAGE_PYTHON3_ZLIB
help
  This module provides controller area network support for
  Python.

  https://github.com/hardbyte/python-can
------------

The missing dependency presents itself at runtime as the following error:
------------
Mar 16 22:22:12 :     import can
Mar 16 22:22:12 :   File
"/usr/lib/python3.11/site-packages/can/__init__.py", line 38, in
<module>
Mar 16 22:22:12 :   File
"/usr/lib/python3.11/site-packages/can/io/__init__.py", line 7, in
<module>
Mar 16 22:22:12 :   File
"/usr/lib/python3.11/site-packages/can/io/logger.py", line 15, in
<module>
Mar 16 22:22:12 : ModuleNotFoundError: No module named 'pkg_resources'
------------

FWIW, Buildroot version 2022.02 has the expected
BR2_PACKAGE_PYTHON_SETUPTOOLS select in the python-can Config.in file.

Appreciate the help,
Dan



More information about the buildroot mailing list