-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spyder shows blank screen because of errors in QtAwesome #3843
Comments
How did you install Theano and Keras? |
I had (and still have) some SSL issues. I followed these guides to install tensorflow first:
Tensorflow gave errors of missing/unfound modules (I spent quite good time to fix related issues and than gave up) At last, Keras, successfully: That's the whole stroy. It looks like something has been broken in very beginning of this process. I tried to delete all configurations and packages as it has been explained in official tutorials (after all, i delete directories and hidden -.ext- files too). Thanks in advance. |
My Spyder also crash too. When I run it from Terminal, it's okay. But from Ubuntu launcher, it just crashes. |
@alibatuhandayioglugil, it's usually not a good idea to mix compiled packages from Anaconda and pip. Please try to install all packages with conda and try again. |
@ccordoba12 , i gave up with Keras, Theano and Tensorflow for now and will try to install them later as you advised (only with conda). Just a note, the only package that i installed via pip is Keras. As i know,It has no any relation with Qt packages and in the BE (Non IDE) side, over IPython console, everything (Keras+Theano) works fine. But as you said, it might broke something, that is another part that i have almost no knowledge in. I just want to be able to install Spyder via Anaconda. That's what i tried for several times; without installing libraries mentioned above. |
My last option is formatting the disk. Any idea? |
@alibatuhandayioglugil, it seems you're missing QtAwesome. Please install it with
and try again. |
@ccordoba12 Already installed (In console logs-see previous comment-, there seems the error in iconic_font.py file under qtawesome directory) Might it be related to versions of the packages? I'm using also Qt5 (supported by windows 10)
|
Then you have an installation problem. Please run
and try again. |
Did that but unfortunately still the same error... |
I'm getting the same error. I just upgraded from windows 7 to windows 10 and did a clean install of Anaconda 4.2.0. Even after reinstalling qtawesome as suggested, I get the same error messages |
I tried to download the most recent tar.gz file for qtawesome and install it locally: conda install --file=~\QtAwesome-0.3.3.tar.gz This is a truncated and (slightly edited-full path has been shortened slightly) version of the error that was returned:
|
This is not the way to install conda packages, hence the error. So please don't open a bug in conda. |
This seems to be an error in QtAwesome, being unable to find FontAwesome, but I don't understand why that's happening. @modigzd, does your username has non-ascii characters or something like a dot on it? |
My username contains all ASCII characters (just letters and numbers). The install works fine in the windows 7 environment, but I can't get it to install in any of our windows 10 environments. Unfortunately our permissions do not allow conda to connect out of network. We have a local PyPi mirror for using pip to install packages but anything like 'conda install ....' will timeout during the install process. |
@alibatuhandayioglugil, do you also have restricted access to the Internet? |
@ccordoba12 yes, this is my office environment and i have restricted access to the internet. Because of this, I'm using the proper http proxy before every package install/update operation and i haven't seen any connection/access errors. Are you suspicious of this probability? If so in which manner and how can i track it? |
It seems QtAwesome somehow needs access to the internet and it fails when it doesn't. @dalthviz, please take a look at this one to see if you can reproduce it on Windows without internet access. |
Just to be clear: i have qtawesome folders under site-packages. I uninstalled and reinstalled them and saw the disappeared and reappeared folders. I mean, i do have internet access. |
Hi @alibatuhandayioglugil I was able to recreate the last screenshot that you post: What I suspect that happens in your case is that the
Probably the command to force the install for Please try the suggestions above and tell us if any of them works for you :) |
@dalthviz, great job at reproducing this one!! We definitely need to put a guard against this error and inform users about the right fix for it. Please work on that :-) |
@dalthviz As we're in weekend i'm away from my office. As soon as i reach my PC, i will apply your fix propose and share the output here. |
well if we are going to need admin privileges, yes it is going to be a problem. Thanks Microsoft! |
It's the usual functionality vs security arguments. Apple's SIP is similar. If necessary we can bypass Windows native font handling and use Freetype in Qt, I expect! |
While it seems like this is an issue that will be mitigated in future releases, I want to add one more thing for anyone else looking for an interim solution: It was necessary to add both a python.exe and pythonw.exe registry key using the steps above. The python.exe registry key allowed me to launch spyder from the command prompt, the pythonw.exe key allowed me to launch spyder from the start menu/spyder icon. |
@modigzd happy to hear good news. I tried Microsoft's method but still the same error. It made me think 'doesn't the problematic fonts belong to spyder? why do we add a key for python?' (Example case given by microsoft was MS Word) Every registry modification requires admin privileges and i have to start an issue to infrastructure team (takes long time). That's why i ask such a simple question here instead of trying it. And also, did this solution worked for you @zhifaliu |
@alibatuhandayioglugil it is impossible for us to do a manual registry modification for those 200 spyder users. And It won't be approved in IT admin |
@zhifaliu we were able to successfully push a script through SCCM that makes the registry modification during the installation process so that we didn't have to manually do it for all of the spyder users at our location I was skeptical of the approval process myself, but as the fix came directly from Microsoft, they approved for us. If you have recently switched to Windows 10 this will likely not be the only time a similar issue comes up. |
@modigzd @ccordoba12 @dalthviz is it possible to patch the qtawesome incompatibility issue (I don't call it is a bug) very soon for Windows 10? The bad thing is we have pushed our 200 users to windows 10 OS upgrade in last month, so we have no choice if we want to use spyder in windows 10. |
Sorry, there's no incompatibility to patch or any change we can do in QtAwesome because QtAwesome was designed to provide a way to use font icon sets in Qt applications. Since Windows 10 prevents (at OS level) to read fonts outside of What we can do for now is to provide a way to use our fallback theme (the one used in Spyder 2) at startup in Spyder 3.1. After that I think the only solution is for us to move to use SVG icons instead of relying on font icon sets. Gosh, Windows 10 created a big problem for us.... :-/ |
Just an idea; is there a spyder version, which has that old theme (svg icons) and supports python 3.5? Funny interfaces is nice to have but not necessary. I tried 2.6 but got a conflict with python 3.5 (I know i can change my python version but before that i'd like to ask here) |
Sure, Spyder 2.3.9. But then you'll loose the last two years and a half of bug fixes and improvements. Spyder 3.1 will be released in two weeks, so pleas be patient. For now you can manually edit Spyder Preferences to use the old theme. For that you need to find this file
open it with a text editor, find this line
change it to
and finally start Spyder again. That should let you keep working with Spyder until we provide an automated solution for this :-) As a side note, let me clarify the situation: we don't have SVG icons and we didn't create QtAwesome out of fun. QtAwesome was our way to have scalable icons in Spyder, i.e. icons that work well on High DPI displays (our previous icon set is composed of bitmap images, and so it doesn't scale in those screens). Unfortunately that plan is now shattered by Windows 10, so we're forced to create a new theme based entirely on SVG images. That'll come in Spyder 3.2 ;-) |
@ccordoba12 Thanks for the tip. Now I am able to launch Spyder again. It may be my mistake but the IDE looks very much like Spyder 3 (I checked the .ini file after modification and revert theme to 3 and then remodified to 2, just to be sure) Looking forward to see Spyder 3.2 and a world without MS Windows. |
Thanks all for tracking down this issue and esp. to ccordoba12 for the workaround using Spyder 2 fonts. This has given me a great deal of grief as I had my OS upgraded to Win10 by our IT folks. Can we find a way to get this info out to a wider audience? It took me a lot of searching and trial and error re-installations, package upgrades, etc. on my own before finding this issue & solution. Just a thought, and again, thanks for all the work and for Spyder itself. Cheers! |
What happened with this ? I have the same probleme. |
Hi @cecidip could you try to update Spyder to 3.3.6? The problem here basically was the load of the font files needed for the Spyder 3 icon theme on Windows 10 (where a Windows feature can block loading fonts outside Window's font folder). Also, after Spyder version 3.1 we automatically do a fallback to the icons used by Spyder 2 (if we detect errors when loading the font), so probably updating Spyder should fix the issue for you. |
@dalthviz my spyder version is: spyder 3.3.6 py37_1 conda-forge |
Um seems like we are having issues with that version of Mac OS, maybe something in issues like #10406 can help but I think the issues goes beyond Spyder, sorry :/ |
@dalthviz this was happening before my update of mac ( which happened just a week ago) . Before this i uninstaled and re-installed anaconda completely, but still spyder didnt work. |
@cecidip I will check on my Mac and ping back |
So the problem is on Mac, on Linux? or are you openning spyder (on linux) via XQuartz while on Mac? |
@goanpeca "or are you openning spyder (on linux) via XQuartz while on Mac?" exactly. |
@goanpeca, please open a new issue about this. This issue is already registered in our Changelog, so we can't reopen it again. |
ok |
Running Windows 10 on a 64 Bit machine.
Steps:
Note: At the very beginning -first time- spyder started succesfully. i could even install python modules and compiled a piece of code. After first restart of machine, problems started to occur as i mentioned below
Results:
Spyder crashes with lots of qt log in console.
Spyder icon in Anaconda navigator also crashes.
spyder --show-console
It looks like a qt related thing. I searched existing issues and already tried:
conda update qt pyqt
python
Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
ipython qtconsole
(works fine)python spyder --reset
python spyder --new_instance
(same crash)At last, i updated spyder to 3.0.2 but nothing changes.
I installed Anaconda (after uninstalling carefully -with anaconda clean-) at least 5 times. https://docs.continuum.io/anaconda/install
Last edit before any comment
I'm able to run spyder (via anaconda) succefully on another windows 7 pc (64 bit) for a long time. The difference is: i installed theano and keras libraries on this mentioned machine after first installation and able to run codes from these libs succesfully till first shut down of machine.
Tried below solution and get spyder work at one time but without any icon in IDE:
conda install qt=4.8.7=vc10_4
( as mentioned here #2858)Dependencies
The text was updated successfully, but these errors were encountered: