Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Anaconda Error - module 'brotli' has no attribute 'error'

I updated anaconda using Anaconda Command Prompt.

After update whenever I run any command ex: conda info or conda list I get the below error

module 'brotli' has no attribute 'error'

I would Really appreciate any help on this! Not sure how it solve it

like image 848
TigSh Avatar asked May 19 '20 00:05

TigSh


3 Answers

I solved the issue by installing urllib3

Just open the terminal and type:

conda install -c anaconda urllib3

or you can also try:

conda install -c conda-forge brotlipy
like image 129
kiran-parte Avatar answered Sep 27 '22 18:09

kiran-parte


I solved this issue by commenting lines 376 & 377 in the file

C:\ProgramData\Anaconda3\Lib\site-packages\urllib3\response.py

enter image description here

and then install brotli library by running either

pip install brotli

or

conda install brotli

After successful installation, uncomment above lines. Do whatever you want now. Error should not come.

like image 21
Shrirang Avatar answered Sep 27 '22 19:09

Shrirang


I solved the issue by installing brotlipy

Just open the terminal and type:

conda install -c anaconda brotlipy
like image 20
Sravan v J Avatar answered Sep 27 '22 19:09

Sravan v J