pivotal / LicenseFinder

Find licenses for your project's dependencies.
MIT License
1.73k stars 340 forks source link

pip is not installed error when pip is installed #852

Open daisy1754 opened 3 years ago

daisy1754 commented 3 years ago

I have python and pip installed on my machine (python3). However when I try running license_finder in my python project (where we have requirements.txt), I got "LicenseFinder::Pip: is not installed" error. Is there any additional setup I need to do?

> python --version
Python 3.7.3

> pip -V
/Users/kazuki/.pyenv/versions/3.7.3/lib/python3.7/site-packages/pip (python 3.7)

> pip3 -V
/Users/kazuki/.pyenv/versions/3.7.3/lib/python3.7/site-packages/pip (python 3.7)

> license_finder
LicenseFinder::Pip: is active
LicenseFinder::Pip: is not installed
cf-gitbot commented 3 years ago

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

DavidS-cloud commented 3 years ago

You need to pip install or use license_finder --prepare to get your requirements installed before lf can work with it. I just stumbled over the same thing, the wording is very confusing!

warvariuc commented 2 years ago

Do I understand correctly that license_finder install all dependencies from requirements.txt to check the licenses of those? If so, it's a lot of dependencies sometimes to install, and they might be incompatible with Python version from the Docker image (3.8.5 in my case).

xtreme-shane-lattanzio commented 2 years ago

Hi @warvariuc ! The prepare command will find the requirements.txt and run pip install on it. If you have incompatible versions, there is a command line argument for the python version if you are changing between python 2 and 3. If there are incompatibilities between different python 3 versions, that is a different issue that we may need to make changes for, Im wondering if there is something to do with the requirements.txt or with the pip command itself to exclude of change certain dependencies due to this