Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
511 views
in Technique[技术] by (71.8m points)

MySQL workbench not starting Error while loading "Fatal Python error: initfsencoding: unable to load the file system codec"

I am facing issue while starting MySQL workbench Error:

Fatal Python error: initfsencoding: unable to load the file system codec, sys.path = >>['/Applications/MySQLWorkbench.app/Contents/Resources/libraries', '/Library/Frameworks /Python.framework/Versions/3.7/lib/python37.zip', '/Library/Frameworks/Python.framework /Versions/3.7/lib/python3.7', '/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7 /lib-dynload'] ModuleNotFoundError: No module named 'encodings'

OS:

macOS Catalina version: 10.15.7

which python

/usr/bin/python

brew info python

[email protected]: stable 3.9.1 (bottled)

vi ~/.bash_profile

alias python='python3'

import sys sys.path

['', '/usr/local/Cellar/[email protected]/3.9.1_6/Frameworks/Python.framework/Versions/3.9/lib /python39.zip', '/usr/local/Cellar/[email protected]/3.9.1_6/Frameworks/Python.framework/Versions /3.9/lib/python3.9', '/usr/local/Cellar/[email protected]/3.9.1_6/Frameworks/Python.framework/Versions /3.9/lib/python3.9/lib-dynload', '/usr/local/lib/python3.9/site-packages', '/usr/local/Cellar /protobuf/3.14.0/libexec/lib/python3.9/site-packages']

MySQL workbench was installed via downloading the dmg file from dev.mysql.com

Updated Python version to python3 using brew

How to resolve the issue

question from:https://stackoverflow.com/questions/65948080/mysql-workbench-not-starting-error-while-loading-fatal-python-error-initfsenco

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.9k users

...