build fails with python 3.12.1
$ make
Building sdist for python3
Traceback (most recent call last):
File "/src/cvs/ebpf/bcc/build/src/python/bcc-python3/setup.py", line 11, in
the problem seems to be src/python/bcc-python3/setup.py:
11 setup(name='bcc', 12 version='0.29.1+refs/hea',
this is in my build dir, which means it was generated by the build process, which is apparently broken somewhere. Removing the +refs/hea part makes it build.
Yes, you may need to completely remove contends of build directory and do a rebuild.
I removed the build dir, did a git pull, and got this error:
[ 15%] Building sdist for python3
Traceback (most recent call last):
File "/cvs/bcc/b/src/python/bcc-python3/setup.py", line 3, in
I don't know the reason. My system has python 3.9 and cannot reproduce your failure. Hopefully you can help debug since you have the environment.
Got a similar issue after compiling from the tar file downloaded from assets, and ended up with a bad version string in ./build/src/python/bcc-python3/setup.py :
version='EAD-HASH-NOTFOUND+GITDIR-N',
Fixed it by starting over and cloning directly from github instead. Apparently the build process tried to figure out some stuff by querying git, which doesn't work if there's no .git directory. I wonder why these tar assets are prodived at all if they don't work.
O yes, I needed setuptools too, but that was easy to install using pip install setuptools