OwenTruong / civitdl

A CLI python script to batch download models from CivitAI with CivitAI Api V1
Apache License 2.0
46 stars 6 forks source link

bug(general): Installing civitdl globally using make install fails (UNKNOWN-0.0.0) #57

Closed OwenTruong closed 7 months ago

OwenTruong commented 8 months ago

What happened?

Trying to run make install (or pip install .) globally fails due to pip not installing the project correctly.

Steps to reproduce the behavior

cd civitdl
make install

Actual Behavior

Silently fails installation with UNKNOWN-0.0.0 installed.

Expected Behavior

Successfully installs civitdl-vX.Y.Z

System Detail

Additional Context

Potentially an issue in both v1 and v2 of civitdl.

OwenTruong commented 8 months ago

Current temporary solution for global install is to run make install2 instead while trying to figure out (note make install2 is not available in development yet, will be added soon in one of the feature branches):

install: uninstall
    pip3 install .

install2: uninstall
    python3 -m build
    pip3 install -r ./requirements.txt
    pip3 install --upgrade dist/*.whl

I recommend just running the below inside the project for now:

    python3 -m build
    pip3 install -r ./requirements.txt
    pip3 install --upgrade dist/*.whl