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.

Can not start spyder

See original GitHub issue

version 5.1.5

fromIccProfile: failed minimal tag size sanity
Traceback (most recent call last):
  File "D:\DataScience\PythonSet\IDES\Anacondanew\Scripts\spyder-script.py", line 10, in <module>
    sys.exit(main())
  File "D:\DataScience\PythonSet\IDES\Anacondanew\lib\site-packages\spyder\app\start.py", line 237, in main
    mainwindow.main(options, args)
  File "D:\DataScience\PythonSet\IDES\Anacondanew\lib\site-packages\spyder\app\mainwindow.py", line 1992, in main
    mainwindow = create_window(MainWindow, app, splash, options, args)
  File "D:\DataScience\PythonSet\IDES\Anacondanew\lib\site-packages\spyder\app\utils.py", line 292, in create_window
    main.post_visible_setup()
  File "D:\DataScience\PythonSet\IDES\Anacondanew\lib\site-packages\spyder\app\mainwindow.py", line 1222, in post_visible_setup
    self.projects.reopen_last_project()
  File "D:\DataScience\PythonSet\IDES\Anacondanew\lib\site-packages\spyder\plugins\projects\plugin.py", line 578, in reopen_last_project
    self.open_project(path=current_project_path,
  File "D:\DataScience\PythonSet\IDES\Anacondanew\lib\site-packages\spyder\plugins\projects\plugin.py", line 433, in open_project
    project_type_class = self._load_project_type_class(path)
  File "D:\DataScience\PythonSet\IDES\Anacondanew\lib\site-packages\spyder\plugins\projects\plugin.py", line 864, in _load_project_type_class
    config.read(fpath)
  File "D:\DataScience\PythonSet\IDES\Anacondanew\lib\configparser.py", line 697, in read
    self._read(fp, filename)
  File "D:\DataScience\PythonSet\IDES\Anacondanew\lib\configparser.py", line 1017, in _read
    for lineno, line in enumerate(fp, start=1):
UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 185: illegal multibyte sequence

It seems I copy a existed project and I can be open, however,after closimng, when reopen it ,the spyder crashed(the windows can be show and after seconds it disappears).

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
yanyu2015commented, Dec 6, 2021

Thank you again,I understand why I was strictly operating, but wasn’t able to successfully switch python versions, and it boils down to poor compatibility support for anaconda.

1reaction
ccordoba12commented, Dec 1, 2021

Hey @yanyu2015 and @steff456, this problem is a duplicate of issue #15340. A fix for it was included in our 5.2.0 version, released a few days ago.

You can start using that version right now (instead of waiting to be available in Anaconda) by closing Spyder and running the following commands in the Anaconda Prompt:

conda create -n spyder-env -c conda-forge spyder python=3.8
conda activate spyder-env
spyder

After that, you’ll always need to run the last two commands to start 5.2.0.

Please do that and let us know if it works for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spyder Not Launching - python - Stack Overflow
I have two environments in which spyder just doesn't want to launch. I click the icon there is a waiting cursor then nothing...
Read more >
spyder is not launching even after doing complete uninstall ...
Restarted Spyder · Reset preferences with spyder --reset · Reinstalled the latest version of Anaconda · Tried the other applicable steps from the ......
Read more >
First Steps — Spyder 5 documentation
As a first step to solving your issue, you can try some · If Spyder won't launch, check the · If your problem...
Read more >
Anaconda/Spyder Python IDE Not launching [SOLVED]
If this doesn't work, open a command prompt (Type cmd/enter from the start menu), navigate to the Anaconda installation (in Windows 10, 'cd...
Read more >
Spyder won't open - Q&A di Informatica
I suggest you uninstall spyder and delete its cache which is located in the AppData/Local folder. You could also do this with anaconda...
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