I am trying to generate a Buildroot package for a Python package available from https://pypi.org/ using utils/scanpypi
tool.
utils/scanpypi loguru black -o package/
But this is giving an error:
Traceback (most recent call last):
File "utils/scanpypi", line 743, in <module>
main()
File "utils/scanpypi", line 691, in main
package.load_setup()
File "utils/scanpypi", line 299, in load_setup
s_file, s_path, s_desc = imp.find_module('setup', [self.tmp_extract])
File "/usr/lib/python3.8/imp.py", line 296, in find_module
raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named 'setup'
I have installed python3-setuptools
and pip3 install setuptools
on my host (Ubuntu 20.04). Still the same error.
Python version: 3.10.12
Pip3 version: 23.2.1
Can anyone please let me know what is the issue here and how to resolve it?
Thanks in advance.