Open miraclejzd opened 3 hours ago
I guess CPython source code detects whether EHOSTDOWN
is defined on the target system or not. Since we do not define it in the wasix-libc, it won't be included in the final compiled errno module.
That's really a bad news. So it means all the applications that use errno.EHOSTDOWN
will not work?
Unfortunately no. The solution is simple though. We could include the definition in the libc, if it makes sense, and recompile python and re-publish the package. I'll discuss this with the team.
Thanks for reporting the issue.
Describe the bug
I am trying to run a python application which uses module
couchdb
with the moduleerrno
as the dependency. When I try to run the package locally, it turns out the errorAttributeError: module 'errno' has no attribute 'EHOSTDOWN'. Did you mean: 'ENETDOWN'?
Is there something wrong with the standard library of package
python/python@0.2.0
?Steps to reproduce
wasmer run python/python@0.2.0
to enter the interactive shell.import errno
to import the moduleprint(errno.EHOSTDOWN)
to get the error messageExpected behavior
No error.
Actual behavior
The output will be as follow:
Additional context
None.