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
I came across this traceback while using v1.5.1-970-g950c712
Traceback (most recent call last):
File "/Users/bussonniermatthias/dev/permute/doc/source/_sphinxext/plot_directive.py", line 502, in run_code
six.exec_(code, ns)
File "<string>", line 5, in <module>
File "/Users/bussonniermatthias/dev/matplotlib/lib/matplotlib/mlab.py", line 3227, in rec2txt
for i, colname in enumerate(r.dtype.names)]
File "/Users/bussonniermatthias/dev/matplotlib/lib/matplotlib/mlab.py", line 3227, in <listcomp>
for i, colname in enumerate(r.dtype.names)]
File "/Users/bussonniermatthias/dev/matplotlib/lib/matplotlib/mlab.py", line 3183, in get_justify
if (ntype == np.str or ntype == np.str_ or ntype == np.string0 or
AttributeError: module 'numpy' has no attribute 'string0'
np.string0 seem to be still in the souce code of matplotlib. Asking my neighbor numpy developer, he has never heard of this. I can imagine this might have ment to be np.str0.
Activity
tacaswell commentedon Jan 20, 2016
Looks like this originally came in in 9638f5e (JDH: Feb 16 2008).
There is still one reference to string0 in the numpy source: https://github.com/tacaswell/numpy/blob/master/doc/summarize.py#L32
It looks like it was part of f2py and removed from the numpy source tree in numpy/numpy@484c100 (rkern: July 2008)
tacaswell commentedon Jan 20, 2016
attn @rkern
rkern commentedon Jan 20, 2016
That commit did not remove
string0; it only deleted files innumpy/f2py:rkern commentedon Jan 20, 2016
It's an alias that is still added in
numpy.core.numerictypes.It's possible that it's a Python 2-only thing with
numpy.bytes0being the Python 3 equivalent.Carreau commentedon Jan 20, 2016
That seem probable :
mdboom commentedon Jan 20, 2016
Cool. Seems easy enough to fix on our end, then.
Clean up type checking in rex2txt (Fixes matplotlib#5884)
Merge pull request #6396 from dopplershift/rec2txt
jenshnielsen commentedon May 11, 2016
Closed by #6396
Clean up type checking in rex2txt (Fixes matplotlib#5884)
BUG: Fix for building docs with Python 3