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

Viewed 19596

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

8 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

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.

I solved the issue by installing brotlipy

Just open the terminal and type:

conda install -c anaconda brotlipy

I solved this problem by the following way

1- comment the lines 
2- conda install brotli
3- run anaconda like normal 

i kept the lines 376 and 377 commented

I faced the same issue, but I was able to fix it by simply installing brotli.

conda install brotli

Brotli v1.0.7 fixed the problem for me.

If anyone is running into this when installing a package from a wheel they built, the below is the order of my dependencies when I got this error to go away:

    'brotli>=1.0.9',
    'urllib3>=1.26.0',

This did not work when the version spec for urllib3 was >=1.25.0 for whatever reason.

I did the following:

  1. commented out the recommended lines above.
  2. launched the anaconda navigator
  3. searched for any packages with "brotli"
  4. installed / updated all of those
  5. uncommented out the lines

Navigator is back working but not sure of any other downstream issues yet.

I solved this issue by commenting lines 389 & 390 in the file

C:\Users\(user)\AppData\Roaming\Python\Python36\site-packages\urllib3\response.py

and then install brotli library by running

pip install brotli
Related