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
bundled six 1.9.0 causes ImportError: No module named 'winreg' in Pympler #6537
Comments
Fedora packages correctly replace internal |
Yes, I've just implemented that in the latest build. If you're fine with Fedora carrying a downstream patch, then I won't push any further, but it would be nice to have official support for using system-wide six. |
Why doesn't this issue show up everywhere else? The discussion over bundling six (#4501) was protracted and I am not excited about re litigating that. Might be worth updating to 1.10, but the master branch is going to go python3 only ~18mo so this is not a pressing issue. A simpler patch downstream might be to replace the contents of from six import * |
As the person who proposed and implemented the bundling - I don't feel strongly - I am happy to reverse it if you like. |
No, |
@matthew-brett What has changed your mind from last year? |
Probably because I've been able to reproduce it only on armv7hl so far and only while running Pympler testsuite. Debian doesn't package Pympler, for example. |
@tacaswell - I think in retrospect I was wrong last year, pip was easily up to to the job, but in any case, after another year of reliable pip, it seems even harder to justify now. |
if @matthew-brett is on board with reverting this change then 👍 on reverting for 2.0 (would rather not do it for 1.5.2 as that is mostly held for cleaning up the other issues from @rathann at this point). |
This reverts commit 8fe495a. Go back to using external six, to fix bug at matplotlib#6537. Also - update six required version to 1.10 Conflicts: lib/matplotlib/artist.py lib/matplotlib/axes/_base.py lib/matplotlib/backend_tools.py lib/matplotlib/backends/backend_mixed.py lib/matplotlib/backends/backend_pdf.py lib/matplotlib/backends/backend_svg.py lib/matplotlib/colors.py lib/matplotlib/dates.py lib/matplotlib/font_manager.py lib/matplotlib/legend_handler.py lib/matplotlib/tests/test_artist.py lib/matplotlib/tests/test_axes.py lib/matplotlib/tests/test_backend_qt5.py lib/matplotlib/tests/test_dviread.py lib/matplotlib/tests/test_image.py lib/matplotlib/tests/test_lines.py lib/matplotlib/tests/test_spines.py lib/matplotlib/textpath.py lib/mpl_toolkits/axes_grid/colorbar.py lib/mpl_toolkits/axes_grid1/anchored_artists.py lib/mpl_toolkits/axes_grid1/inset_locator.py
This reverts commit 8fe495a. Go back to using external six, to fix bug at matplotlib#6537. Also - update six required version to 1.10 Conflicts: lib/matplotlib/artist.py lib/matplotlib/axes/_base.py lib/matplotlib/backend_tools.py lib/matplotlib/backends/backend_mixed.py lib/matplotlib/backends/backend_pdf.py lib/matplotlib/backends/backend_svg.py lib/matplotlib/colors.py lib/matplotlib/dates.py lib/matplotlib/font_manager.py lib/matplotlib/legend_handler.py lib/matplotlib/tests/test_artist.py lib/matplotlib/tests/test_axes.py lib/matplotlib/tests/test_backend_qt5.py lib/matplotlib/tests/test_dviread.py lib/matplotlib/tests/test_image.py lib/matplotlib/tests/test_lines.py lib/matplotlib/tests/test_spines.py lib/matplotlib/textpath.py lib/mpl_toolkits/axes_grid/colorbar.py lib/mpl_toolkits/axes_grid1/anchored_artists.py lib/mpl_toolkits/axes_grid1/inset_locator.py
This reverts commit 8fe495a. Go back to using external six, to fix bug at matplotlib#6537. Also - update six required version to 1.10 Conflicts: lib/matplotlib/artist.py lib/matplotlib/axes/_base.py lib/matplotlib/backend_tools.py lib/matplotlib/backends/backend_mixed.py lib/matplotlib/backends/backend_pdf.py lib/matplotlib/backends/backend_svg.py lib/matplotlib/colors.py lib/matplotlib/dates.py lib/matplotlib/font_manager.py lib/matplotlib/legend_handler.py lib/matplotlib/tests/test_artist.py lib/matplotlib/tests/test_axes.py lib/matplotlib/tests/test_backend_qt5.py lib/matplotlib/tests/test_dviread.py lib/matplotlib/tests/test_image.py lib/matplotlib/tests/test_lines.py lib/matplotlib/tests/test_spines.py lib/matplotlib/textpath.py lib/mpl_toolkits/axes_grid/colorbar.py lib/mpl_toolkits/axes_grid1/anchored_artists.py lib/mpl_toolkits/axes_grid1/inset_locator.py
Closed by #6556 |
It seems this bug is affecting the matplotlib package in Ubuntu xenial which is a long term stable release, so this is something that can hurt people for years to come. |
I am not convinced that obspy/obspy#1906 is the same issue. This is a bug in the vendored version of six, that issue looks like the OP has crossed installations. |
To help us understand and resolve your issue please check that you have provided
the information below.
that demonstrates the issue i.e a small piece of code which reproduces the issue
and can be run with out any other (or as few as possible) external dependencies.
The bundled six.py has this:
while python-six-1.10.0 (latest version) has this:
I applied this patch:
and replaced all imports from bundled six to system-wide six without any adverse effects. Please consider unbundling six and using system-wide version.
The text was updated successfully, but these errors were encountered: