-
-
Notifications
You must be signed in to change notification settings - Fork 72
Description
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 ?