Skip to content

<class 'OSError'> __syscall_getsockname 3 #1305

Answered by JeffersGlass
tekashifuta asked this question in Q&A
Discussion options

You must be logged in to vote

It appears that that PYZK uses the socket module to make it's connections (to a timeclock system or similar, I'm guessing). The socket module is one of the modules not fully supported/supportable in Pyodide due to limitations within the browser-window environment - the browser simply doesn't provide access to the same kind of low-level networking primitives that a native OS does.

One potential way around this, though not a simple one, would be to re-implement the connection using a WebSocket, the in-browser equivalent of a socket. Perhaps by subclassing the ZK Class or similar?

Since this is not a PyScript-specific issue, I'm going to convert it to a Discussion.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tekashifuta
Comment options

Answer selected by tekashifuta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
upstream Issues relating to upstream features or bugs.
2 participants
Converted from issue

This discussion was converted from issue #1304 on March 24, 2023 12:38.