Comments (7)
Well, the documentation might still need a remark added, as it doesn't show full paths to the template files.
from ipyparallel.
Btw, are the profiles that get generated with "profile create" written based on inspecting Python classes or something?
The unstable ordering is a bug that will be fixed in traitlets 4.1.
from ipyparallel.
Okay, so I was using the wrong configuration item. c.PBSControllerLauncher.batch_file_name
should be c.PBSControllerLauncher.batch_template_file
(and similar for the engine template).
But the template file name needs to be a full path to a file, its seems. As otherwise it won't be found. I.e. with
c.PBSControllerLauncher.batch_template_file = 'controller.template'
c.PBSEngineSetLauncher.batch_template_file = 'engine.template'
and both template files located in $HOME/.ipython/profile_1engine-per-node
I get:
(3.4) paulm@login:~$ ipcluster start --profile=1engine-per-node -n 2
2015-09-11 14:09:35.377 [IPClusterStart] Starting ipcluster with [daemon=False]
2015-09-11 14:09:35.378 [IPClusterStart] Creating pid file: /home/paulm/.ipython/profile_1engine-per-node/pid/ipcluster.pid
2015-09-11 14:09:35.379 [IPClusterStart] Starting Controller with PBS
2015-09-11 14:09:35.380 [IPClusterStart] ERROR | Controller start failed
Traceback (most recent call last):
File "/home/paulm/pyenv/3.4/lib/python3.4/site-packages/ipyparallel/apps/ipclusterapp.py", line 503, in start_controller
self.controller_launcher.start()
File "/home/paulm/pyenv/3.4/lib/python3.4/site-packages/ipyparallel/apps/launcher.py", line 1188, in start
return super(PBSControllerLauncher, self).start(1)
File "/home/paulm/pyenv/3.4/lib/python3.4/site-packages/ipyparallel/apps/launcher.py", line 1135, in start
self.write_batch_script(n)
File "/home/paulm/pyenv/3.4/lib/python3.4/site-packages/ipyparallel/apps/launcher.py", line 1099, in write_batch_script
with open(self.batch_template_file) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'controller.template'
ERROR:tornado.application:Exception in callback functools.partial(<function wrap.<locals>.wrapped at 0x7f462a5de0d0>)
Traceback (most recent call last):
File "/home/paulm/pyenv/3.4/lib/python3.4/site-packages/zmq/eventloop/minitornado/ioloop.py", line 463, in _run_callback
callback()
File "/home/paulm/pyenv/3.4/lib/python3.4/site-packages/zmq/eventloop/minitornado/stack_context.py", line 331, in wrapped
raise_exc_info(exc)
File "<string>", line 3, in raise_exc_info
File "/home/paulm/pyenv/3.4/lib/python3.4/site-packages/zmq/eventloop/minitornado/stack_context.py", line 302, in wrapped
ret = fn(*args, **kwargs)
File "/home/paulm/pyenv/3.4/lib/python3.4/site-packages/ipyparallel/apps/ipclusterapp.py", line 548, in start
self.start_controller()
File "/home/paulm/pyenv/3.4/lib/python3.4/site-packages/ipyparallel/apps/ipclusterapp.py", line 503, in start_controller
self.controller_launcher.start()
File "/home/paulm/pyenv/3.4/lib/python3.4/site-packages/ipyparallel/apps/launcher.py", line 1188, in start
return super(PBSControllerLauncher, self).start(1)
File "/home/paulm/pyenv/3.4/lib/python3.4/site-packages/ipyparallel/apps/launcher.py", line 1135, in start
self.write_batch_script(n)
File "/home/paulm/pyenv/3.4/lib/python3.4/site-packages/ipyparallel/apps/launcher.py", line 1099, in write_batch_script
with open(self.batch_template_file) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'controller.template'
from ipyparallel.
And if you specify them as full paths?
from ipyparallel.
Well, yes, that's what I wrote. I need to specify their full paths, and then they are found.
from ipyparallel.
Then this issue can be closed?
from ipyparallel.
Hi! Iām going through and cleaning up old/stale issues on this repo. Sorry for leaving it forever. I'm hoping to bring this repo back to a healthier state.
Template paths are evaluated relative to the cwd, like most file path arguments (e.g. cat pbs.engine.template
). Absolute paths always work, and relative paths are not treated specially, but are sensitive to the working directory.
from ipyparallel.
Related Issues (20)
- No module named 'jupyter_server' HOT 2
- How to make it work with torch DDP HOT 4
- Transition from `CompositeError` to builtin `ExceptionGroup` HOT 1
- ipcluster nbextension enable not working after notebook upgrade HOT 2
- Print in multiprocessing.Process crashing the engine HOT 7
- Windows ssh support by ipcluster HOT 39
- map_sync with pandas operation function does not finish. HOT 1
- Py3.10 code serialization does not work on PyPy3.10
- sync_imports not working as intended HOT 9
- ipyparallel and pymoo doesn't work HOT 2
- AsyncResult.join doesn't work
- AsyncResult.abort() call hangs if not all jobs can be stopped HOT 1
- Question: engines and databases HOT 1
- BroadcastView map Not Implemented HOT 3
- Cannot run ipythonparallel with openmpi HOT 7
- 60s timeout on get_connection_info() is not configurable HOT 1
- please release/tag/pypi the current version as it supports JupyterLab 4.x HOT 2
- SSHEngineLauncher does not work as expected HOT 2
- Outstanding task on client but hub says completed when using broadcast view
- Entrypoints should be phased out HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ipyparallel.