NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.58k stars 13.74k forks source link

Spyder dependencies error #255845

Open siryoussef opened 1 year ago

siryoussef commented 1 year ago

Describe the bug

Spyder gives an error of missing dependencies of qdarkstyle >= 3.0.2; < 3.1when starting which renders spyder non-functional !

What steps will reproduce the problem?

1- add spyder to enviroment.systemPackages in your NixOS configuration file. 2-sudo nixos-rebuild switch 3- start spyder

Traceback

Traceback (most recent call last):
  File "/nix/store/zmj6mpg9hbbcg8sp108v1nymzks8gkc7-python3.10-spyder-5.4.2/lib/python3.10/site-packages/spyder/plugins/application/container.py", line 331, in _check_updates_ready
    msg = header + content + footer
UnboundLocalError: local variable 'content' referenced before assignment

Versions

Dependencies

# Mandatory:
atomicwrites >=1.2.0          :  1.4.1 (OK)
chardet >=2.0.0               :  5.1.0 (OK)
cloudpickle >=0.5.0           :  2.2.1 (OK)
cookiecutter >=1.6.0          :  2.3.0 (OK)
diff_match_patch >=20181111   :  20200713 (OK)
intervaltree >=3.0.2          :  3.1.0 (OK)
IPython >=7.31.1;<9.0.0       :  8.11.0 (OK)
jedi >=0.17.2;<0.19.0         :  0.18.2 (OK)
jellyfish >=0.7               :  1.0.0 (OK)
jsonschema >=3.2.0            :  4.18.4 (OK)
keyring >=17.0.0              :  24.2.0 (OK)
nbconvert >=4.0               :  7.7.3 (OK)
numpydoc >=0.6.0              :  1.5.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.5 (OK)
pygments >=2.0                :  2.15.1 (OK)
pylint >=2.5.0;<3.0           :  2.17.5 (OK)
pylint_venv >=2.1.1           :  3.0.2 (OK)
pyls_spyder >=0.4.0           :  0.4.0 (OK)
pylsp >=1.7.1;<1.8.0          :  1.7.4 (OK)
pylsp_black >=1.2.0           :  1.3.0 (OK)
qdarkstyle >=3.0.2;<3.1.0     :  3.1 (NOK)
qstylizer >=0.2.2             :  0.2.2 (OK)
qtawesome >=1.2.1             :  1.2.3 (OK)
qtconsole >=5.4.0;<5.5.0      :  5.4.0 (OK)
qtpy >=2.1.0                  :  2.3.0 (OK)
rtree >=0.9.7                 :  1.0.1 (OK)
setuptools >=49.6.0           :  67.4.0.post0 (OK)
sphinx >=0.6.6                :  5.3.0 (OK)
spyder_kernels >=2.4.2;<2.5.0 :  2.4.3 (OK)
textdistance >=4.2.0          :  4.5.0 (OK)
three_merge >=0.1.1           :  0.1.1 (OK)
watchdog >=0.10.3             :  3.0.0 (OK)
xdg >=0.26                    :  0.28 (OK)
zmq >=22.1.0                  :  24.0.1 (OK)

# Optional:
cython >=0.21                 :  None (NOK)
matplotlib >=3.0.0            :  3.7.2 (OK)
numpy >=1.7                   :  1.25.1 (OK)
pandas >=1.1.1                :  None (NOK)
scipy >=0.17.0                :  1.11.1 (OK)
sympy >=0.7.3                 :  None (NOK)

Environment

