This works fine on most systems, but for some reason fails on some
systems. The failure is odd - the dask-yarn CLI is properly found, but
the dask_yarn library fails to be on Python path. This may be due to
the shell not being rehashed properly, so the wrong python is used, I'm
not sure. It's likely a bug in conda-pack.
Either way, specifying the full path to the proper Python fixes things,
so we use that here. We now generate the following script:
Previously, if an archived environment was provided, we'd generate the following script for running a dask worker:
This works fine on most systems, but for some reason fails on some systems. The failure is odd - the
dask-yarn
CLI is properly found, but thedask_yarn
library fails to be on Python path. This may be due to the shell not being rehashed properly, so the wrong python is used, I'm not sure. It's likely a bug in conda-pack.Either way, specifying the full path to the proper Python fixes things, so we use that here. We now generate the following script:
This should work in all cases, even in the presence of a conda-pack bug (which we should still fix).
Fixes #114, fixes #111.