sb-ai-lab / Py-Boost

Python based GBDT implementation on GPU. Efficient multioutput (multiclass/multilabel/multitask) training
Apache License 2.0
163 stars 13 forks source link

ImportError: cannot import name 'Literal' from 'typing' #9

Closed dev-rinchin closed 1 year ago

dev-rinchin commented 1 year ago

py-boost: v0.4.1 python: 3.7 OS: Red Hat enterprise linux 8.5

https://github.com/python/typing/issues/707

YM-225 commented 1 year ago

from py_boost.utils.tl_wrapper import TLPredictor, TLCompiledPredictor

btbpanda commented 1 year ago

@YM-225 As I found yesturday, this error is cauesd by treelite package after it was updated to 3.2.0 version. I am going to fix the requirements very soon but here is the manual fix during installation:

pip install -U py-boost
pip install -U treelite==3.1.0
btbpanda commented 1 year ago

Solved. Please update to 0.4.2:

pip install -U py-boost