Craig Barratt

Results 64 comments of Craig Barratt

Yikes. It doesn't correctly detect inner functions inside nested statements, which then means the correct variable scoping isn't applied. I pushed a fix f4f32f4. A workaround for the existing code...

Pyscript does have known problems loading certain modules. If you are having problems loading a module directly from pyscript, try doing it from a native python module (see the docs),...

Thanks for finding and reporting the bug. I just pushed a fix. If you get a chance, please test it to make sure it resolves your test cases. I'll add...

The `@time_trigger` decorator arguments are only parsed once when the function is defined. So, while the arguments to `@time_trigger` can be variables or expressions, they are only evaluated at the...

The [tutorial](https://hacs-pyscript.readthedocs.io/en/stable/tutorial.html) also has a relatively prominent note about setting the log levels.

This is likely due to code you are running inside pyscript. You are likely calling some function that is blocking. Please look through your code for calls to `sleep` or...

See [this section](https://hacs-pyscript.readthedocs.io/en/stable/reference.html#avoiding-event-loop-i-o) in the docs.

It's likely that spotipy does blocking I/O, which stalls the main event loop. See the [docs here](https://hacs-pyscript.readthedocs.io/en/stable/reference.html#avoiding-event-loop-i-o). I'd recommend using async-spotify, which is designed for non-blocking async operation, or some...

Could it be incompatible versions of watchdog? The build-in integration `folder_watcher` used to require `watchdog==2.0.3`, which is the same as `pyscript`. But I noticed in 2022.3 that `folder_watcher` now requires...

This is fixed in 1.4.0. Closing.