Skip to content

[BUG]  #411

@DorkYBru

Description

@DorkYBru

I've got this bug : "Element.write: PythonError: Traceback (most recent call last):
File "/lib/python3.10/asyncio/futures.py", line 201, in result
raise self._exception
File "/lib/python3.10/asyncio/tasks.py", line 232, in __step
result = coro.send(None)
File "/lib/python3.10/site-packages/_pyodide/_base.py", line 500, in eval_code_async
await CodeRunner(
File "/lib/python3.10/site-packages/_pyodide/_base.py", line 351, in run_async
coroutine = eval(self.code, globals, locals)
File "", line 7, in
TypeError: expected string or buffer
--> True"
Here's code that i used:
html:
"<!doctype html>

<script defer src="https://pyscript.net/alpha/pyscript.js"></script> <script src="https://cdn.tailwindcss.com"></script> - micropip - regex - asyncio
" python: " import regex as re from pyodide.http import pyfetch import asyncio url = "https://ip.aruljohn.com/" oip = pyfetch(url , method="GET") pattern = re.compile(r'^\d+\.\d+\.\d+\.\d+$') matched = pattern.finditer(oip) all = re.search(r'^\d+\.\d+\.\d+\.\d+$',oip) print(all) for match in matched: print(match) "

I was expecting printing out two ip's but it didn't work.

OS: Windows 10
Browser's: Chromium, Librewolf(Firefox)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions