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

[BUG] import error after installation of pycaret[full] on Google Colab #1998

Closed
teddylee777 opened this issue Dec 29, 2021 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@teddylee777
Copy link

teddylee777 commented Dec 29, 2021

Describe the bug
I am testing on a Google Colab.
After I install pycaret[full] on Google Colab and then when I try to import either
classfication/regression modules I got following error


TypeError Traceback (most recent call last)
in ()
----> 1 from pycaret.classification import *

11 frames
/usr/local/lib/python3.7/dist-packages/distributed/config.py in ()
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'


TypeError Traceback (most recent call last)
in ()
----> 1 from pycaret.regression import *

11 frames
/usr/local/lib/python3.7/dist-packages/distributed/config.py in ()
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'

To Reproduce

# installation
!pip install pycaret[full]
from pycaret.regression import * 
from pycaret.classification import * 

Expected behavior
does not produce any error on import

Additional context
I've also tried additional installation

!pip install pyyaml==5.4.1

but it didn't work

Versions

pycaret version : 2.3.5

Thanks in advance

@teddylee777 teddylee777 added the bug Something isn't working label Dec 29, 2021
@teddylee777 teddylee777 changed the title [BUG] [BUG] import error after installation of pycaret[full] on Google Colab Dec 29, 2021
@moezali1
Copy link
Collaborator

@teddylee777

You can solve this problem by running this command after installing pycaret:

You have to click on the RESTART RUNTIME button for the changes to take effect on Colab.

!pip uninstall -y pyyaml
!pip install pyyaml==5.4.1

@teddylee777
Copy link
Author

Thanks for the solutions!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants