Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Included Python[files] being treated as if they were HTML files#2276

Unanswered
sgbaird asked this question inQ&A
Discussion options

Not sure if this is a bug or whether it's specific to pyscript, pyodide, or sphinx, but I've been stuck on this for a month or so.

When I use[files] syntax like what's shown inhttps://github.com/sgbaird/honegumi/blob/592215a971b26de6b1e17bb54be8db224a283194/docs/pyscript.toml#L5, I am able to successfully run on readthedocs (seehttps://honegumi.readthedocs.io/en/latest/honegumi.html, at time of writing); however, locally I get the error described here:sgbaird/honegumi#80 (comment).

By contrast, when I use the format like what's shown inhttps://github.com/sgbaird/honegumi/blob/3be73708039b739d212e7876c7f75625664af45f/docs/pyscript.toml, I get the same error on readthedocs, but it works fine locally.

Somehow, it seems these Python files are getting converted to some kind of HTML format when being copied into the virtual filesystem.

Any ideas why this might be?

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

are you sure the HTML version of those files is not just the content of a404 (Not Found) HTML page?

You must be logged in to vote
1 reply
@sgbaird
Comment options

Hmm.. good point. My instinct would be to try to capture the file contents before any errors are raised and raise a custom error with the file contents in it. I'll give this a try, but happy to hear alternatives.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@sgbaird@WebReflection

[8]ページ先頭

©2009-2025 Movatter.jp