Skip to content

Got time data '19-Sep-03' does not match format '%d-%b-%y' while building 3.0.2-doc #13056

Closed
@gepcel

Description

@gepcel

I download doc files from branch 3.0.2-doc, and tried to build it for local use.

D:\download\temp\matplotlib-3.0.2-doc\doc>make htmlhelp
...
generating gallery for gallery\frontpage... [100%] membrane.py
generating gallery for gallery\misc... [ 57%] load_converter.py
Warning, treated as error:
D:\download\temp\matplotlib-3.0.2-doc\examples\misc\load_converter.py failed to execute correctly: Traceback (most recent call last):
  File "D:\download\temp\matplotlib-3.0.2-doc\examples\misc\load_converter.py", line 17, in <module>
    skiprows=1, usecols=(0, 2), unpack=True)
  File "c:\anaconda3\lib\site-packages\numpy\lib\npyio.py", line 1101, in loadtxt
    for x in read_data(_loadtxt_chunksize):
  File "c:\anaconda3\lib\site-packages\numpy\lib\npyio.py", line 1028, in read_data
    items = [conv(val) for (conv, val) in zip(converters, vals)]
  File "c:\anaconda3\lib\site-packages\numpy\lib\npyio.py", line 1028, in <listcomp>
    items = [conv(val) for (conv, val) in zip(converters, vals)]
  File "c:\anaconda3\lib\site-packages\numpy\lib\npyio.py", line 1087, in tobytes_first
    return conv(x.encode("latin1"))
  File "c:\anaconda3\lib\site-packages\matplotlib\dates.py", line 361, in __call__
    return super().__call__(s)
  File "c:\anaconda3\lib\site-packages\matplotlib\dates.py", line 335, in __call__
    return date2num(datetime.datetime(*time.strptime(s, self.fmt)[:6]))
  File "c:\anaconda3\lib\_strptime.py", line 559, in _strptime_time
    tt = _strptime(data_string, format)[0]
  File "c:\anaconda3\lib\_strptime.py", line 362, in _strptime
    (data_string, format))
ValueError: time data '19-Sep-03' does not match format '%d-%b-%y'

But inside the matplotlib-3.0.2-doc\examples\misc\ folder, I can do python load_converter.py without any error.

What am I missing?

Versions:

matplotlib: 3.0.2
numpy: 1.15.4
sphinx: 1.8.1
numpydoc: 0.8.0
sphinx-gallery: 0.2.0
Windows 10 with Chinese simplified language

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions