ModuleNotFoundError: No module named 'dask_xgboost' during worker pickle.loads()
See original GitHub issueRunning the Helm Chart latest version, with:
- name: EXTRA_PIP_PACKAGES
value: s3fs dask-ml dask-xgboost --upgrade
k8s Dask worker pod logs confirm these were all installed on the workers. I also ran a job pip show ...
for these to check.
Despite that, when running a notebook with dask_xgboost
, I get this in the worker:
/opt/conda/lib/python3.7/site-packages/tornado/gen.py in wrapper()
207 # performance penalty for the synchronous case.
208 try:
--> 209 yielded = next(result)
210 except (StopIteration, Return) as e:
211 future_set_result_unless_cancelled(
/opt/conda/lib/python3.7/site-packages/distributed/worker.py in run()
2923 @gen.coroutine
2924 def run(server, comm, function, args=(), kwargs={}, is_coro=None, wait=True):
-> 2925 function = pickle.loads(function)
2926 if is_coro is None:
2927 is_coro = iscoroutinefunction(function)
/opt/conda/lib/python3.7/site-packages/distributed/protocol/pickle.py in loads()
57 def loads(x):
58 try:
---> 59 return pickle.loads(x)
60 except Exception:
61 logger.info("Failed to deserialize %s", x[:10000], exc_info=True)
ModuleNotFoundError: No module named 'dask_xgboost'
I’m more than a little stumped … all I can guess is that somehow this module is imported twice in incompatible ways … maybe the dask_ml
import into dask_ml.xgboost
?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
ModuleNotFoundError: No module named 'dask_xgboost'
I am trying to run dask_ml functions but the system does not accept my installation and gives and error when I import ...
Read more >ModuleNotFoundError: No module named 'dask-xgboost'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'dask-xgboost' How to remove the Modul.
Read more >Fix ModuleNotFoundError: No module named 'sklearn'
This error indicates that the scikit-learn (aka sklearn ) package was not installed, or even if it was installed for some reason it...
Read more >No module named 'xgboost' when using pickle - Streamlit
Hi, I am trying to deploy a xgboost classifier using streamlit. I have the model trained in a jupyter notebook file in a...
Read more >How to Train an Object Detection Model with Keras
It does not work with TensorFlow 2.0+ or Keras 2.2.5+ because a ... to load the dataset, with any name you like such...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah, it usually doesn’t need those libraries but in the case of dask-xgboost, the scheduler is used to host the XGBoost master node
On Sun, Apr 14, 2019 at 6:16 PM Brett Randall notifications@github.com wrote:
@stromal I’d recommend opening a new issue with a minimal reproducible example if you are having problems. This issue is over a year old