You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(require '[libpython-clj2.python :as py :refer [py.. py**] :reloadtrue])
(py/initialize!:python-executable"venv/bin/python")
(require '[libpython-clj2.require :refer [require-python import-python]])
(import-python)
(py/run-simple-string"class Thing: def __call__(this, data): return {a: b for a, b in data.items()}" )
(py.. (__main__/Thing) (__call__ {} ))
Expected: {}
Actual:
Traceback (mostrecentcalllast): File "<string>", line 4, in __call__ File "<string>", line 4, in <dictcomp> File "/home/jay/.pyenv/versions/3.7.13/lib/python3.7/_collections_abc.py",
line 743, in __iter__ for key in self._mapping: Exception:
java.lang.NullPointerException:java.lang.NullPointerException: null