question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

scikit-learn 0.22.2.post1 and tensorboard 2.2.0 that are incompatible with snorkel 0.9.5 are installed

See original GitHub issue

Describe the bug

The following error messages occur when installing fonduer==0.8.0

ERROR: snorkel 0.9.5 has requirement scikit-learn<0.22.0,>=0.20.2, but you'll have scikit-learn 0.22.2.post1 which is incompatible.
ERROR: snorkel 0.9.5 has requirement tensorboard<2.0.0,>=1.14.0, but you'll have tensorboard 2.2.0 which is incompatible.

To Reproduce Steps to reproduce the behavior:

  1. pip install fonduer==0.8.0 when pip==19.X (I tested on 19.2.3 and 19.3)

Expected behavior

No error is expected and compatible versions of scikit-learn and tensorboard are installed.

Error Logs/Screenshots

$ pip install     torch==1.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html     fonduer

...

ERROR: snorkel 0.9.5 has requirement scikit-learn<0.22.0,>=0.20.2, but you'll have scikit-learn 0.22.2.post1 which is incompatible.
ERROR: snorkel 0.9.5 has requirement tensorboard<2.0.0,>=1.14.0, but you'll have tensorboard 2.2.0 which is incompatible.
Installing collected packages: torch, numpy, scipy, pyyaml, soupsieve, beautifulsoup4, editdistance, lxml, treedlib, pickleshare, wcwidth, prompt-toolkit, pygments, backcall, ptyprocess, pexpect, decorator, parso, jedi, six, ipython-genutils, traitlets, ipython, psycopg2, sqlalchemy, werkzeug, wheel, certifi, urllib3, chardet, idna, requests, tensorboard-plugin-wit, markdown, oauthlib, requests-oauthlib, pyasn1, rsa, pyasn1-modules, cachetools, google-auth, google-auth-oauthlib, grpcio, protobuf, absl-py, tensorboard, joblib, scikit-learn, tqdm, emmental, munkres, pytz, python-dateutil, pandas, networkx, snorkel, wand, cymem, preshed, plac, wasabi, blis, murmurhash, srsly, thinc, spacy, fonduer
  Running setup.py install for pyyaml: started
    Running setup.py install for pyyaml: finished with status 'done'
  Running setup.py install for backcall: started
    Running setup.py install for backcall: finished with status 'done'
  Running setup.py install for psycopg2: started
    Running setup.py install for psycopg2: finished with status 'done'
  Running setup.py install for sqlalchemy: started
    Running setup.py install for sqlalchemy: finished with status 'done'
  Running setup.py install for absl-py: started
    Running setup.py install for absl-py: finished with status 'done'
  Running setup.py install for networkx: started
    Running setup.py install for networkx: finished with status 'done'
Successfully installed absl-py-0.9.0 backcall-0.1.0 beautifulsoup4-4.7.1 blis-0.2.4 cachetools-4.1.0 certifi-2020.4.5.1 chardet-3.0.4 cymem-2.0.3 decorator-4.4.2 editdistance-0.5.3 emmental-0.0.6 fonduer-0.8.0 google-auth-1.13.1 google-auth-oauthlib-0.4.1 grpcio-1.28.1 idna-2.9 ipython-7.13.0 ipython-genutils-0.2.0 jedi-0.16.0 joblib-0.14.1 lxml-4.5.0 markdown-3.2.1 munkres-1.1.2 murmurhash-1.0.2 networkx-2.3 numpy-1.18.2 oauthlib-3.1.0 pandas-0.25.3 parso-0.6.2 pexpect-4.8.0 pickleshare-0.7.5 plac-0.9.6 preshed-2.0.1 prompt-toolkit-3.0.5 protobuf-3.11.3 psycopg2-2.8.5 ptyprocess-0.6.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 pygments-2.6.1 python-dateutil-2.8.1 pytz-2019.3 pyyaml-5.3.1 requests-2.23.0 requests-oauthlib-1.3.0 rsa-4.0 scikit-learn-0.22.2.post1 scipy-1.4.1 six-1.14.0 snorkel-0.9.5 soupsieve-2.0 spacy-2.1.9 sqlalchemy-1.3.16 srsly-1.0.2 tensorboard-2.2.0 tensorboard-plugin-wit-1.6.0.post3 thinc-7.0.8 torch-1.4.0+cpu tqdm-4.45.0 traitlets-4.3.3 treedlib-0.1.2 urllib3-1.25.8 wand-0.5.9 wasabi-0.6.0 wcwidth-0.1.9 werkzeug-1.0.1 wheel-0.34.2
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Environment (please complete the following information):

  • OS: Debian (docker tag python:3.7-slim)
  • PostgreSQL Version: N/A
  • Poppler Utils Version: N/A
  • Fonduer Version: 0.8.0

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
HiromuHotacommented, Jun 12, 2020

As of pip version 20.1,

An alpha version of a new resolver is available via --unstable-feature=resolver (https://github.com/pypa/pip/issues/988)

It is still in an alpha stage and unstable, but this looks promising!

0reactions
HiromuHotacommented, Aug 21, 2020

Okay, pip with --use-feature=2020-resolver seems to be working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Risk factor classification with Snorkel and Flair | Kaggle
We present the results using a pre-filtered dataframe containing only risk factor sentences ( covid_risk_sentences.tsv ) and using the already trained model ( ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found