Repository: spyder-ide/spyder

Issue:
Spyder unable to load Spyder 3 icon theme
## Description

### What steps will reproduce the problem?

<!--- You can use Markdown here --->

Spyder refuses to load the icon theme of Spyder 3. It will then fallback to Icon theme 2, and restart.

Changing the theme in preferences will re trigger this error when re-launched.



## Versions

* Spyder version: 5.3.1 
* Python version: 3.8.10
* Qt version: 5.15.2
* PyQt5 version: 5.15.6
* Operating System: Windows 10

### Dependencies

```
# Mandatory:
atomicwrites >=1.2.0                 :  1.4.0 (OK)
chardet >=2.0.0                      :  4.0.0 (OK)
cloudpickle >=0.5.0                  :  2.1.0 (OK)
cookiecutter >=1.6.0                 :  1.7.3 (OK)
diff_match_patch >=20181111          :  20200713 (OK)
intervaltree                         :  None (OK)
IPython >=7.31.1;<8.0.0              :  7.33.0 (OK)
jedi >=0.17.2;<0.19.0                :  0.18.1 (OK)
jellyfish >=0.7                      :  0.9.0 (OK)
jsonschema >=3.2.0                   :  4.5.1 (OK)
keyring >=17.0.0                     :  23.5.1 (OK)
nbconvert >=4.0                      :  6.5.0 (OK)
numpydoc >=0.6.0                     :  1.3.1 (OK)
paramiko >=2.4.0                     :  2.11.0 (OK)
parso >=0.7.0;<0.9.0                 :  0.8.3 (OK)
pexpect >=4.4.0                      :  4.8.0 (OK)
pickleshare >=0.4                    :  0.7.5 (OK)
psutil >=5.3                         :  5.9.1 (OK)
pygments >=2.0                       :  2.12.0 (OK)
pylint >=2.5.0                       :  2.13.9 (OK)
pyls_spyder >=0.4.0                  :  0.4.0 (OK)
pylsp >=1.4.1;<1.5.0                 :  1.4.1 (OK)
pylsp_black >=1.2.0                  :  1.2.1 (OK)
qdarkstyle >=3.0.2;<3.1.0            :  3.0.3 (OK)
qstylizer >=0.1.10                   :  0.2.1 (OK)
qtawesome >=1.0.2                    :  1.1.1 (OK)
qtconsole >=5.3.0;<5.4.0             :  5.3.0 (OK)
qtpy >=2.1.0                         :  2.1.0 (OK)
rtree >=0.9.7                        :  1.0.0 (OK)
setuptools >=49.6.0                  :  62.3.2 (OK)
sphinx >=0.6.6                       :  4.5.0 (OK)
spyder_kernels >=2.3.1;<2.4.0        :  2.3.1 (OK)
textdistance >=4.2.0                 :  4.2.2 (OK)
three_merge >=0.1.1                  :  0.1.1 (OK)
watchdog                             :  2.1.8 (OK)
zmq >=22.1.0                         :  23.0.0 (OK)

# Optional:
cython >=0.21                        :  0.29.30 (OK)
matplotlib >=3.0.0                   :  3.5.2 (OK)
numpy >=1.7                          :  1.22.4 (OK)
pandas >=1.1.1                       :  1.4.2 (OK)
scipy >=0.17.0                       :  1.8.1 (OK)
sympy >=0.7.3                        :  1.10.1 (OK)

# Spyder plugins:
spyder_terminal.terminalplugin 1.2.2 :  1.2.2 (OK)
```



Discussion:
Hi @Elis-Williams,

Can you walk me through the steps you are making in preferences so I can try them out in my end to see if I can reproduce this issue?
Hi Steff,

![image](https://user-images.githubusercontent.com/109168996/178572586-81f0eab0-56c1-4a26-885c-40a54c7078de.png)

In _Appearance_, I change the icon theme from _Spyder 2_ to _Spyder 3_. I click apply, then restart Spyder.


Mid launch I then get the following popup, and I need to launch Spyder again.


![image](https://user-images.githubusercontent.com/109168996/178573256-9b877546-03ca-4d0b-bb64-929990647f4b.png)



Did you selected the Spyder 2 before installing Spyder or this was an issue since the installation? 
Since installation.
We also have this issue in both the Anaconda/Spyder installation and in the Spyder standalone.
The issue is that windows 10 does not allow loading Icons outside of the system files.

Please upgrade this issue because it is currently preventing us from using Spyder. 
Ok, we'll try to take a look at this for our next version (5.4.0), to be released in October.
This is related with spyder-ide/qtawesome#167

Resolving patch:
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -234,7 +234,7 @@ def run(self):
     'pyzmq>=22.1.0',
     'qdarkstyle>=3.0.2,<3.1.0',
     'qstylizer>=0.2.2',
-    'qtawesome>=1.0.2',
+    'qtawesome>=1.2.1',
     'qtconsole>=5.3.2,<5.4.0',
     'qtpy>=2.1.0',
     'rtree>=0.9.7',
diff --git a/spyder/dependencies.py b/spyder/dependencies.py
--- a/spyder/dependencies.py
+++ b/spyder/dependencies.py
@@ -60,7 +60,7 @@
 PYZMQ_REQVER = '>=22.1.0'
 QDARKSTYLE_REQVER = '>=3.0.2;<3.1.0'
 QSTYLIZER_REQVER = '>=0.2.2'
-QTAWESOME_REQVER = '>=1.0.2'
+QTAWESOME_REQVER = '>=1.2.1'
 QTCONSOLE_REQVER = '>=5.3.2;<5.4.0'
 QTPY_REQVER = '>=2.1.0'
 RTREE_REQVER = '>=0.9.7'


Test patch: