Skip to content

Error requiring libpython-clj2.require on M1 Mac - JDK-18 #204

@Hendekagon

Description

@Hendekagon

I'm using libpython-clj 2.018 with aarch64 jdk-18.0.1.jdk, with :jdk-17 alias' :jvm-opts and I get this error when (require '[libpython-clj2.require :refer [require-python]]) on an M1 Mac:

INFO: Unable to find direct buffer constructor - falling back to jdk16 memory model. Reflection warning, tech/v3/datatype/ffi/nio_buf_mmodel.clj:14:22 - call to method asSegment on jdk.incubator.foreign.MemoryAddress can't be resolved (no such method). Reflection warning, tech/v3/datatype/ffi/nio_buf_mmodel.clj:15:22 - reference to field asByteBuffer can't be resolved. Reflection warning, tech/v3/datatype/ffi/nio_buf_mmodel.clj:19:22 - call to method order can't be resolved (target class is unknown). Reflection warning, tech/v3/datatype/ffi/nio_buf_mmodel.clj:20:19 - call to method order can't be resolved (target class is unknown). Apr 26, 2022 10:12:23 AM libpython-clj2.python.ffi invoke SEVERE: Exception while releasing object java.lang.IllegalArgumentException: No matching method asSegment found taking 2 args for class jdk.internal.foreign.MemoryAddressImpl at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:127) at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:102) at tech.v3.datatype.ffi.nio_buf_mmodel$direct_buffer_constructor.invokeStatic(nio_buf_mmodel.clj:14) at tech.v3.datatype.ffi.nio_buf_mmodel$direct_buffer_constructor.invoke(nio_buf_mmodel.clj:10)...

what am I doing wrong ?

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