libpython-clj
libpython-clj copied to clipboard
Python bindings for Clojure
Calling ``` (require 'libpython-clj2.require) ``` calls (via `metadata`) `py/initialize!` without parameters. This is unexpected and defeats the existence of certain parameters to `initialize!`. Maybe `initialize!!` could read a certain edn...
It is a kind of FUP of #194 Similar code, same python library "simpletransformers" But as I don't see a crash, but a deadlock, I think it is better to...
I'm trying to create a namespace that initializes the python connection, and goes on to define some analytic functions which can then be required from other namespaces. If I evaluate...
I'm trying out libpython-clj 2.018 on JDK 19, and I'm getting the following error, both the first time I try to initialize, and when attempting to require `libpython-clj2.require`: java.lang.ClassNotFoundException: jdk.incubator.foreign.MemoryAddress...
We have a long-running process that uses `libpython-clj` as a bridge between Java and Python code. We've noticed that we seem to be for some reason, leaking memory just a...
Doing this ``` (pyreq/require-python 'sklearn.datasets) (def newsgroups (sklearn.datasets/fetch_20newsgroups :subset "all" :remove (builtins/tuple [ "headers" "footers" "quotes"]))) ``` and teh opening `newsgroups` i te c`cider-inspector` gives an error Seems to happen...
I'm just trying to get setup with the project, but am getting crashes. I can require `[libpython-clj2.python :as py]` and call `(py/initialize!)` but when I eval `(require '[libpython-clj2.require :as pyreq])`...
```clojure (require-python '[builtins :as bt]) (bt/eval "1") ;Execution error at libpython-clj2.python.ffi/check-error-throw (ffi.clj:708) . ; SystemError: frame does not exist ``` while this works ```clojure (require-python '[builtins :as bt]) (bt/eval "1"...
Hi, im trying to run some simple gymnasium stuff and getting the following error: ```clojure (require-python '[gymnasium :as gym]) (def env (gym/make "LunarLander-v2" :render_mode "human")) ; error (Temurin java 17)...
Should this library support JDK-20? With JDK-19 everything works. However, when upgrading to JDK-20 I get following error: ``` Caused by: java.lang.ClassNotFoundException: jdk.incubator.foreign.MemoryAddress ```