Open seanpk opened 3 months ago
Thanks for the report! The message occurs in pyodide.loadPackage
(which is used internally by micropip). When calling pyodide.loadPackage
directly, you can pass the messageCallback
parameter, but there is currently no way to do so in micropip.install
.
I think the correct behavior is that setting pyodide.setStdout
should also change the stream that pyodide.loadPackage
outputs, so this is a bug.
For now, you can suppress the message by re-defining console.log
originalConsoleLog = console.log
console.log = () => {}
micropip.install('ezdxf')
console.log = originalConsoleLog
setting pyodide.setStdout should also change the stream that pyodide.loadPackage outputs
Could someone open a Pyodide issue for this? While we're at it, maybe we should add a JS API to write to pyodide stdout/stderr.
When I do
micropip.install(module)
I get messages about the dependencies that are being pulled with it.E.g.,:
will print this to console:
I have tried surrounding the call to
install
with a no-op stdout function, i.e.:but this doesn't change anything.
How can I suppress these messages?