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

Why are modules from /modules passed though the pyscript interpreter? #575

Unanswered
phyrwork asked this question in General
Discussion options

...instead of being loaded as-is.

Having spent a few evenings absorbing the documentation I have (incorrectly) understood that /scripts and /apps were passed through the interpreter and use all the convenience pyscript environment stuff and that modules were for "normal Python" to be imported therein.

I've immediately run into two issues with a package I'd specifically broken away from my script

  • Enum doesn't work in the interpreter (got a workaround for that...)
  • Type annotatations don't work in the interpreter (not implemented ast ast_starred #285 ) which I can't work around because I'm trying to use marshmallow-dataclass to do some HTTP request deserialization.

Is there a way to bypass the interpreter for some module/package that isn't get via requirements.txt (I am hoping that they are exempt because otherwise I am totally f**ked...).

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /