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
Sorry folks! This is my first distribution of this particular package (and PyPI as well...)
When I made the build I ran python setup.py sdist with Py3, and tested pip install dist/future-0.17.0.tgz on both Py2 and Py3 and validated it installed via that mechanism. I conducted install validation by testing a few imports and dir() on the REPL for builtins, reprlib, and future
Once validated I ran twine upload dist/future-0.17.0.tgz to get it up to PyPI.
pip2 --version && pip3 --version:
pip 10.0.1 from /usr/local/lib/python2.7/site-packages/pip (python 2.7)
pip 18.0 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)
Another possibility is that the local bdist_wheel is built on Py3 and cached somewhere and treated as universal (when it's not), but I didn't upload a wheel to PyPI.
I'm unable to repro in an empty venv with pip install future==0.17.0 for Py2 and Py3 on my macOS machine.
Is it possible that PyPI is rewriting the package somehow? Or perhaps the behavior of pip has changed?
Indeed, if the package is installed via py3, it will be cached in the local pip cache. Any future installations of future (beit py2 or py3) will use this cached version as its marked universal.
However, the setup.py https://github.com/PythonCharmers/python-future/blob/master/setup.py#L61 has that conditional that makes the generated wheel (now in the pip cache) incompatible for py2 (since it was built for py3). I imagine that if the wheel is generated via py2, it could mean bad news for a py3 install.
Activity
sylvainduchesne commentedon Oct 26, 2018
We have the same issue, but interestingly, if we pip install without cache dir, it works...
daa commentedon Oct 26, 2018
Tell me please haven't you built
futurewheel with Python-3 and tried to use it with Python-2? If so this may be the cause of issue.jmadler commentedon Oct 27, 2018
Sorry folks! This is my first distribution of this particular package (and PyPI as well...)
When I made the build I ran
python setup.py sdistwith Py3, and testedpip install dist/future-0.17.0.tgzon both Py2 and Py3 and validated it installed via that mechanism. I conducted install validation by testing a few imports and dir() on the REPL for builtins, reprlib, and futureOnce validated I ran
twine upload dist/future-0.17.0.tgzto get it up to PyPI.pip2 --version && pip3 --version:Another possibility is that the local bdist_wheel is built on Py3 and cached somewhere and treated as universal (when it's not), but I didn't upload a wheel to PyPI.
I'm unable to repro in an empty venv with
pip install future==0.17.0for Py2 and Py3 on my macOS machine.Is it possible that PyPI is rewriting the package somehow? Or perhaps the behavior of pip has changed?
mrquokka commentedon Oct 29, 2018
I think too. Maybe can someone release 0.17.1 with fix)
sylvainduchesne commentedon Oct 29, 2018
Indeed, if the package is installed via py3, it will be cached in the local pip cache. Any future installations of
future(beit py2 or py3) will use this cached version as its marked universal.However, the setup.py https://github.com/PythonCharmers/python-future/blob/master/setup.py#L61 has that conditional that makes the generated wheel (now in the pip cache) incompatible for py2 (since it was built for py3). I imagine that if the wheel is generated via py2, it could mean bad news for a py3 install.
vphilippon commentedon Oct 30, 2018
@jmadler The issue is addressed in master, the only remaining thing would be to merge PR #404 and release v0.17.1
Right now, with v0.17.0, any user using both Py2 and Py3 on their machine is at risk of getting a bad pip wheel cache and hit this error.
Is it possible to get a release out ASAP? If you have any questions/concerns, ask away, I'll be happy to help 😃
jmadler commentedon Oct 31, 2018
Sounds good, I released 0.17.1 with #399 and #404 included. Can you take a look and let me know if it addresses this issue for you?
daa commentedon Oct 31, 2018
I had this issue with 0.17.0 and can confirm that 0.17.1 fixed it.
Remove/revert version-pin for "future" package
jmadler commentedon Oct 31, 2018
Glad to hear it!
Thanks Gilles, Vincent, et al. Your guidance has been super helpful :)