libpython-clj icon indicating copy to clipboard operation
libpython-clj copied to clipboard

from-import does not support "string"

Open behrica opened this issue 3 years ago • 0 comments

This syntax cannot be used in libpython-clj,

from yellowbrick.contrib.wrapper import CLASSIFIER

when classifier is a String.

(py/from-import yellowbrick.contrib.wrapper CLASSIFIER)

fails with

 Unhandled java.lang.IllegalArgumentException
   No implementation of method: :get-attr of protocol:
   #'libpython-clj2.python.protocols/PPyAttr found for class: java.lang.String

          core_deftype.clj:  583  clojure.core/-cache-protocol-fn

behrica avatar Dec 06 '22 22:12 behrica