Closed alisterburt closed 2 years ago
I've reproduced this locally with the following steps:
$ conda create -n ctl-39 python=3.9
$ conda activate ctl-39
$ pip install dask-ctl
Successfully installed MarkupSafe-2.0.1 click-8.0.3 cloudpickle-2.0.0 dask-2022.1.1 dask-ctl-2021.3.0 distributed-2022.1.1 fsspec-2022.1.0 heapdict-1.0.1 jinja2-3.0.3 locket-0.2.1 msgpack-1.0.3 packaging-21.3 partd-1.2.0 psutil-5.9.0 pyparsing-3.0.7 pyyaml-6.0 sortedcontainers-2.4.0 tblib-1.7.0 toolz-0.11.2 tornado-6.1 zict-2.0.0
$ python
Python 3.9.7 (default, Sep 16 2021, 08:50:36)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from dask_ctl import create_cluster
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'create_cluster' from 'dask_ctl' (/Users/jtomlinson/miniconda3/envs/ctl-39/lib/python3.9/site-packages/dask_ctl/__init__.py)
Investigating now.
Looks like this feature hasn't made it into a release yet. I've released 2022.2.0
so once that is pushed to PyPI things should be ok.
this... makes a lot of sense, on the cluster I was pip installing whilst locally I installed from the repo - thanks for looking into it and pushing the update, you're a star 🙂
bit of a weird one, can't seem to import
create_cluster
in a fresh conda environment with python 3.9 on one machine (head node of a cluster, linux environment) - I can't reproduce locally on my laptop running macOS, everything there works finehead node config
importing
get_cluster
from the same installation works fineAny idea what may be causing this?