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
After update conda does not work showing the error "module 'brotli' has no attribute" #9903
Comments
Same for me. I was faced with qt installation issues: ContinuumIO/anaconda-issues#10949 |
I have just faced this. Looking in the site-packages directory under brotli it can be seen that conda has emptied it. I edited site-packages\pip_vendor\urllib3\response.py at line 376 and commented out the Brotli check. This allowed my todo a pip install brotli to recover my environment. This is a workaround and does not explain why it happened or how it should be fixed |
I had the same problem. I am pretty new to all this and eeyrjmr's workaround did not work for me or I did not find how to make it work.
But I can launch Jupiter Labs again. |
its a bit more sinister then just brotli... numpy (and a few other packages) were in a state of uninstall. i ended up doing an uninstall and a fresh install since some form up update corrupted the install |
I am also a beginner, however I believe it is only to delete the old tabs. |
Is there any solution other than uninstalling? I am having the same issue. |
I couldn't solve it, I tried the eeyrjmr procedure but it didn't work. Uninstall and install again |
Man, this is really annoying. It's turning me off from using conda. |
I had this same problem, @eeyrjmr solution seems to work for me. One caveat, the path was |
does re-installation fixed your issue? |
|
Fixed the problem, but to use spyder 4.13 with the packages I use, I installed anaconda 2019.07 with the custom version. Using version 2020/02 and updating the conda, it is not possible to use syper 4.13., Even creating different envs. |
Hi, My solution is: open file "Anaconda3\lib\site-packages\urllib3\response.py", find the code below |
Encountered the same issue after upgrading the conda base python version from 3.7 to 3.8 on windows10 today. What I did to solve this problem:
This is it. If you don't want to |
@xhuyvn Thanks a lot. This worked. Do you think this is a glitch from the Anaconda developers? |
Your solution works alright. Thanks again @xhuyvn . But how did you come up with this almost impossible solution? |
Hi, I glad when my solution could help you. Python is free, sometimes, many guys work in the same project and the environment is not the same. When they combining the code for publishing a new version may not work for all environment. With my experiment in the C# project management, just find the conflict and fix it. The easy way is to change the code to avoid the runtime conflict, but it will have risk maybe we don't know it yet. |
I had the same issue, all I had to do was to run the following: activate myVirtualEnv and that fixed the issue, I did not have to edit "response.py" |
Finding this issue on My PC too .
This solved my problem. It happens when you update to Python 3.8 from python 3.6 or python 3.7 |
Perfect... solved the problem for me as well ! Thanks @xhuyvn |
* Tee output from conda info for improved diagnostics. * Workaround for conda/conda#9903. * Use pip for workaround. * Workaround in CI YAML instead. * Add brotli to CI YAML directly. * Apply workaround to Selenium CI as well.
* Add DevSkim scanning (#659) Co-authored-by: Cassandra Granade <chgranad@microsoft.com> * Tee output from conda info for improved diagnostics. * Workaround for conda/conda#9903. * Use pip for workaround. * Workaround in CI YAML instead. * Add brotli to CI YAML directly. * Apply workaround to Selenium CI as well. * Trivial change to invalidate build. Co-authored-by: Angela Burton <anjbur@users.noreply.github.com>
Hi there, thank you for your contribution! This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs. If you would like this issue to remain open please:
NOTE: If this issue was closed prematurely, please leave a comment. Thanks! |
I encountered the same issue today on a Windows 10 machine after updating conda (miniconda).
This workaround solved it for me, but I guess it's not intended behavior. |
Downloaded miniconda
Commented lines 286 and 287 as described on the workarounds. This needs to be opened again. |
I have the same problem (conda update breaks miniconda on last version) and the workaround above has solved the problem for me too |
@xeoslaenor Could you please elaborate what version of conda and miniconda you used? I'm trying to investigate whether this is a regression or not. |
I have the same problem having just installed Mambaforge-23.1.0-1-Windows-x86_64.exe and run
I'm running on Microsoft Windows [Version 10.0.19044.2965], here's the console output from the update and resulting error:
|
@aym00 Could you also paste the result of running |
Its a bit bigger than just conda update. Jupyterlab doesn't launch for me now
|
encountered the same issue after running the following update cmd. The update itself worked but cannot use conda install afterwards.
Traceback error as below The issue seems to be that "brotlicffi" cannot be found, and code tried to import brotlipy. Workaround I took here is commenting out try-except block, setting brotli to None, re-installing brotlipy. Then the code modification can be reverted. try: |
conda version : 23.3.1 have same problem |
I just try doing "pip install brotli" |
I got my error fixed simply by my conda wasn't working at all and consistently giving this error, I won't paste the full error as it is very large but it is similar to. File "C:\Users\username\mambaforge\lib\site-packages\urllib3_init_.py", line 17, in |
I saw a similar issue today when trying to run streamlit in a fresh environment. (base)C:\Users\name\company\GitRepositories\iris_app>streamlit run app.py
2023-06-30 13:02:09.138 module 'brotli' has no attribute 'error' I ran 'conda install brotlipy -y' and received the following: ==> WARNING: A newer version of conda exists. <== Please update conda by running
Or to minimize the number of packages updated during conda update use
The following NEW packages will be INSTALLED: brotlipy pkgs/main/win-64::brotlipy-0.7.0-py39h2bbff1b_1003 I have been using mamba primarily for my package management and had previously run 'mamba update mamba'. I was under the impression that they were functionally equivalent. After installing brotlipy via conda streamlit ran. |
This works.
System/versions:
|
After update does not access anancona, IDE spyder. I can't go back to the last review of the conda.
Conda info:
conda config --show-sources:
==> C:\Users\fbonadias.condarc <==
default_python: None
ssl_verify: True
channels:
conda list:
Name Version Build Channel
alabaster 0.7.12 py37_0 defaults
anaconda 0.0.1.1 pypi_0 pypi
anaconda-client 1.7.2 py37_0 defaults
anaconda-navigator 1.9.12 py37_0 defaults
anyqt 0.0.10 py37_0 defaults
appdirs 1.4.3 pypi_0 pypi
argh 0.26.2 py37_0 defaults
asn1crypto 1.3.0 py37_0 defaults
astroid 2.3.3 py37_0 defaults
atomicwrites 1.3.0 py37_1 defaults
attrs 19.3.0 py_0 defaults
autopep8 1.4.4 py_0 defaults
babel 2.8.0 py_0 defaults
backcall 0.1.0 py37_0 defaults
backports 1.0 py_2 defaults
backports.functools_lru_cache 1.6.1 py_0 defaults
backports.tempfile 1.0 py_1 defaults
backports.weakref 1.0.post1 py_1 defaults
bcrypt 3.1.7 py37he774522_0 defaults
beautifulsoup4 4.9.0 py37_0 defaults
blas 1.0 mkl defaults
bleach 3.1.4 py_0 defaults
bottlechest 0.7.1 py37h452e1ab_1 defaults
bottleneck 1.3.2 py37h2a96729_0 defaults
bzip2 1.0.8 he774522_0 defaults
ca-certificates 2020.1.1 0 defaults
cachecontrol 0.12.5 py37_0 defaults
certifi 2020.4.5.1 py37_0 defaults
cffi 1.14.0 py37h7a1dbc1_0 defaults
chama 0.1.3 pypi_0 pypi
chardet 3.0.4 py37_1003 defaults
click 7.1.1 py_0 defaults
cloudpickle 1.4.0 py_0 defaults
clyent 1.2.2 py37_1 defaults
colorama 0.4.3 py_0 defaults
commonmark 0.9.1 py_0 defaults
conda 4.8.3 py37_0 defaults
conda-build 3.19.2 py37hc8dfbb8_0 conda-forge
conda-env 2.6.0 1 conda-forge
conda-package-handling 1.6.0 py37h62dcd97_0 defaults
conda-verify 3.4.2 py_1 defaults
console_shortcut 0.1.1 4 defaults
cryptography 2.8 py37h7a1dbc1_0 defaults
cycler 0.10.0 py37_0 defaults
decorator 4.4.2 py_0 defaults
defusedxml 0.6.0 py_0 defaults
diff-match-patch 20181111 py_0 defaults
docutils 0.16 py37_0 defaults
entrypoints 0.3 py37_0 defaults
filelock 3.0.12 py_0 defaults
flake8 3.7.9 py37_0 defaults
freetype 2.9.1 ha9979f8_1 defaults
future 0.18.2 py37_0 defaults
glob2 0.7 py_0 defaults
icc_rt 2019.0.0 h0cc432a_1 defaults
icu 58.2 ha925a31_3 defaults
idna 2.9 py_1 defaults
imagesize 1.2.0 py_0 defaults
importlib_metadata 1.5.0 py37_0 defaults
intel-openmp 2020.0 166 defaults
intervaltree 3.0.2 py_0 defaults
ipykernel 5.1.4 py37h39e3cac_0 defaults
ipython 7.13.0 py37h5ca1d4c_0 defaults
ipython_genutils 0.2.0 py37_0 defaults
isort 4.3.21 py37_0 defaults
jedi 0.15.2 py37_0 defaults
jinja2 2.11.2 py_0 defaults
joblib 0.14.1 py_0 defaults
jpeg 9b hb83a4c4_2 defaults
json5 0.9.4 py_0 defaults
jsonschema 3.2.0 py37_0 defaults
jupyter_client 6.1.2 py_0 defaults
jupyter_core 4.6.3 py37_0 defaults
jupyterlab 1.2.6 pyhf63ae98_0 defaults
jupyterlab_server 1.1.0 py_0 defaults
keyring 21.1.1 py37_2 defaults
keyrings.alt 3.1.1 py37_0 defaults
kiwisolver 1.1.0 py37ha925a31_0 defaults
lazy-object-proxy 1.4.3 py37he774522_0 defaults
libarchive 3.3.3 h0643e63_5 defaults
libiconv 1.15 h1df5818_7 defaults
liblief 0.9.0 ha925a31_3 defaults
libpng 1.6.37 h2a8f88b_0 defaults
libsodium 1.0.16 h9d3ae62_0 defaults
libspatialindex 1.9.3 h33f27b4_0 defaults
libtiff 4.1.0 h56a325e_0 defaults
libxml2 2.9.9 h464c3ec_0 defaults
llvmlite 0.32.0 py37ha925a31_0 defaults
lockfile 0.12.2 py37_0 defaults
lz4-c 1.8.1.2 h2fa13f4_0 defaults
lzo 2.10 he774522_2 defaults
m2w64-gcc-libgfortran 5.3.0 6 defaults
m2w64-gcc-libs 5.3.0 7 defaults
m2w64-gcc-libs-core 5.3.0 7 defaults
m2w64-gmp 6.1.0 2 defaults
m2w64-libwinpthread-git 5.0.0.4634.697f757 2 defaults
markupsafe 1.1.1 py37he774522_0 defaults
matplotlib 3.1.3 py37_0 defaults
matplotlib-base 3.1.3 py37h64f37c6_0 defaults
mccabe 0.6.1 py37_1 defaults
menuinst 1.4.16 py37_0 conda-forge
mistune 0.8.4 py37he774522_0 defaults
mkl 2020.0 166 defaults
mkl-service 2.3.0 py37hb782905_0 defaults
mkl_fft 1.0.15 py37h14836fe_0 defaults
mkl_random 1.1.0 py37h675688f_0 defaults
msgpack-python 1.0.0 py37h74a9793_1 defaults
msys2-conda-epoch 20160418 1 defaults
navigator-updater 0.2.1 py37_0 defaults
nbconvert 5.6.1 py37_0 defaults
nbformat 5.0.4 py_0 defaults
networkx 2.4 py_1 conda-forge
nose 1.3.7 pypi_0 pypi
notebook 6.0.3 py37_0 conda-forge
numba 0.49.0 py37h47e9c7a_0 defaults
numpy 1.18.1 py37h93ca92e_0 defaults
numpy-base 1.18.1 py37hc3f5095_1 defaults
numpydoc 0.9.2 py_0 defaults
olefile 0.46 py37_0 defaults
openssl 1.1.1g he774522_0 defaults
opentsne 0.3.11 py37he774522_1 defaults
orange-canvas-core 0.1.7 py_0 defaults
orange-widget-base 4.0.1 py_0 defaults
orange3 3.23.1 py37ha925a31_0 defaults
packaging 20.3 py_0 defaults
pandas 1.0.3 py37h3bbf574_1 conda-forge
pandoc 2.2.3.2 0 defaults
pandocfilters 1.4.2 py37_1 defaults
paramiko 2.7.1 py_0 defaults
parso 0.5.2 py_0 defaults
pathtools 0.1.2 py_1 defaults
pexpect 4.8.0 py37_0 defaults
pickleshare 0.7.5 py37_0 defaults
pillow 7.0.0 py37hcc1f983_0 defaults
pip 20.0.2 py37_1 defaults
pkginfo 1.5.0.1 py37_0 defaults
pluggy 0.13.1 py37_0 defaults
powershell_shortcut 0.0.1 3 defaults
prometheus_client 0.7.1 py_0 defaults
prompt-toolkit 3.0.4 py_0 defaults
prompt_toolkit 3.0.4 0 defaults
psutil 5.7.0 py37he774522_0 defaults
py-lief 0.9.0 py37ha925a31_3 defaults
pycodestyle 2.5.0 py37_0 defaults
pycosat 0.6.3 py37he774522_0 defaults
pycparser 2.20 py_0 defaults
pydocstyle 4.0.1 py_0 defaults
pyflakes 2.1.1 py37_0 defaults
pygments 2.6.1 py_0 defaults
pylint 2.4.4 py37_0 defaults
pynacl 1.3.0 py37h62dcd97_0 defaults
pynndescent 0.3.3 py_0 defaults
pyomo 5.6.9 pypi_0 pypi
pyopenssl 19.1.0 py37_0 defaults
pyparsing 2.4.6 py_0 defaults
pyqt 5.9.2 py37h6538335_2 defaults
pyqtgraph 0.10.0 py37h28b3542_3 defaults
pyrsistent 0.16.0 py37he774522_0 defaults
pysocks 1.7.1 py37_0 defaults
python 3.7.7 h60c2a47_2 defaults
python-dateutil 2.8.1 py_0 conda-forge
python-jsonrpc-server 0.3.4 py_0 defaults
python-language-server 0.31.10 py37_0 defaults
python-libarchive-c 2.9 py_0 defaults
python-louvain 0.13 py_0 defaults
python_abi 3.7 1_cp37m conda-forge
pytz 2019.3 py_0 defaults
pyutilib 5.8.0 pypi_0 pypi
pywin32 227 py37he774522_1 defaults
pywin32-ctypes 0.2.0 py37_1000 defaults
pywinpty 0.5.7 py37_0 defaults
pyyaml 5.3.1 py37he774522_0 defaults
pyzmq 18.1.1 py37ha925a31_0 defaults
qdarkstyle 2.8.1 py_0 defaults
qt 5.9.7 vc14h73c81de_0 defaults
qtawesome 0.7.0 py_0 defaults
qtconsole 4.7.3 pyh9f0ad1d_0 conda-forge
qtpy 1.9.0 py_0 defaults
requests 2.23.0 py37_0 defaults
ripgrep 11.0.2 0 defaults
rope 0.16.0 py_0 defaults
rtree 0.9.3 py37h21ff451_0 defaults
ruamel_yaml 0.15.87 py37he774522_0 defaults
scikit-learn 0.22.1 py37h6288b17_0 defaults
scipy 1.4.1 py37h9439919_0 defaults
send2trash 1.5.0 py37_0 defaults
serverfiles 0.3.0 py37_0 defaults
setuptools 46.1.3 py37_0 defaults
sip 4.19.8 py37h6538335_0 defaults
six 1.14.0 py37_0 defaults
snowballstemmer 2.0.0 py_0 defaults
somepackage 1.2.3 pypi_0 pypi
sortedcontainers 2.1.0 py37_0 defaults
soupsieve 2.0 py_0 defaults
sphinx 3.0.3 py_0 defaults
sphinxcontrib-applehelp 1.0.2 py_0 defaults
sphinxcontrib-devhelp 1.0.2 py_0 defaults
sphinxcontrib-htmlhelp 1.0.3 py_0 defaults
sphinxcontrib-jsmath 1.0.1 py_0 defaults
sphinxcontrib-qthelp 1.0.3 py_0 defaults
sphinxcontrib-serializinghtml 1.1.4 py_0 defaults
spyder 4.1.2 py37hc8dfbb8_0 conda-forge
spyder-kernels 1.9.0 py37_0 defaults
sqlite 3.31.1 h2a8f88b_1 defaults
tbb 2020.0 h74a9793_0 defaults
terminado 0.8.3 py37_0 defaults
testpath 0.4.4 py_0 defaults
tk 8.6.8 hfa6e2cd_0 defaults
tornado 6.0.4 py37he774522_1 defaults
tqdm 4.45.0 py_0 defaults
traitlets 4.3.3 py37_0 defaults
ujson 1.35 py37hfa6e2cd_0 defaults
urllib3 1.25.8 py37_0 defaults
vc 14.1 h0510ff6_4 defaults
vs2015_runtime 14.16.27012 hf0eaf9b_1 defaults
watchdog 0.10.2 py37_0 defaults
wcwidth 0.1.9 py_0 defaults
webencodings 0.5.1 py37_1 defaults
wheel 0.34.2 py37_0 defaults
win_inet_pton 1.1.0 py37_0 defaults
wincertstore 0.2 py37_0 defaults
winpty 0.4.3 4 defaults
wntr 0.2.2 pypi_0 pypi
wrapt 1.12.1 py37he774522_1 defaults
xlrd 1.2.0 py37_0 defaults
xlsxwriter 1.2.8 py_0 defaults
xmltodict 0.12.0 py_0 defaults
xz 5.2.5 h62dcd97_0 defaults
yaml 0.1.7 hc54c509_2 defaults
yapf 0.28.0 py_0 defaults
zeromq 4.3.1 h33f27b4_3 defaults
zipp 2.2.0 py_0 defaults
zlib 1.2.11 h62dcd97_4 defaults
zstd 1.3.7 h508b16e_0 defaults
The text was updated successfully, but these errors were encountered: