dask / dask-xgboost

BSD 3-Clause "New" or "Revised" License
162 stars 43 forks source link

"module 'dask_xgboost' has no attribute * erors" #53

Open DKorman opened 4 years ago

DKorman commented 4 years ago

Hello,

I am experiencing strange behaviour when trying to use dask-xgboost. I am on Windows 10 machine and am using Python 3.7. I am trying to test dask on a local machine first with a local cluster.

I have no errors when importing dask_xgboost, but when I try to call any of it's functions I get a no attribute error. For some reason I am unable to use this package. Two examples that throw the error: 1) bst = dask_xgboost.train(client, params, X_train, y_train, num_boost_round=10) --> no attribute train 2) model = dxgb.XGBClassifier() --> no attribute Xgb

This is probably something silly and perhaps Windows related.

Thanx for any help!

TomAugspurger commented 4 years ago

Most likely it's not installed properly. How'd you install dask-xgboost?

DKorman commented 4 years ago

I was using the GUI of pycharm to install it with the Conda package manager.

TomAugspurger commented 4 years ago

Can you create a new conda environment and post the output of installing dask-xgboost?

On Fri, Sep 20, 2019 at 9:02 AM DKorman notifications@github.com wrote:

I was using the GUI of pycharm to install it with the Conda package manager.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dask/dask-xgboost/issues/53?email_source=notifications&email_token=AAKAOIRKNV5RPWXDIDQQG2LQKTJZFA5CNFSM4IYXHGC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7GZNTY#issuecomment-533567183, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKAOISTJCJOEMTIGK7WSPTQKTJZFANCNFSM4IYXHGCQ .

DKorman commented 4 years ago

This is the command line output after installing dask-xgboost using anaconda prompt:

Package xgboost conflicts for: dask-xgboost -> xgboost Package vc conflicts for: python=3.7 -> vc[version='14.*|>=14,<15.0a0|>=14.1,<15.0a0'] Package distributed conflicts for: dask-xgboost -> distributed[version='>=1.16.0'] Package openssl conflicts for: python=3.7 -> openssl[version='>=1.1.1a,<1.1.2a|>=1.1.1b,<1.1.2a|>=1.1.1c,<1.1.2a'] Package sqlite conflicts for: python=3.7 -> sqlite[version='>=3.25.3,<4.0a0|>=3.26.0,<4.0a0|>=3.27.2,<4.0a0|>=3.28.0,<4.0a0|>=3.29.0,<4.0a0'] Package pip conflicts for: python=3.7 -> pip Package dask conflicts for: dask-xgboost -> dask[version='>=0.14.0']

This is output fresh after new environment, without dask installed.

TomAugspurger commented 4 years ago

Yeah, that didn't install correctly. I'm not entirely sure why though.

Is that from the conda-forge channel? May need to make a new release / build.

DKorman commented 4 years ago

Hmm, I didnt specify to use forge channel. Does it redirect to it if it doesnt find the item on the primary channel?

TomAugspurger commented 4 years ago

Depends on your conda config. conda config --show-sources