GithubHelp home page GithubHelp logo

Ipcontroller doesn't find ipcontroller-engine.json when '--work-dir' flag for c.SSHEngineSetLauncher.engines is set in ipcluster_config.py about ipyparallel HOT 4 CLOSED

ipython avatar ipython commented on July 20, 2024
Ipcontroller doesn't find ipcontroller-engine.json when '--work-dir' flag for c.SSHEngineSetLauncher.engines is set in ipcluster_config.py

from ipyparallel.

Comments (4)

minrk avatar minrk commented on July 20, 2024

The gist appears to be that it's using .ipython rather than ~/.ipython, so the path is sensitive to the working directory. This should presumably not be the case.

from ipyparallel.

simkovic avatar simkovic commented on July 20, 2024

You are correct. Note though, that I'm setting absolute path in my config file but the controller does not respect my choice and turns it into rel path. Is there a quick fix? Is there an option to ask controller to use absolute paths? Or do I need to tweak the source code? What would be easier/feasible - postpone the change to working directory after the engines are started loaded or force the controller/engines to keep absolute path? Is there any particular reason why the engines work with relative paths?

In addition what is the purpose of the profile-dir? I thought profile-dir is the directory that specifies the location of the config files while the work-dir is the working directory where the code, sent to the engines, is executed.

from ipyparallel.

minrk avatar minrk commented on July 20, 2024

It's probably a bug in the launcher code stripping the path prefix, not taking the working dir into account.

from ipyparallel.

simkovic avatar simkovic commented on July 20, 2024

I now have a fix. The solution is simply to set '--profile-dir' for each engine. If the remote profile dir is not set, the launcher guesses that the remote profile dir is a subdirectory of the remote working dir. This is effectively accomplished with the help of SSHClusterLauncher._strip_home which is a clumsy hack and should be removed. strip_home makes it impossible for the user to specify the remote user dir by setting c.SSHClusterLauncher.remote_profile_dir in the config, which initially confused me. In general a much better guess could be constructed based on the location data of each engine.

from ipyparallel.

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.