Code Monkey home page Code Monkey logo

Comments (6)

cherusk avatar cherusk commented on July 28, 2024 1

@nzw0301 yes, you can see the import also in the code snippet I provided.

But I ran it manually now also in the airflow container:

airflow@56d394fe9f60:/opt/airflow$ python3
Python 3.9.15 (main, Oct 25 2022, 05:49:37)
[GCC 10.2.1 20210110] on linux
>>> import optuna
>>>

It succeeded as you can see. That the error stems from the dask workers I doubt, because it fails already at the optuna.integration.DaskStorage step.

from optuna-examples.

cherusk avatar cherusk commented on July 28, 2024 1

from optuna-examples.

cherusk avatar cherusk commented on July 28, 2024

Maybe @jrbourbeau, because he authored the example code!?

from optuna-examples.

nzw0301 avatar nzw0301 commented on July 28, 2024

Could you try import optuna on your environment to make sure your env is correctly setup?

from optuna-examples.

cherusk avatar cherusk commented on July 28, 2024

The example does also does not state the version requirements at the point when it worked. 😢

from optuna-examples.

cherusk avatar cherusk commented on July 28, 2024

I've found the issue.

The installs on the scheduler and the workers was done with conda, that's where this was coming from.

File "/opt/conda/lib/python3.9/site-packages/distributed/core.py", line 820, in _handle_comm
File "/opt/conda/lib/python3.9/site-packages/distributed/worker.py", line 3217, in run
File "/opt/conda/lib/python3.9/site-packages/distributed/protocol/pickle.py", line 73, in loads

Installing the pre-release version of optuna on the target dask cluster solved the issue. 😳

from optuna-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.