Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyscript issue with _static and [files] source syntax #80

Open
sgbaird opened this issue Jan 7, 2025 · 1 comment
Open

pyscript issue with _static and [files] source syntax #80

sgbaird opened this issue Jan 7, 2025 · 1 comment

Comments

@sgbaird
Copy link
Owner

sgbaird commented Jan 7, 2025

Traceback (most recent call last):
  File "/lib/python312.zip/_pyodide/_base.py", line 597, in eval_code_async
    await CodeRunner(
  File "/lib/python312.zip/_pyodide/_base.py", line 411, in run_async
    coroutine = eval(self.code, globals, locals)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<exec>", line 16, in <module>
  File "/home/pyodide/honegumi/ax/__init__.py", line 4
    <!DOCTYPE html>
    ^
SyntaxError: invalid syntax

Seems to be resolved by using html_extras_path instead of html_static_path for the files

EDIT: can't seem to get both readthedocs and local dev working at same time

@sgbaird
Copy link
Owner Author

sgbaird commented Jan 25, 2025

Except still occurs locally when using file inclusion syntax of "./src/honegumi/..." = ... and occurs on readthedocs when using "/honegumi/..." = .... maybe "./honegumi/..." = ... would help. Otherwise maybe I need some kind of hack to use one pyscript.toml on readthedocs and one on local.

@sgbaird sgbaird changed the title pyscript issue with _static pyscript issue with _static and [files] source syntax Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant