wefe icon indicating copy to clipboard operation
wefe copied to clipboard

Error on import in Google Colab (v0.3.2) with PL

Open abdu355 opened this issue 3 years ago • 2 comments

---------------------------------------------------------------------------
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'

abdu355 avatar Jan 31 '22 06:01 abdu355

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

pbadillatorrealba avatar Feb 01 '22 14:02 pbadillatorrealba

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

abdu355 avatar Feb 05 '22 14:02 abdu355