Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Could not find a version that satisfies the requirement torch==1.1.0.post2 #1475

Closed
rjurney opened this issue Sep 30, 2019 · 10 comments
Closed

Comments

@rjurney
Copy link

rjurney commented Sep 30, 2019

Issue description

Snorkel requires a package version of torch that does not exist on PyPi.

Code example/repro steps

pip install snorkel

Expected behavior

Snorkel installed

System info

  • How you installed Snorkel (conda, pip, source): pip
  • Build command you used (if compiling from source):
pip-compile --output-file requirements.txt requirements.in
pip install -r requirements.txt 
  • OS: OS X, Linux
  • Python version: 3.7.4
  • Snorkel version: 0.9.1
  • Versions of any other relevant libraries:

Additional context

Add any other context about the problem here.

@rjurney
Copy link
Author

rjurney commented Sep 30, 2019

For more information, see pytorch/pytorch#10443

@henryre henryre self-assigned this Sep 30, 2019
@henryre
Copy link
Member

henryre commented Sep 30, 2019

Hi @rjurney, thanks for posting and digging around on this! As far as upgrading to PyTorch 1.2: there are some breaking changes, and so we're planning to make the next version (likely v0.10.0) compatible with PyTorch 1.2. The staged PR (needs an update) is #1395.

Now for install issues: I wasn't able to repro any issue with pip install snorkel on Ubuntu or OSX. I tried out pip-tools for the first time (just using snorkel==0.9.1 in requirements.in), and here's what I got:

  • On Ubuntu, the resolver gave torch==1.1.0 in requirements.txt and had no issue installing
  • On OSX, the resolver gave torch==1.1.0.post2 in requirements.txt and had no issue installing
  • On Ubuntu, pip install torch==1.1.0.post2 fails as you pointed to
  • Running pip-compile -P snorkel==0.9.1 -P torch==1.1.0 on any platform gave torch==1.1.0 in requirements.txt and had no issue installing

Will one of those combos will work for you before we push the PyTorch 1.2 upgrade?

@rjurney
Copy link
Author

rjurney commented Sep 30, 2019

Thanks for checking this out. Interesting. I’m using Anaconda Python on Ubuntu and OS X, and when I look at the list of artifacts and there is a 1.1.0.post2 so... I’m confused. I’ve had another issue like this with Anaconda pip recently. Is it possible for you to reproduce with Anaconda?

@henryre
Copy link
Member

henryre commented Sep 30, 2019

Hm ok you're activating a new Anaconda environment, installing pip-tools, then using that to install Snorkel? And is there any chance you generated a requirements.txt on OSX then tried installing with that on Ubuntu?

In the meantime, will using pip-compile -P snorkel==0.9.1 -P torch==1.1.0 work?

@rjurney
Copy link
Author

rjurney commented Oct 4, 2019

@henryre Ok, yeah I think I did generate on Linux and then install in OS X. So that means I can only check in my requirements.in and not my requirements.txt and then I'll have to generate it each install. That makes sense.

jazzband/pip-tools#585 explains things well.

@rjurney
Copy link
Author

rjurney commented Oct 7, 2019

@henryre So now I'm running into problems with libraries like fast-bert require torch>=1.2.0 and snorkel requires less than this. I understand this is not strictly speaking a Snorkel problem, but wanted to describe my use case :)

@henryre
Copy link
Member

henryre commented Oct 9, 2019

@rjurney got it. I expect more and more of these to pop up, and our next release will definitely be on PyTorch 1.2!

@github-actions
Copy link

github-actions bot commented Nov 8, 2019

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@mrbeann
Copy link

mrbeann commented Dec 3, 2019

@rjurney got it. I expect more and more of these to pop up, and our next release will definitely be on PyTorch 1.2!

When will this release come out? It's there any timeline?

@github-actions
Copy link

github-actions bot commented Jan 3, 2020

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants