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.

Error: link image0 hasn't been detected!

See original GitHub issue

Issue 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 (or pip, 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?

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

github_iconTop GitHub Comments

1reaction
ccordoba12commented, Feb 10, 2022

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?

0reactions
dalthvizcommented, Feb 10, 2022

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 to qt.svg.warning=false. So for example on Windows, before launching Spyder from the Anaconda prompt, you can run set 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):

imagen

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).

Read more comments on GitHub >

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

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