Environment ``` Package Version ----------------------------- ------------ alabaster 0.7.13 arrow 1.2.3 astroid 2.15.6 asttokens 2.2.1 async-generator 1.10 atomicwrites 1.4.1 attrs 22.2.0 autopep8 2.0.2 Babel 2.12.1 backcall 0.2.0 beautifulsoup4 4.12.2 binaryornot 0.4.4 black 23.3.0 bleach 6.0.0 Brotli 1.0.9 brotlicffi 1.0.9.2 certifi 2023.5.7 cffi 1.15.1 chardet 5.1.0 charset-normalizer 3.0.1 click 8.1.6 cloudpickle 2.2.1 comm 0.1.3 contourpy 1.0.7 cookiecutter 2.3.0 cryptography 41.0.2 cycler 0.11.0 dbus-python 1.2.18 decorator 5.1.1 defusedxml 0.7.1 diff-match-patch 20200713 dill 0.3.6 docstring-to-markdown 0.12 docutils 0.19 entrypoints 0.4 executing 1.2.0 fastjsonschema 2.16.2 flake8 6.0.0 fonttools 4.38.0 helpdev 0.7.1 html5lib 1.1 idna 3.4 imagesize 1.4.1 importlib-metadata 6.8.0 inflection 0.5.1 intervaltree 3.1.0 ipykernel 6.21.2 ipython 8.11.0 ipython-genutils 0.2.0 isort 5.12.0 jaraco.classes 3.1.1 jedi 0.18.2 jeepney 0.8.0 jellyfish 1.0.0 Jinja2 3.1.2 jinja2-time 0.2.0 jsonschema 4.18.4 jsonschema-specifications 2023.7.1 jupyter_client 8.0.3 jupyter_core 5.2.0 jupyterlab-pygments 0.2.2 keyring 24.2.0 kiwisolver 1.4.4 lazy-object-proxy 1.9.0 markdown-it-py 2.2.0 MarkupSafe 2.1.3 matplotlib 3.7.2 matplotlib-inline 0.1.6 mccabe 0.7.0 mdurl 0.1.2 mistune 2.0.5 more-itertools 9.1.0 mypy-extensions 1.0.0 nbclient 0.7.2 nbconvert 7.7.3 nbformat 5.9.1 nest-asyncio 1.5.6 numpy 1.25.1 numpydoc 1.5.0 olefile 0.46 packaging 23.1 pandocfilters 1.5.0 parso 0.8.3 path 16.6.0 pathspec 0.11.0 pbr 5.11.1 pexpect 4.8.0 pickleshare 0.7.5 Pillow 10.0.0 pip 23.0.1 platformdirs 3.9.1 pluggy 1.2.0 prompt-toolkit 3.0.38 psutil 5.9.5 ptyprocess 0.7.0 pure-eval 0.2.2 py 1.11.0 pycodestyle 2.10.0 pycparser 2.21 pydocstyle 6.3.0 pyflakes 3.0.1 Pygments 2.15.1 pylint 2.17.5 pylint-venv 3.0.2 pyls-spyder 0.4.0 PyOpenGL 3.1.6 pyparsing 3.0.9 PyQt5 5.15.9 PyQt5-sip 12.11.0 PyQtWebEngine 5.15.4 PySocks 1.7.1 PyStemmer 2.2.0 python-dateutil 2.8.2 python-lsp-black 1.3.0 python-lsp-jsonrpc 1.0.0 python-lsp-server 1.7.4 python-slugify 8.0.1 pytoolconfig 1.2.5 pyxdg 0.28 PyYAML 6.0.1 pyzmq 24.0.1 QDarkStyle 3.1 qstylizer 0.2.2 QtAwesome 1.2.3 qtconsole 5.4.0 QtPy 2.3.0 referencing 0.30.0 requests 2.31.0 rich 13.3.5 rope 1.6.0 rpds-py 0.9.2 Rtree 1.0.1 scipy 1.11.1 SecretStorage 3.3.3 setuptools 67.4.0.post0 six 1.16.0 snowballstemmer 2.2.0 sortedcontainers 2.4.0 soupsieve 2.4 Sphinx 5.3.0 sphinxcontrib-apidoc 0.3.0 sphinxcontrib-applehelp 1.0.2 sphinxcontrib-devhelp 1.0.2 sphinxcontrib-htmlhelp 2.0.0 sphinxcontrib-jsmath 1.0.1 sphinxcontrib-qthelp 1.0.3 sphinxcontrib-serializinghtml 1.1.5 sphinxcontrib-websupport 1.2.4 spyder 5.4.2 spyder-kernels 2.4.3 stack-data 0.2.0 text-unidecode 1.3 textdistance 4.5.0 three-merge 0.1.1 tinycss2 1.1.1 toml 0.10.2 tomli 2.0.1 tomlkit 0.12.1 tornado 6.2 traitlets 5.9.0 typing_extensions 4.7.1 ujson 5.7.0 urllib3 1.26.16 watchdog 3.0.0 wcwidth 0.2.6 webencodings 0.5.1 whatthepatch 1.0.5 wheel 0.38.4 wrapt 1.14.1 wurlitzer 3.0.3 yapf 0.40.1 zipp 3.16.2 ```

