-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Import error when initializing interpreter in a wasm_bindgen function #3749
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
Comments
maybe features? would you try one of:
|
Doesn't seem to work either. I've reproduced the issue in a separate repo, so this might give more insight into the problem: |
@coolreader18 do you have advice? i also want to learn the best way to do this |
@coolreader18 would you check this one please? |
I didn't check it actually fix this problem, but maybe related to: https://github.com/RustPython/RustPython/pull/4133/files#diff-30ece91325961148e59f39663d0039971a03ffac73a45b6e0543645af23629c9R45-R46 |
Uh oh!
There was an error while loading. Please reload this page.
When initializing an interpreter and compiling to wasm, we are met with the following error in the browser console:
ImportError: Cannot import builtin module _thread
Our simple initialization code:
We are using rustpython as a git dependency in our project, are we missing something important here?
The text was updated successfully, but these errors were encountered: