dalejn / cleanBib

Probabilistically assign gender and race proportions of first/last authors pairs in bibliography entries
MIT License
149 stars 31 forks source link

issues with installing dependencies #31

Closed AmaiaBA closed 2 years ago

AmaiaBA commented 3 years ago

Hello!

First of all, a big thank you for creating this tool!

I am having issues installing the required dependencies and am wondering which python and pip versions you used for setting this up?

My system is a MacOS 10.15.7, conda 4.10.3, python 3.9.7, pip 21.2.4

I am using conda for getting the required packages. Specifically:

conda create --name cleanBib
conda env update -f environment.yaml

I get this warning:

Warning: you have pip-installed dependencies in your environment file, but you do not list pip itself as one of your conda dependencies.  Conda may not use the correct pip to install your packages, and they may end up in the wrong place.  Please add an explicit pip dependency.  I'm adding one for you, but still nagging you.

This is solved by including '- pip' under dependencies in the .yaml file. When I run the conda env update -f environment.yaml again, I get:

Collecting package metadata (repodata.json): done
Solving environment: done
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Installing pip dependencies: / Ran pip subprocess with arguments:
['/Users/XXXXX/opt/anaconda3/envs/cleanBib/bin/python', '-m', 'pip', 'install', '-U', '-r', '/Users/XXXXX/Documents/cleanBib/condaenv.n7xqpqj4.requirements.txt']
Pip subprocess output:
Collecting nbgitpuller
  Using cached nbgitpuller-1.0.2-py2.py3-none-any.whl (430 kB)
Collecting sphinx-gallery
  Using cached sphinx-gallery-0.9.0.tar.gz (6.5 MB)
Collecting pybtex
  Using cached pybtex-0.24.0-py2.py3-none-any.whl (561 kB)

Pip subprocess error:
ERROR: Could not find a version that satisfies the requirement glob (from versions: none)
ERROR: No matching distribution found for glob

failed

CondaEnvException: Pip failed

Any tips would be greatly appreciated!

dalejn commented 3 years ago

Hi, thanks for checking out this tool! I've only set up a local environment using PyCharm and manually installed dependencies instead of doing so using environment.yaml and requirements.txt, so I'm sorry to say I don't have many tips or insights into this problem. Here's a Stack Overflow post that might be relevant: https://stackoverflow.com/questions/52994649/pipenv-install-glob-fails

You could try removing glob from environment.yaml or modifying it to point to glob3