telnetlib connection #1182
iAmJamesGardner
started this conversation in
Packages
Replies: 1 comment
-
Pyodide doesn't offer support for the networking stack yet, which makes me believe that's why it's not working for you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checklist
What happened?
I tested importing and making a connection with telnetlib. The script works outside of the HTML page. Inside, the browser displays the following error:
JsException(PythonError: Traceback (most recent call last): File "/lib/python3.10/site-packages/_pyodide/_base.py", line 429, in eval_code .run(globals, locals) File "/lib/python3.10/site-packages/_pyodide/_base.py", line 300, in run coroutine = eval(self.code, globals, locals) File "", line 7, in File "/lib/python3.10/telnetlib.py", line 235, in open self.sock = socket.create_connection((host, port), timeout) File "/lib/python3.10/socket.py", line 845, in create_connection raise err File "/lib/python3.10/socket.py", line 833, in create_connection sock.connect(sa) BlockingIOError: [Errno 26] Operation in progress )
What browsers are you seeing the problem on? (if applicable)
Chrome, Microsoft Edge
Console info
No response
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions