Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BERTopic can't work with new versions of pyyaml in Colab #294

Closed
KickItLikeShika opened this issue Oct 15, 2021 · 3 comments
Closed

BERTopic can't work with new versions of pyyaml in Colab #294

KickItLikeShika opened this issue Oct 15, 2021 · 3 comments

Comments

@KickItLikeShika
Copy link

Hey, After installing BERTopic in colab, I was not able to import it, I was getting this

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-6-1d2f5f7c9d67> in <module>()
----> 1 from bertopic import BERTopic

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'

After that I downgraded pyyaml to 5.4.1 and that made it work, I need to know if I can make it work without trying to downgrade pyyaml?
Thanks in advance!

@MaartenGr
Copy link
Owner

Thank you for posting your solution. This is a known issue for which you can find a fix in this pull request. However, it seems that pyyaml 6.0 breaks quite a bit of code so a downgrade is required.

@KickItLikeShika
Copy link
Author

Thanks a lot for this @MaartenGr, sounds OK!
Will close this issue, It was my first time to use BERTopic, I wanna say I'm very impressed by you work, thanks!

@MaartenGr
Copy link
Owner

Thank you for the kind words. If you have any questions regarding other pieces of BERTopic or you find more issues, please let me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants