clj-python / libpython-clj

Python bindings for Clojure
Eclipse Public License 2.0
1.05k stars 68 forks source link

JVM crashes when requiring `libpython-clj2.require` on 64bit Raspberry Pi 4 #258

Open Ramblurr opened 7 months ago

Ramblurr commented 7 months ago

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]) the jvm crashes. The log is attached.

H3T-.log

cnuernber commented 7 months ago

I think you need to break this down a bit. We don't know which module import is causing the crash so the first question is can you import any modules.

My advice is to use only libpython-clj2.python namespace and see if you can import any modules first. Then go from there. the python require namespace does a significant amount of work to determine all of the exported symbols of a python module in a robust way and somewhere along the line this module metadata generation system is failing. So we need to know where it is failing.

If you can't import any modules that is one issue. If you can't import a specific module the metadata system wants that is another issue.