Closed vmahe1 closed 9 months ago
Hey @vmahe1, thanks for reporting. Please open the Anaconda Prompt and run there
qta-browser
That should give you an error, which is fine. Please copy it and paste it here.
@ccordoba12 I am also facing the exact same issue as the original poster of this post. When I run the qta-browser as you mentioned, I get the following error:
Traceback (most recent call last):
File "C:\Users\murtaza.khan\AppData\Local\anaconda3\Scripts\qta-browser-script.py", line 10, in
@murtazaak101, what's your Windows version?
@ccordoba12 It is Windows 10 Enterprise. I figured the turnaround actually. In the error it mentions "please read https://support.microsoft.com/en-us/kb/3053676 to know how to prevent Windows from blocking the fonts that come with QtAwesome." In the link inside I followed the instructions and disabled the blocking of fonts, restarted my PC and now it works like a charm again.
Thanks for the quick reply @ccordoba12! I clicked the link and followed the instructions as well, but I'm not sure how to change the value of the key ''MitigationOptions" in the registry editor (never did such a thing before and a bit afraid of messing thing up). Here is a screenshot of what I see. To disable the blocking of fonts, should I simply type "2000000000000" where my cursor is (right before the first pair of zeros)?
@vmahe1 In the link there is another way as well which is much simpler. It is by accessing Local Group Policy Editor. You can do that by pressing Windows key + R to open the 'Run' command then type gpsedit.msc and run it.
Thanks for the tip, I changed "Blocking of untrusted font (blocage de police non approuvée in French)" from "not configured" to "deactivated" and restarted my computed twice, but I still have the error.
I would prefer not to modify the "MitigationOptions" as it is not clear how to modify it, so I am still stuck with Spyder 2 icon theme... Maybe a work around would be to copy the spyder fonts in the C:\Windows\Fonts directory, but I did not find where the spyder fonts are.
No if you can OPEN Spyder then open it and right click on "Completions: internal" then click "Change environment preferences in Settings" --> [down below choose the Spyder 2 icon and see if that works and notify me.]
Hi @GitKia1392, I clicked "Completions: conda" (see screenshot below), then clicked "Change default environment in Preferences..." and arrived in the "Python interpreter" tab of the "Preferences" panel.
I am not sure that is what you meant, but in "Preferences"->"Appearance"->"Icon theme" I already have "Spyder 2" selected (see below), and that is precisely my problem. If I were able to select "Spyder 3" and restart Spyder properly, then I guess I wouldn't have icons replaced by red crosses.
@vmahe1 In the Local Group Policy editor, follow the instructions as before and then keep these settings, they worked for me
@murtazaak101 I tried selecting "enable" and the option "do not block untrusted fonts", restarted my computer, but the issue persists.
@murtazaak101, another way to solve this problem is to take the fonts distributed with QtAwesome (the package we rely on for our icons) and install them in your system:
https://github.com/spyder-ide/qtawesome/tree/master/qtawesome/fonts
Don't worry about the json
files present there, just download all ttf
files and install them as described here:
https://support.microsoft.com/en-us/office/add-a-font-b7c5f17c-4426-4b53-967f-455339c564c1
Aright @vmahe1 So try these:
Goto Anaconda Prompt via Search --> enter this:
conda create -n spyder-env spyder -y conda activate spyder-env spyder
restart spyder
2nd solution is to do this:
Create a file named SpyErr.bat --> open it with Notepad --> paste this
python -c 'import sys; print(sys.executable)'
--> then open cmd.exe as an administrator --> Type SpyErr.bat
then it should give you the error thaat spyder is facing -->
Tell if either work.
Thanks
@ccordoba12 I tried installing the fonts as suggested, they are now in My Windows/Fonts directory, often with "Normal" appended to the font's name (see below). I restarted my computer, but I still have the same issue.
@GitKia1392 I tried both suggestions.
For the 1st one I had an error when running the whole line (see below). I ran conda create -n spyder-env
, pressed y
, then conda activate spyder-env
. I restarted spyder but still have the error.
Then I tried the other one but I got the error "python can't be found" (see below in french in the consol)
@vmahe1, please open the Anaconda Prompt and run
spyder --reset
Then try again. Hopefully that should fix your problem.
@ccordoba12 I did the reset and restarted my computer, but still no change, I still have the issue.
Sorry to hear that. I really don't know why the fonts are not picked up by Spyder and I'm out of ideas.
Ok, thank you very much for the help anyway.
Hope you can find a way to solve this problem. For now I'm going to close this issue because there's nothing else we can do for you.
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
I just installed spyder through anaconda, it was working fine for a few minutes, until I updated MiKTeX (TeX distribution to write LaTeX documents). After that, I got the exact same issue as the one described in #18642, which I recall below:
Spyder refuses to load the icon theme of Spyder 3 and falls back to the icon theme of Spyder 2, which is no longer adapted (many spyder icons are replaced by red crosses). Selecting theme 3 can be done in tools -> preferences -> appearance -> main interface, but it then asks to restart spyder to apply the changes, and when restarting Spyder keeps refusing to load them 3.
What steps reproduce the problem?
What is the expected output? What do you see instead?
The expected behaviour is Spyder 3 to work properly as this issue is indicated as "closed" in #18642
Versions
Dependencies