spyder: Spyder 6 on Windows cannot load Spyder's icon theme --> no start
Issue Report Checklist
-
[ x] Searched the issues page for similar reports
-
[ x] 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) no conda installed, python anstead but restart reproduces it, with or without adminrights -
Could not reproduce inside
jupyter qtconsole(if console-related) -
Tried basic troubleshooting (if a bug/error)
- [ x] 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
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?
- 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
- Spyder version: 6
- Python version: 3.1.2
- Qt version: ?
- PyQt version: ?
- Operating System name/version: Windows 10 21H2
Dependencies
PASTE DEPENDENCIES HERE
Any ideas what could cause this issue, and how to get that solved ?
Thanks and Best Albrecht
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (6 by maintainers)
Hey everyone, we’ll improve the situation for you in 6.0.5 by allowing QtAwesome to load fonts installed for all users, and mentioning which fonts need to be copied to what directory in the Spyder message we’re showing right now.
If I understood things correctly on this Microsoft support page, that’s the only possible way to make Spyder work in environments that block untrusted fonts.
@jonox123: did you read posts starting Oct 16, 2024 ? It was rather ironically, giving a hint, that probably these use cases are way more often than some people in this thread believe it to be. ccordoba12 wrote (Oct 16, 2024 ): “But that’s too much work for something that feels like a fringe use case (because you can simply allow font installation for regular users).” I can’t judge how much work it is, as I’m not developing software. But I can judge: NO, you must not simply allow installation of fonts or anything else for regular users. Security rules are for sure not meant to be just shut of. We need rather to make people/developers change their way of thinking: it is good to have these security means! Therefore software should be developed in a way, that it can be run also under these restricted use cases accordingly.
So, once more: THANKS a lot for the willingness to find a better solution (than the workarounds described above). Than, it will be a real improvement. We can install spyder and still use SRP (software restriction policies), and the users will be happy with it. I’m looking forward for v6.0.5 !
Thanks for your work on developing spyder and inmproving it. And especially thanks a lot for adapting it to hopefully work in "fringe"environments like clinics, univeristies, companies, where not all the users are admins 😉
@nsgates Glad I was able to help! For posterity, I simply changed the 1 to a 2 in Binary (Figured it was equivalent) instead of converting binary -> hex to change the setting to disable to blocking untrusted fonts:
Thanks @joncox123 @ccordoba12 @russellfrost for all of your efforts in troubleshooting!
@deltaex1, you are amazing. I was able to follow your approach and I now have Spyder 6 working! In addition, Spyder 5 now displays all of the icons instead of red X’s.
Using the registry with admin rights to modify the local security policy and stop blocking untrusted fonts was the key. I was able to access this setting using the Group Policy GUI, but for some reason it showed that untrusted font blocking was disabled. However, when I viewed the event log I saw many instances of untrusted fonts being blocked, and the registry edit did the trick. One note I’ll add is that I couldn’t find a way to set the MitigationOptions key base to Hexadecimal (as the Microsoft support link instructs), so I had to convert from binary to hex and vice versa to implement the fix.
@russellfrost, thank you for your helpful comment that manually installing the fonts would not fix the issue. I definitely experienced this for myself, and thought I had missed something there for a while.
@joncox123, thank you for returning attention to this issue. I echo your comments about the IT limitations of corporate and government environments. In my case, I was able to solve the issue using temporary admin rights. I hope you too are able to find a way to resolve it. Does your pseudo-admin account allow you to do registry edits?
Lastly, thank you, @ccordoba12, for adding this issue to a future milestone, and more importantly for your dedication to developing Spyder these many years. All of these comments are testaments to the value and usefulness of this tool.
@ccordoba12 I can look into the process for getting fonts signed with a certificate from a CA and submitted to MS to be trusted. I’m willing to donate a few dollars to the cause, hopefully others are as well. I’ll let you know if I get anywhere.
@joncox123, sorry for the inconvenience. We’ll try to find a workaround so that Spyder can keep working in such restricted environments.
You said:
So, are you able to manually install fonts for your own user? Or is that also blocked?
I had the same issue on Windows 11 on my work computer where my Spyder 6.0.2 installed via Anaconda could not started (The splash screen would initialize and quickly disappear) when launched from Anaconda Prompt, a traceback displays that it could not find
fontawesome4-webfont-4.7.ttffrom my Windows fonts folder.Someone else suggested it online, and it turns out it was indeed the local security policies that blocked the install of the font, so I disabled it using admin rights in the registry (Since I couldn’t easily adjust the Local Security Policies via the GUI) based on this article: https://learn.microsoft.com/en-us/windows/security/operating-system-security/device-management/block-untrusted-fonts-in-enterprise#turn-on-and-use-the-blocking-untrusted-fonts-feature
After making the registry change, I:
conda uninstall spyderconda install spyderAnd viola - Spyder starts up properly (It works through the App icon in the Start menu also) Hope this helps someone