Error: link image0 hasn't been detected!
See original GitHub issueIssue Report Checklist
- Searched the issues page for similar reports
- Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
- Reproduced the issue after updating with
conda update spyder
(orpip
, if not using Anaconda) - Could not reproduce inside
jupyter qtconsole
(if console-related) - Tried basic troubleshooting (if a bug/error)
- Restarted Spyder
- Reset preferences with
spyder --reset
- Reinstalled the latest version of Anaconda
- Tried the other applicable steps from the Troubleshooting Guide
- Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
Spyder 5 fails to even load and just freezes. When launching it from the anaconda prompt, the same happens, but I get an error message.
I then tried to conda upgrade --all, and now, nothing happens at all, and spyder fails to launch, and I get a different, much shorter, error message. Please help me
What steps reproduce the problem?
- Open spyder
What is the expected output? What do you see instead?
Expected output: Spyder opens.
Paste Traceback/Error Below (if applicable)
BEFORE UPGRADE (spyder 5.0.3, python 3.8.10) this was the error (This is NOT the error anymore, but I thought it might be useful to post it regardless):
You have to call load_stylesheet function after instantiation of QApplication to take effect.
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 1636, in moveEvent
if not self.isMaximized() and not self.layouts.get_fullscreen_flag():
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 1179, in __getattr__
return self.get_plugin(self._INTERNAL_PLUGINS_MAPPING[attr])
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 169, in get_plugin
raise SpyderAPIError(
spyder.api.exceptions.SpyderAPIError: Plugin "layout" not found!
After the upgrade, I simply get:
Error: link image0 hasn't been detected!
Versions
- Spyder version: 5.1.5
- Python version: 3.8.12
- Qt version: 5.9.7
- PyQt version: 5.9.2
- Operating System name/version: Windows10
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
I cannot open Spyder 5.1.5 with an error link image0 hasn't ...
Show activity on this post. I received this error when installing spyder through the command line (conda install spyder). I then uninstalled ...
Read more >完美解决Anaconda打开Spyder5报错:link image0 hasn't been ...
报错" Error reading beoker pipe:管道已结束。" 以下提供一个不用去调整系统名称的办法。只要install 三个包即可。 link image0 hasn't been detected!
Read more >MNE-Python installation in windows does not work
“link image0 hasn't been detected!” When I try to run inside spyder the following commands: import os import numpy as np import mne....
Read more >The Linked image cannot be displayed error - Outlook
The linked image cannot be displayed. The file may have been moved, renamed, or deleted. Verify that the link points to the correct...
Read more >First Steps — Spyder 5 documentation
If Spyder crashes or you receive an error message, please read the following ... If the problem appears to be a result of...
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 Free
Top 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
This is something we need to ask @isabela-pf to help us with. I mean, fixing the splash screen for Qt 5.9.
@isabela-pf, could you take at look at this?
Rechecking this a little bit seems like as @ccordoba12 suggested this is caused due to having Qt 5.9.7 installed. Seems like the warning message can be suppressed by setting the env var
QT_LOGGING_RULES
toqt.svg.warning=false
. So for example on Windows, before launching Spyder from the Anaconda prompt, you can runset QT_LOGGING_RULES=qt.svg.warning=false
(this flag is available starting with Qt 5.9) and you don’t see the warning although the splash screen shows the spyder logo in black (should be white):A post related to the warnings caused by loading a somehow ‘buggy’/somehow unsupported svg: https://forum.qt.io/topic/76843/qt-link-path3926-hasn-t-been-detected/3
Another alternative to not see this warning is to create a new env for the spyder installation using the conda-forge channel (which has Qt 5.12 and Spyder 5.2.2 available). Also you could use our standalone installers (available in the release notes for Windows and MacOs and follow the FAQ to understand how to use specific packages with them).