spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.25k stars 1.6k forks source link

Spyder 6 on Windows cannot load Spyder's icon theme --> no start #22499

Open ITanatFR opened 2 weeks ago

ITanatFR commented 2 weeks ago

Issue Report Checklist

Problem Description

installed spyder on Win10 (as domain PC with SRP). to avoid conflicts installation in c:\prg-win, not on c:\programdata [where software shouldn#T be installed anyway] after start there appears the spyger 6 logo, and thereafter teh error meassage: "It was not possible to load Spyder's icon theme, so Spyder cannot start on your system. The most probable causes for this are either that you are using a Windows version earlier than Windows 10 1803/Windows Server 2019, which is no longer supported by Spyder or Microsoft, or your system administrator has disabled font installation for non-admin users. Please upgrade Windows or ask your system administrator for help to allow Spyder to start."

Click on OK stops the program, no choices to do enything on it.

What steps reproduce the problem?

  1. uninstall - re-install; download a fresh version, all the same

What is the expected output? What do you see instead?

expected: software would start I see the error mesage (see above)

Paste Traceback/Error Below (if applicable)


PASTE TRACEBACK HERE

Versions

Dependencies

PASTE DEPENDENCIES HERE

Any ideas what could cause this issue, and how to get that solved ?

Thanks and Best Albrecht

ITanatFR commented 2 weeks ago

correction due to typo: python version is 3.12.6

ccordoba12 commented 2 weeks ago

Hey @ITanatFR, thanks for reporting. As the message you copy/pasted here clearly says, this is a problem you need to solve on your side.

In this case it seems fonts installation for users is disabled or blocked by your IT department. So, you need to talk to them and ask them to enable it.

Let us know if that's helpful.

nsgates commented 1 week ago

I have the same issue with Spyder 6. Can you tell me which font(s) need(s) to be installed? I was able to install spyder.ttf, but this does not appear to solve the issue.

I know that previous versions of Spyder depended on Font Awesome, etc. Have these dependencies been removed?

ccordoba12 commented 1 week ago

@nsgates, the fonts required by Spyder should be installed automatically, unless you're using an old Windows version or your system doesn't allow to install fonts for users (as the message says).

Please check those conditions don't apply for you and try again.

nsgates commented 1 week ago

@ccordoba12, I appreciate your help. I am not on an old Windows version, and I would certainly enable the automatic font installs if I could.

Can you tell me which fonts are required to load Spyder 6's icon theme? I can install fonts manually, but the automatic install is being blocked. Apparently, Spyder 6 needs more than just spyder.ttf, which I believe I was able to install:

image

Spyder 5 would fall back to the Spyder 2 icon theme when it was unable to load the Spyder 3 icon them (e.g., when Font Awesome was blocked because it was not marked trusted by Windows, https://github.com/spyder-ide/qtawesome/issues/167), which was very helpful.

image

My attempts to trace the error above triggered in spyder/app/mainwindow.py have not been successful in revealing which specific fonts are missing. How can I find out which ones these are?