question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"image file not readable" with 0.1.9

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:17 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
Titan-Ccommented, Apr 20, 2017

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

1reaction
dopplershiftcommented, Apr 20, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found