iovisor / bcc

BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more
Apache License 2.0
20.63k stars 3.89k forks source link

bcc-0.25.0 binding with python3 fails during build. #4648

Open koteswararao18 opened 1 year ago

koteswararao18 commented 1 year ago

Hi,

'make and make install' in below bcc-0.25.0 build steps is successful {{ make make install cmake -DPYTHON_CMD=python3 .. # build python3 binding .. }} But above " #build python3 binding" fails with below error. {{ ~/python3.10/site-packages/setuptools/dist.py:545: UserWarning: The version specified ('wb_7-2_0-2f003786') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details. warnings.warn( usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help

error: option --install-layout not recognized }} installed stdeb-0.10.0-2 as part of python3 but still noticed above error.

Rgds Koti

yonghong-song commented 1 year ago

Okay. This python3 thing is just an example. You may need to replace python3 with another python version. Based on my experience, typically I check python versions available at '/usr/lib/' first and that based on available python versions to check which is is available at popular locations at /usr/bin/, /usr/local/bin, etc. Ultimately, the bcc python libraries will be installed in /usr/lib/<python-version/... directory.