backtrackbb icon indicating copy to clipboard operation
backtrackbb copied to clipboard

pip install . was not working with python 3.11<=

Open florentaden opened this issue 8 months ago • 2 comments

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!!

florentaden avatar May 26 '25 01:05 florentaden

Just realized that this might have been updated in the other opened pull request?

florentaden avatar May 26 '25 01:05 florentaden

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.

claudiodsf avatar May 29 '25 17:05 claudiodsf