signatory icon indicating copy to clipboard operation
signatory copied to clipboard

fix import error

Open jmlinx opened this issue 1 year ago • 2 comments

Importing sklearn resolves the _impl import error on M2 MacBook.

jmlinx avatar Jan 11 '24 16:01 jmlinx

Signatory shouldn't depend on sklearn at all. I'm not sure where you're getting this from?

patrick-kidger avatar Jan 11 '24 18:01 patrick-kidger

I used to have an Intel MacBook and signatory v1.2.6.1.9.0 with Python 3.8/3.9 worked well. After I switched to an M2 MacBook, with the same version of signatory and Python, I encountered an import error at line from . import _impl when I tried to import signatory. By chance I once imported sklearn before signatory and everything worked through. It seems to implicitly resolve some dependency issues. Of course, there should be a better way to address this problem.

jmlinx avatar Jan 11 '24 19:01 jmlinx