You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run a python application which uses module couchdb with the module errno as the dependency. When I try to run the package locally, it turns out the error AttributeError: 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?
run the command wasmer run python/python@0.2.0 to enter the interactive shell.
run the command import errno to import the module
run the command print(errno.EHOSTDOWN) to get the error message
Expected behavior
No error.
Actual behavior
The output will be as follow:
$ wasmer run python/python@0.2.0
Type "help", "copyright", "credits" or "license"for more information.
>>> import errno
>>> print(errno.EHOSTDOWN)
Traceback (most recent call last):
File "<stdin>", line 1, in<module>
AttributeError: module 'errno' has no attribute 'EHOSTDOWN'. Did you mean: 'ENETDOWN'?
>>>
Additional context
None.
The text was updated successfully, but these errors were encountered:
miraclejzd
changed the title
something error with the standard library of package python/python@0.2.0
Something error with the standard library of package python/python@0.2.0Nov 15, 2024
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.
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
?$ wasmer -vV; rustc -vV wasmer 5.0.0 (49b1fcc 2024-10-29) binary: wasmer-cli commit-hash: 49b1fcc98e739b4cf5b9d6200397a472d9233de9 commit-date: 2024-10-29 host: x86_64-unknown-linux-gnu compiler: singlepass,cranelift,llvm c_api backend: rustc 1.76.0 (07dca489a 2024-02-04) binary: rustc commit-hash: 07dca489ac2d933c78d3c5158e3f43beefeb02ce commit-date: 2024-02-04 host: x86_64-unknown-linux-gnu release: 1.76.0 LLVM version: 17.0.6
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.
The text was updated successfully, but these errors were encountered: