AttributeError: partially initialized module 'charset_normalizer' has no attribute 'md__mypyc' (most likely due to a circular import)
Traceback (most recent call last):
File "/data/ynj/conda_envs/visgpt/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 70, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "visual_chatgpt.py", line 2, in
Updating the charset-normalizer to latest version works for me:
pip install --force-reinstall charset-normalizer==3.1.0
as the solution suggested here https://stackoverflow.com/questions/75501048/how-to-fix-attributeerror-partially-initialized-module-charset-normalizer-has
Updating to latest version worked for me as well. Thanks @Elon-Chan !
Updating to latest version worked for me as well. Thanks @Elon-Chan !
Elon-Chan Thanks works like charm.
**pip install --force-reinstall charset-normalizer==3.1.0**
However just a note, even though it correctly re-installs, receive an error in terminal and an additional warning when jupyter notebook is restarted.
$ **pip install --force-reinstall charset-normalizer==3.1.0**
Collecting charset-normalizer==3.1.0
Using cached charset_normalizer-3.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (199 kB)
Installing collected packages: charset-normalizer
Attempting uninstall: charset-normalizer
Found existing installation: charset-normalizer 2.0.4
Uninstalling charset-normalizer-2.0.4:
Successfully uninstalled charset-normalizer-2.0.4
_ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
requests 2.28.1 requires charset-normalizer<3,>=2, but you have charset-normalizer 3.1.0 which is incompatible._
**Successfully installed charset-normalizer-3.1.0**
This solution:
pip install --force-reinstall charset-normalizer==3.1.0
Does not work for me. Anyone else is stuck with this?
It is required by "requests" package which is at the core of most packages I use.
Updating to latest version worked for me, too. Thanks.
pip install --force-reinstall charset-normalizer==3.1.0
Updating the charset-normalizer to latest version works for me:
pip install --force-reinstall charset-normalizer==3.1.0
as the solution suggested here https://stackoverflow.com/questions/75501048/how-to-fix-attributeerror-partially-initialized-module-charset-normalizer-has
pip install --force-reinstall charset-normalizer==3.1.0
Worked for me. Thanks
This solution:
pip install --force-reinstall charset-normalizer==3.1.0Does not work for me. Anyone else is stuck with this?
It is required by "requests" package which is at the core of most packages I use.
it doesn't work for me either. I use pip install chardet to tackle this error, seems work.
将pyinstaller模块升级到最新版打包就不会出现问题了