X Tutup
Skip to content

numpy as no Attribute string0 #5884

@Carreau

Description

@Carreau

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.

I got that by by trying to build the docs of https://github.com/statlab/permute , trying to fix an IPython bug https://github.com/ipython/ipython/issues/8733, so I have no clue what's going in permute, or matplotlib, or numpy. Hoping to reach someone who knows.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    X Tutup