-
Notifications
You must be signed in to change notification settings - Fork 513
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
New version of Brython doesn't work anymore on Deno #2521
Comments
Note: with the new versions of Brython, I also have a |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Seems to occur when I try to execute the following code in Deno (works in the browser) : # /Hello World/GET.bry
from browser import self
async def RequestHandler(request, _):
return self.Response.new("Hello World ;)") Strangely, the following code does work in Deno : # /echo (url)/POST.bry
from browser import self
async def RequestHandler(request, _):
return self.Response.new(request.url) |
It seems the |
Okay, now it works by adding : globalThis.$B = globalThis.__BRYTHON__ = {};
globalThis.inner = null; To make Brython work on Deno, I had to :
|
runPythonSource()
in Deno
Upgraded my version of Deno. Had to add : globalThis.global = {};
globalThis.module = {}; |
EDIT: workaround here.
A little bug I encountered when trying to execute Brython inside Deno :
The text was updated successfully, but these errors were encountered: