cannot import name 'dumps_msgpack' from 'distributed.protocol.core'
ezaron opened this issue · 3 comments
I am using linux ubuntu 20.04 LTS with a freshly installed anaconda3, and I installed swot_simulator using conda. (During the installation of swot_simulator, conda spent many many minutes "solving environment".)
I have set ssh_plugin to use the aviso.py plugin and the sample datafile which is provided inside the swot_simulator/data directory. The paths and ssh_plugin were entered into the generated conf.py file template.
The attempt to run,
swot_simulator conf.py
generates the error message from inside the dask call-chain,
ImportError: cannot import name 'dumps_msgpack' from 'distributed.protocol.core' (/home/ezaron/opt/anaconda3/lib/python3.8/site-packages/distributed/protocol/core.py)
[E - 127.0.1.1 - Sep 22 10:56:53 - launcher] End of processing.
Googling the error message, I find a possible workaround to install an older version of the distributed library,
conda install -c conda-forge distributed=2021.4.0
, but this did not change the error message.
Suggestions?
Aha. I see that conda failed to resolve the incompatible versions.
The error log from conda together with the error output of swot_simulator are attached.
errormesg.txt
I just did the test on a blank environment and it does not reproduce the problem. Can you try to do this handling?
conda create --name test python=3.8
conda activate test
conda install -c conda-forge swot_simulator
You can choose the version of Python you want. But I test with the Python 3.8 version.
-- thank you for your help. The installation in the conda environment worked.
The example case using the aviso file now appears to work correctly. SWOT_L2_LR files are created with populated ssh_karin variable.