-
Notifications
You must be signed in to change notification settings - Fork 294
builtins import broken in version 0.17.0 #398
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
Comments
We have the same issue here. Trying to point the origin of the issue, but it's not yet clear. |
We have the same issue, but interestingly, if we pip install without cache dir, it works...
|
on Windows, removing the cached future 0.17.0 whl from C:\Users<username>\AppData\Local\pip and then re-installing the package fixes it. so it looks (It's a theory) like earlier publication of 0.17.0 was broken, but now is fixed. |
@jmadler let us know what happened, we'd like to understand the context. |
Tell me please haven't you built |
well if the future wheel is built by python 3, cached as universal, and then retrieved by python 2 from the cache, that could be it. |
Sorry folks! This is my first distribution of this particular package (and PyPI as well...) When I made the build I ran Once validated I ran
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 Is it possible that PyPI is rewriting the package somehow? Or perhaps the behavior of pip has changed? |
I think too. Maybe can someone release 0.17.1 with fix) |
Indeed, if the package is installed via py3, it will be cached in the local pip cache. Any future installations of 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. |
@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 😃 |
A1 - fixed. Steps:
by comparision 0.17.0 did have this single wheel: future-0.17.0-py2.py3-none-any.whl |
I had this issue with 0.17.0 and can confirm that 0.17.1 fixed it. |
The issue addressed by f895bb0 appears to have been fixed upstream. See PythonCharmers/python-future#398
Glad to hear it! Thanks Gilles, Vincent, et al. Your guidance has been super helpful :) |
Importing builtins in version 0.17.0 causes error.
The text was updated successfully, but these errors were encountered: