fair-software / howfairis

Command line tool to analyze a GitHub or GitLab repository's compliance with the fair-software.eu recommendations
https://pypi.org/project/howfairis/
Apache License 2.0
58 stars 23 forks source link

Can't install it in macOS Big Sur 11.2.3 #327

Open shoaibsufi opened 3 years ago

shoaibsufi commented 3 years ago

shoalb@eScience-Lab-Pro sustainable-software-sustainability.github.io % pip install howfairis
Collecting howfairis Using cached howfairis-0.14.1-py3-none-any.whl (38 kB) Collecting ruamel.yaml==0.16. Using cached ruamel.yaml-0.16.13-py2.py3-none-any.whl (111 kB) Requirement already satisfied: colorama==0. in /Users/shoalb/anaconda/lib/python3.6/site-packages (from howfairis) (0.4.4) Requirement already satisfied: docutils==0.16. in /Users/shoalb/anaconda/lib/python3.6/site-packages (from howfairis) (0.16) Requirement already satisfied: beautifulsoup4==4. in /Users/shoalb/anaconda/lib/python3.6/site-packages (from howfairis) (4.9.3) Requirement already satisfied: pygments==2. in /Users/shoalb/anaconda/lib/python3.6/site-packages (from howfairis) (2.8.0) Requirement already satisfied: requests==2. in /Users/shoalb/anaconda/lib/python3.6/site-packages (from howfairis) (2.25.1) Collecting ratelimit==2. Using cached ratelimit-2.2.1-py3-none-any.whl Requirement already satisfied: voluptuous==0.11. in /Users/shoalb/anaconda/lib/python3.6/site-packages (from howfairis) (0.11.7) Collecting backoff==1. Using cached backoff-1.10.0-py2.py3-none-any.whl (31 kB) Requirement already satisfied: click==7. in /Users/shoalb/anaconda/lib/python3.6/site-packages (from howfairis) (7.1.2) Requirement already satisfied: soupsieve>1.2 in /Users/shoalb/anaconda/lib/python3.6/site-packages (from beautifulsoup4==4.->howfairis) (2.2) Requirement already satisfied: chardet<5,>=3.0.2 in /Users/shoalb/anaconda/lib/python3.6/site-packages (from requests==2.->howfairis) (4.0.0) Requirement already satisfied: idna<3,>=2.5 in /Users/shoalb/anaconda/lib/python3.6/site-packages (from requests==2.->howfairis) (2.10) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /Users/shoalb/anaconda/lib/python3.6/site-packages (from requests==2.->howfairis) (1.26.3) Requirement already satisfied: certifi>=2017.4.17 in /Users/shoalb/anaconda/lib/python3.6/site-packages (from requests==2.->howfairis) (2020.12.5) Requirement already satisfied: ruamel.yaml.clib>=0.1.2 in /Users/shoalb/anaconda/lib/python3.6/site-packages (from ruamel.yaml==0.16.->howfairis) (0.2.2) Installing collected packages: ruamel.yaml, ratelimit, backoff, howfairis Attempting uninstall: ruamel.yaml Found existing installation: ruamel-yaml 0.15.87 ERROR: Cannot uninstall 'ruamel-yaml'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. shoalb@eScience-Lab-Pro sustainable-software-sustainability.github.io %

shoaibsufi commented 3 years ago

This was discovered at CW21 mini-workshop 1.4

jspaaks commented 3 years ago

Hi Shoaib,

It looks like you have some clashing dependencies. You have a couple of options:

  1. install howfairis in user space (you were installing globally before)

    pip install --user howfairis
  2. install in a virtual environment

    python -m venv venv3     # makes a new directory venv3 in your current directory
    source venv3/bin/activate
    pip install --upgrade pip
    pip install howfairis
    
    # (next time you want to use howfairis, activate the virtual environment first)
  3. use a dockerized version of howfairis

    # see the help
    docker run --rm fairsoftware/howfairis --help
    # run the analysis on one of you repos
    docker run --rm fairsoftware/howfairis https://github.com/sustainable-software-sustainability/sustainable-software-sustainability.github.io

Hope this helps!