question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UnicodeDecodeError when opening a project

See original GitHub issue

Problem 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?

spyder5 0 1无法启动

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:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
leavorcommented, Sep 30, 2021

@ccordoba12 Yes, you submit a PR.

0reactions
ccordoba12commented, Oct 2, 2021

Ok, no problem. I’ll do it.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found