Skip to content

socket.AF_UNIX undefined #530

@Berstanio

Description

@Berstanio

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions