Hi, i'm trying to use pyodide to capture the mac address using subprocess
in the html and I get the following error: Uncaught (in promise)
PythonError: Traceback (most recent call last):
( OvO ) intex.html
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<!DOCTYPE html> <html> <head> <script src="
https://cdn.jsdelivr.net/pyodide/v0.21.3/full/pyodide.js"></script> </head>
<body> <script type="text/javascript"> async function main() { let pyodide
= await loadPyodide(); // Pyodide is now ready to use...
console.log(pyodide.runPython(` *import subprocess subprocess.run(['ip',
'link', 'sho**w'])* `)); }; main(); </script> </body> </html>
( OvO ) Output Browser Console
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
File "/lib/python3.10/site-packages/_pyodide/_base.py", line 435, in
eval_code .run(globals, locals) File
"/lib/python3.10/site-packages/_pyodide/_base.py", line 304, in run
coroutine = eval(self.code, globals, locals) File "<exec>", line 3, in
<module> File "/lib/python3.10/subprocess.py", line 501, in run with
Popen(*popenargs,
**kwargs) as process: File "/lib/python3.10/subprocess.py", line 966, in
__init__ self._execute_child(args, executable, preexec_fn, close_fds, File
"/lib/python3.10/subprocess.py", line 1775, in _execute_child self.pid =
_posixsubprocess.fork_exec( OSError: [Errno 52] Function not implemented at
new_error (pyodide.asm.js:10:218123) at pyodide.asm.wasm:0xdef7c at
pyodide.asm.wasm:0xdf077 at Module._pythonexc2js (pyodide.asm.js:10:900301)
at Module.callPyObjectKwargs (pyodide.asm.js:10:119233) at Module.callPyObject
(pyodide.asm.js:10:119442) at PyProxyClass.apply (pyodide.asm.js:10:126886)
at Object.apply (pyodide.asm.js:10:125914) at Object.runPython
(pyodide.asm.js:10:149946) at main (index.html:11:29)
Att,
*João Carlos*
*Phone* : +55 11 9 4690 0955