Skip to content

"image file not readable" with 0.1.9 #229

@dopplershift

Description

@dopplershift

I'm having problems now building our docs with 0.1.9. The warning is:

Warning, treated as error:
/Users/rmay/repos/metpy/docs/examples/Advanced_Sounding.rst:None: WARNING: image file not readable: Users/rmay/repos/metpy/docs/examples/images/sphx_glr_Advanced_Sounding_001.png

make: *** [html] Error 1

It looks like for some reason now sphinx-gallery is embedding the full absolute path in the rst file:

.. image:: /Users/rmay/repos/metpy/docs/examples/images/sphx_glr_Advanced_Sounding_001.png
    :align: center

Looking over the PRs in the latest release, I'm guessing that this block is the problem; figure_paths is created twice there, but the first one, which handles making relative paths, isn't used. I'm guess copy/paste problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions