You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
distributed 2.0.0 is installed in a python 2 environment #2804
I'm not sure there's anything we can do about the bad package out on PyPI. I think you'll have to pin distributed<2 in your requirements.txt The PyPI admins updated the metadata for Django, but it's the internet and people complained.
At least after #2806 you'll get a failure at install time, rather than when attempting to import distributed.
Deleting is generally frowned upon.
Would a post release fix the install for python 2 users? Or would pip see that distributed 2.0.0 (not post) allegedly supports Py2, and install that?
On Jun 26, 2019, at 07:04, Christoph Paulik ***@***.***> wrote:
Is deleting the 2.0.0 release an option after 2.0.1 was uploaded? Or maybe a post release? No idea how pip would interpret a post release.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
@TomAugspurger can you say more about why deleting the file would be frowned upon? I don't think that many operational systems currently depend on that file, and I'm quite willing to make those people sad if necessary.
Thank you @dwhswenson and @cpaulik for bringing this to our attention. I've pushed a 2.0.1 package with the correct metadata and removed the offending 2.0.0 package. I've tried things locally in a Python 2 environment and things seem to be fine.
Also, I encourage you both to participate in the Dask User Survey which is going on now. It would be useful to get your perspective, given that you both support Python 2 communities.
How would that break things? The conda packages themselves should be fine,
since they correctly pin python >3.
We won't be able to rebuild them though, since the sdist is gone :/
Activity
TomAugspurger commentedon Jun 26, 2019
Ahh whoops. So what do we do now? First we'll need to fix master by setting a
python_requiresin setup.py. But how do we fix what's released?IIRC, Django did the same thing. I'll see what I can find.
TomAugspurger commentedon Jun 26, 2019
https://stackoverflow.com/a/47692662
https://code.djangoproject.com/ticket/28878
So right now, as a user, you can do
TomAugspurger commentedon Jun 26, 2019
#2806 fixes things going forward.
I'm not sure there's anything we can do about the bad package out on PyPI. I think you'll have to pin
distributed<2in your requirements.txt The PyPI admins updated the metadata for Django, but it's the internet and people complained.At least after #2806 you'll get a failure at install time, rather than when attempting to import distributed.
cpaulik commentedon Jun 26, 2019
Is deleting the 2.0.0 release an option after 2.0.1 was uploaded? Or maybe a post release? No idea how pip would interpret a post release.
TomAugspurger commentedon Jun 26, 2019
mrocklin commentedon Jun 26, 2019
My guess is that pip would download the 2.0.0 release.
Personally I'm fine with deleting the old file. We've (I've) done this before when we botched a release.
mrocklin commentedon Jun 26, 2019
Personally my inclination is to add a
python_requireskeyword, republish, and then delete the old file.Add python_requires entry to setup.py
mrocklin commentedon Jun 26, 2019
Alternative #2807
mrocklin commentedon Jun 26, 2019
@TomAugspurger can you say more about why deleting the file would be frowned upon? I don't think that many operational systems currently depend on that file, and I'm quite willing to make those people sad if necessary.
TomAugspurger commentedon Jun 26, 2019
Just a recollection, which I may be misremembering. Perhaps it’s deleting and republishing that’s bad.
mrocklin commentedon Jun 26, 2019
I'm not sure you can even do that. We'll be bumping to 2.0.1.
Anyway, if you don't have a strong objection, I'll just do this now.
TomAugspurger commentedon Jun 26, 2019
Yep, go for it.
Add python_requires entry to setup.py (#2807)
cpaulik commentedon Jun 26, 2019
Thanks. This has solved it for me.
The only thing which might be required is a
pip install dask distributed --no-cache-dirif you've installed the 2.0.0 release before on a machinemrocklin commentedon Jun 26, 2019
Thank you @dwhswenson and @cpaulik for bringing this to our attention. I've pushed a 2.0.1 package with the correct metadata and removed the offending 2.0.0 package. I've tried things locally in a Python 2 environment and things seem to be fine.
Also, I encourage you both to participate in the Dask User Survey which is going on now. It would be useful to get your perspective, given that you both support Python 2 communities.
cpaulik commentedon Jun 26, 2019
Just noticed that the
2.0.0package is still onconda-forgehttps://anaconda.org/conda-forge/distributed/filesthat could cause confusion and potentially broken environments.
TomAugspurger commentedon Jun 26, 2019
cpaulik commentedon Jun 26, 2019
It is fine actually. Sorry. Since conda is smarter than pip it figures out that it can't install
dask-core>2.0on python 2.7dwhswenson commentedon Jun 26, 2019
Thanks for the quick fix -- just reran that test and it works again!