pip install . was not working with python 3.11<=
Kia ora Claudio & Natalia!
I recently tried to install BTBB again with pip install . without success this time. The error is referring to some version problem:
packaging.version.InvalidVersion: Invalid version: '0.0.0-g6030'
I fixed it by modifying the function call_git_describe() in version.py so it would comply with PEP440, "-" are not permitted.
This seems to appear with the most recent version of python (3.10 is fine but not 3.11). I am playing around with the following Dockerfile:
FROM python:3.12-slim
# FROM python:3.10-slim
RUN apt-get -y update \
&& apt-get install -y gcc g++ git
WORKDIR /app
COPY . .
RUN git clone https://github.com/BackTrackBB/backtrackbb.git \
&& cd backtrackbb \
&& pip install . \
&& cd ..
Cheers!!
Just realized that this might have been updated in the other opened pull request?
Hi Florent! Yes, this should be fixed in PR #9 !
I guess it's time to merge it 😉.
I'll let @npoiata react, then go ahead and merge it.