embed_code_links throwing <exception: list indices must be integers or slices, not str>
See original GitHub issueafter sphinx upgraded to 4.3.0 earlier today my build broke when trying to embed documentation hyperlinks. here’s an output from the GitHub actions build:
Extension error (sphinx_gallery.docs_resolv):
Handler <function embed_code_links at 0x7f17c813c9e0> for event 'build-finished' threw an exception (exception: list indices must be integers or slices, not str)
this issue was able to be fixed by pinning the sphinx version to 4.2.0. i couldn’t track down what caused this issue in the new sphinx release, but their changelog might be a clue for someone that’s more familiar with sphinx.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
TypeError: list indices must be integers or slices, not str
This error occurs when using a string for list indexing instead of indices or slices. For a better understanding of list indexing, see...
Read more >TypeError: list indices must be integers or slices ... - STechies
typeerror: list indices must be integers or slices, not str, This type error generally occurs when we declare the index variable as string,...
Read more >TypeError: list indices must be integers or slices, not str
The Python typeerror: list indices must be integers or slices, not str error is raised when you try to access a list using...
Read more >"TypeError: list indices must be integers or slices, not str ...
The request response isn't empty. It's completely fine, this is the only error I get. Full Error: Traceback (most recent call last): File...
Read more >List Indices Must Be Integers Or Slices Not Str : r/learnpython
Hello: I need some help in figuring out how to properly structure my code to avoid the error in the title. The code...
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
@lucyleeow are you up for making a release?
It’d be nice to get a release out with that fix, maybe a bugfix if a feature release is too much. We will pin sphinx for now to avoid this.