Expected behavior

spyder starting normally

Maintainers

@gebner

siryoussef commented 1 year ago

After updating to the 5.4.5 the error changed to the following :-

Versions

Dependencies

# Mandatory:
atomicwrites >=1.2.0                                                        :  1.4.1 (OK)
chardet >=2.0.0                                                             :  5.1.0 (OK)
cloudpickle >=0.5.0                                                         :  2.2.1 (OK)
cookiecutter >=1.6.0                                                        :  2.3.0 (OK)
diff_match_patch >=20181111                                                 :  20200713 (OK)
intervaltree >=3.0.2                                                        :  3.1.0 (OK)
IPython >=7.31.1,<9.0.0,!=8.8.0,!=8.9.0,!=8.10.0,!=8.11.0,!=8.12.0,!=8.12.1 :  8.11.0 (NOK)
jedi >=0.17.2,<0.19.0                                                       :  0.19.0 (NOK)
jellyfish >=0.7                                                             :  1.0.0 (OK)
jsonschema >=3.2.0                                                          :  4.18.4 (OK)
keyring >=17.0.0                                                            :  24.2.0 (OK)
nbconvert >=4.0                                                             :  7.7.3 (OK)
numpydoc >=0.6.0                                                            :  1.5.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.5 (OK)
pygments >=2.0                                                              :  2.15.1 (OK)
pylint >=2.5.0,<3.0                                                         :  2.17.5 (OK)
pylint_venv >=3.0.2                                                         :  3.0.2 (OK)
pyls_spyder >=0.4.0                                                         :  0.4.0 (OK)
pylsp >=1.7.4,<1.8.0                                                        :  1.8.0 (NOK)
pylsp_black >=1.2.0,<3.0.0                                                  :  1.3.0 (OK)
qdarkstyle >=3.0.2,<3.2.0                                                   :  3.1 (OK)
qstylizer >=0.2.2                                                           :  0.2.2 (OK)
qtawesome >=1.2.1                                                           :  1.2.3 (OK)
qtconsole >=5.4.2,<5.5.0                                                    :  5.4.4 (OK)
qtpy >=2.1.0                                                                :  2.4.0 (OK)
rtree >=0.9.7                                                               :  1.0.1 (OK)
setuptools >=49.6.0                                                         :  68.0.0.post0 (OK)
sphinx >=0.6.6                                                              :  5.3.0 (OK)
spyder_kernels >=2.4.4,<2.5.0                                               :  2.4.4 (OK)
textdistance >=4.2.0                                                        :  4.5.0 (OK)
three_merge >=0.1.1                                                         :  0.1.1 (OK)
watchdog >=0.10.3                                                           :  3.0.0 (OK)
xdg >=0.26                                                                  :  0.28 (OK)
zmq >=22.1.0                                                                :  24.0.1 (OK)

# Optional:
cython >=0.21                                                               :  None (NOK)
matplotlib >=3.0.0                                                          :  3.7.2 (OK)
numpy >=1.7                                                                 :  1.25.1 (OK)
pandas >=1.1.1                                                              :  None (NOK)
scipy >=0.17.0                                                              :  1.11.2 (OK)
sympy >=0.7.3                                                               :  None (NOK)

I think postPatch should be modified to replace other dependencies as well (just as qdarkstyle error was fixed ).