UnicodeDecodeError when opening a project
See original GitHub issueProblem Description
Use the following command to upgrade to 5.0.1, can not start.
conda install spyder=5.0.1
What steps reproduce the problem?
Paste Traceback/Error Below (if applicable)
No QCoreApplication instance found. Application patches not applied. You have to call load_stylesheet function after instantiation of QApplication to take effect.
Traceback (most recent call last):
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\Scripts\spyder-script.py", line 10, in <module>
sys.exit(main())
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\app\start.py", line 214, in main
mainwindow.main(options, args)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\app\mainwindow.py", line 2311, in main
mainwindow = create_window(app, splash, options, args)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\app\mainwindow.py", line 2172, in create_window
main.post_visible_setup()
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\app\mainwindow.py", line 1300, in post_visible_setup
self.projects.reopen_last_project()
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\plugins\projects\plugin.py", line 544, in reopen_last_project
self.open_project(path=current_project_path,
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\plugins\projects\plugin.py", line 402, in open_project
project_type_class = self._load_project_type_class(path)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\site-packages\spyder\plugins\projects\plugin.py", line 812, in _load_project_type_class
config.read(fpath)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\configparser.py", line 697, in read
self._read(fp, filename)
File "C:\Users\Admin\Anaconda3\envs\python3.8.8\lib\configparser.py", line 1017, in _read
for lineno, line in enumerate(fp, start=1):
UnicodeDecodeError: 'gbk' codec can't decode byte 0xac in position 233: illegal multibyte sequence
Versions
- Spyder version: 5.0.1
- Python version: 3.8.8
- Qt version: 5.9.7
- PyQt version: 5.9.2
- Operating System name/version: win10
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
UnicodeDecodeError error when opening random file?
You get that UnicodeDecodeError because the default encoding for Python text files is UTF-8, and if you select any random file from your ......
Read more >UnicodeDecodeError while building/compiling simple project
Hello, I'm trying to build a new project, and compile it, and got the following error in the operation control console:
Read more >Python UnicodeDecodeError utf-8 codec can t decode byte ...
Unable to import this file it shows an error. My code was: import pandas as pd a = pd.read_csv("filename.csv")
Read more >Python UnicodeDecodeError - Blackmagic Forum • View topic
Start by reading up on Unicode and UTF-8 encoding in Python 2.x like here: ... project = project_manager.GetCurrentProject() mp = project.
Read more >UnicodeDecodeError - The Trac Project - Edgewall Software
This error indicate a failed attempt to create an unicode object (i.e. the Python internal representation for a sequence of internationalized ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ccordoba12 Yes, you submit a PR.
Ok, no problem. I’ll do it.