1.8.3 breaks numpy install on py3 (ValueError: underlying buffer has been detached) #359
Comments
reverting 5e09944 on top of git master also seems to clear the problem. |
it looks like the updated |
It would of course be better to fix the distribute-setup.py. |
FWIW, I've reproduced the issue on Mac OS with 3.3.0. Not sure what's causing it though. |
a quick point release would be great. |
I can replicate by doing what pip is calling under the hood.
|
Testing with 0.6.28 distribute in virtualenv
Use script above or https://gist.github.com/4136264 and added a
|
OK so looking at
https://bitbucket.org/tarek/distribute/changeset/7c543c05cd042c48bfa3926baa4a1a5543398305 |
Renaming |
strange. 0.6.28 was released in july, that commit is from october, how can you reproduce with .28? |
@stefanholek fyi https://bitbucket.org/tarek/distribute/changeset/7c543c05cd042c48bfa3926baa4a1a5543398305 breaks virtualenv + pip install numpy |
Argh ignore the 0.6.28 comment - I couldn't reproduce with that, the later tests were with 0.6.30 and changing that. sorry for the confusing comments |
For summary so far, see comment in numpy/numpy#2761 |
Good summary. I'll point out that the distribute io tweak is only on Python 3 so far (it was motivated by a recent PEP), and that using I've sent a pull request for distribute to leave |
Travis team says it'll take release+2 days (max) for builds to start passing again. it's been two days |
Update distribute to 0.6.31, includes a workaround for #359. Update changelog.
It seems it's still not working on Travis, right? E.g. here from today: |
Please let me know asap , what is the resolution for Numpy to work with PyPi , i.e. which versions of PyPui and Numpy will not have this issue after installation. |
------ 0.6.32 ------ * Fix test suite with Python 2.6. * Fix some DeprecationWarnings and ResourceWarnings. * Issue #335: Backed out `setup_requires` superceding installed requirements until regression can be addressed. ------ 0.6.31 ------ * Issue #303: Make sure the manifest only ever contains UTF-8 in Python 3. * Issue #329: Properly close files created by tests for compatibility with Jython. * Work around Jython bugs `#1980 <http://bugs.jython.org/issue1980>`_ and `#1981 <http://bugs.jython.org/issue1981>`_. * Issue #334: Provide workaround for packages that reference `sys.__stdout__` such as numpy does. This change should address `virtualenv #359 <https://github.com/pypa/virtualenv/issues/359>`_ as long as the system encoding is UTF-8 or the IO encoding is specified in the environment, i.e.:: PYTHONIOENCODING=utf8 pip install numpy * Fix for encoding issue when installing from Windows executable on Python 3. * Issue #323: Allow `setup_requires` requirements to supercede installed requirements. Added some new keyword arguments to existing pkg_resources methods. Also had to updated how __path__ is handled for namespace packages to ensure that when a new egg distribution containing a namespace package is placed on sys.path, the entries in __path__ are found in the same order they would have been in had that egg been on the path when pkg_resources was first imported. ------ 0.6.30 ------ * Issue #328: Clean up temporary directories in distribute_setup.py. * Fix fatal bug in distribute_setup.py.
------ 0.6.32 ------ * Fix test suite with Python 2.6. * Fix some DeprecationWarnings and ResourceWarnings. * Issue #335: Backed out `setup_requires` superceding installed requirements until regression can be addressed. ------ 0.6.31 ------ * Issue #303: Make sure the manifest only ever contains UTF-8 in Python 3. * Issue #329: Properly close files created by tests for compatibility with Jython. * Work around Jython bugs `#1980 <http://bugs.jython.org/issue1980>`_ and `#1981 <http://bugs.jython.org/issue1981>`_. * Issue #334: Provide workaround for packages that reference `sys.__stdout__` such as numpy does. This change should address `virtualenv #359 <https://github.com/pypa/virtualenv/issues/359>`_ as long as the system encoding is UTF-8 or the IO encoding is specified in the environment, i.e.:: PYTHONIOENCODING=utf8 pip install numpy * Fix for encoding issue when installing from Windows executable on Python 3. * Issue #323: Allow `setup_requires` requirements to supercede installed requirements. Added some new keyword arguments to existing pkg_resources methods. Also had to updated how __path__ is handled for namespace packages to ensure that when a new egg distribution containing a namespace package is placed on sys.path, the entries in __path__ are found in the same order they would have been in had that egg been on the path when pkg_resources was first imported. ------ 0.6.30 ------ * Issue #328: Clean up temporary directories in distribute_setup.py. * Fix fatal bug in distribute_setup.py.
------ 0.6.32 ------ * Fix test suite with Python 2.6. * Fix some DeprecationWarnings and ResourceWarnings. * Issue #335: Backed out `setup_requires` superceding installed requirements until regression can be addressed. ------ 0.6.31 ------ * Issue #303: Make sure the manifest only ever contains UTF-8 in Python 3. * Issue #329: Properly close files created by tests for compatibility with Jython. * Work around Jython bugs `#1980 <http://bugs.jython.org/issue1980>`_ and `#1981 <http://bugs.jython.org/issue1981>`_. * Issue #334: Provide workaround for packages that reference `sys.__stdout__` such as numpy does. This change should address `virtualenv #359 <https://github.com/pypa/virtualenv/issues/359>`_ as long as the system encoding is UTF-8 or the IO encoding is specified in the environment, i.e.:: PYTHONIOENCODING=utf8 pip install numpy * Fix for encoding issue when installing from Windows executable on Python 3. * Issue #323: Allow `setup_requires` requirements to supercede installed requirements. Added some new keyword arguments to existing pkg_resources methods. Also had to updated how __path__ is handled for namespace packages to ensure that when a new egg distribution containing a namespace package is placed on sys.path, the entries in __path__ are found in the same order they would have been in had that egg been on the path when pkg_resources was first imported. ------ 0.6.30 ------ * Issue #328: Clean up temporary directories in distribute_setup.py. * Fix fatal bug in distribute_setup.py.
The error is (from travis output)
I've bisected this to 5e09944,
That commit is broken for me (giving a similar error to #358) but with a small fix
from the following commit, I can consistently reproduce the problem.
The offending line in numpy has been around since 2005, nothing new.
98b8160 works for me (and includes the 3.3 fix, FYI, @michaelklishin (Travis team)).
It looks like a lot of users of travis are affected by this , since all builds depending on numpy
are failing with this error (that's just my guess though).
the pasted error is from 3.1 on travis, I get the same thing on my local box with 3.2
The text was updated successfully, but these errors were encountered: