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.

embed_code_links throwing <exception: list indices must be integers or slices, not str>

See original GitHub issue

after 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:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
larsonercommented, Nov 11, 2021

@lucyleeow are you up for making a release?

1reaction
QuLogiccommented, Nov 11, 2021

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.

Read more comments on GitHub >

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

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