-
Notifications
You must be signed in to change notification settings - Fork 134
Open
Description
I was playing with graalpy on macOS and tried opening a socket:
public static void main(String[] args) {
try (Context context = GraalPyResources.createContext()) {
String src = """
import socket
print(socket.AF_UNIX)
""";
context.eval("python", src);
}
}
However, I got this message:
Exception in thread "main" AttributeError: module 'socket' has no attribute 'AF_UNIX'
at <python> <module>(Unknown)
at org.graalvm.polyglot.Context.eval(Context.java:446)
Is the socket API unsupported in graalpy, or do I misconfigured something? If it is unsupported, is there a comprehensive list of unsupported features?
I'm using graalpy version 24.2.1
with python version 3.11
.
Metadata
Metadata
Assignees
Labels
No labels