wefe
wefe copied to clipboard
Error on import in Google Colab (v0.3.2) with PL
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-1-ad60f770c107> in <module>()
----> 1 from wefe import Query, WEAT
2 import gensim.downloader as api
3
4 word2vec_model = model
13 frames
/usr/local/lib/python3.7/dist-packages/distributed/config.py in <module>()
18
19 with open(fn) as f:
---> 20 defaults = yaml.load(f)
21
22 dask.config.update_defaults(defaults)
TypeError: load() missing 1 required positional argument: 'Loader'
Hello,
I need more context to understand what your problem is. However, according to what you have posted, the error would be caused by Dask, which is not a dependency of WEFE and is therefore beyond what I could help.
Are you running WEFE on some kind of distributed environment? I just ran it on a Colab and had no problems installing and importing it.
Best regards
So apparently it throws this error when Pytorch Lightning is installed, to reproduce try running:
!pip install pytorch_lightning --quiet
and then
from wefe import Query, WEAT