skpro icon indicating copy to clipboard operation
skpro copied to clipboard

problem in loading the skpro

Open honestee opened this issue 1 year ago • 1 comments

It has been 2 days that I am trying to import skpro. But I can not I keep getting this error:

cannot import name 'six' from 'sklearn.externals' (C:\Users\My Book\anaconda3\lib\site-packages\sklearn\externals_init_.py)

honestee avatar Oct 05 '22 11:10 honestee

Hi @honestee, sorry to hear that you've encountered issues. As a workaround you should be able to do something like this:

import six
import sys
sys.modules['sklearn.externals.six'] = six

import skpro

The real solution would be to change this import to just import six and generally update the dependencies of the project (note that it hasn't been actively maintained for a while so a lot of dependencies have gone stale).

Would you be interested in upgrading the package and sending a pull request?

frthjf avatar Oct 05 '22 15:10 frthjf