"image file not readable" with 0.1.9
See original GitHub issueI’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.
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (13 by maintainers)
Top Results From Across the Web
Image file not readable — Tech writer at work blog - Documatt
Image file not readable ¶. Symptoms¶. Sphinx build failed with the errors similar to: WARNING: image file not readable: non- ...
Read more >Knowledge Collection: How to upgrade the firmware on an ...
Instructions on how to successfully upgrade the firmware on an IBM DataPower Gateway+ Appliance.
Read more >Image Downloads for HMI Operator Panels - ID: 109746530
The image version installed on the Operator Panel must always be compatible with the WinCC (TIA Portal) version used. The following PDF document...
Read more >image - Rust
Overview. This crate provides native rust implementations of image encoding and decoding as well as some basic image manipulation functions.
Read more >node request: saved image file is not readable
The main issue is that the written file is curruped (can't be opened). If I use pipe instead of on('complete'...) at the end...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m terribly sorry on this one. I did not notice this because cached builds of the gallery in my pc and not having good test and not reviewing the output on travis, very irresponsible on my side. This bug came in by PR #218 to deal with windows path and I only checked on the generated html for windows not even the RST files. I’m working on a fix now
Yeah, I think that relates to
lstrip()
in the same block above–it’s probably fine if you actually have a relative path, but not for absolute.