spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.35k stars 1.62k forks source link

start error at spyder #21419

Closed cecustodioc closed 1 year ago

cecustodioc commented 1 year ago

Description

What steps will reproduce the problem?

At the start of the environment the program spyder reports a internal error.

Traceback

Traceback (most recent call last):
  File "C:\Users\52937\AppData\Local\Programs\Python\Python311\Lib\site-packages\spyder\plugins\application\container.py", line 331, in _check_updates_ready
    msg = header + content + footer
                   ^^^^^^^
UnboundLocalError: cannot access local variable 'content' where it is not associated with a value

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.1.1 (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               :  0.9.0 (OK)
jsonschema >=3.2.0            :  4.17.3 (OK)
keyring >=17.0.0              :  23.13.1 (OK)
nbconvert >=4.0               :  7.2.9 (OK)
numpydoc >=0.6.0              :  1.5.0 (OK)
paramiko >=2.4.0              :  3.0.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.4 (OK)
pygments >=2.0                :  2.14.0 (OK)
pylint >=2.5.0;<3.0           :  2.16.2 (OK)
pylint_venv >=2.1.1           :  3.0.1 (OK)
pyls_spyder >=0.4.0           :  0.4.0 (OK)
pylsp >=1.7.1;<1.8.0          :  1.7.1 (OK)
pylsp_black >=1.2.0           :  1.2.1 (OK)
qdarkstyle >=3.0.2;<3.1.0     :  3.0.3 (OK)
qstylizer >=0.2.2             :  0.2.2 (OK)
qtawesome >=1.2.1             :  1.2.2 (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 (OK)
sphinx >=0.6.6                :  6.1.3 (OK)
spyder_kernels >=2.4.2;<2.5.0 :  2.4.2 (OK)
textdistance >=4.2.0          :  4.5.0 (OK)
three_merge >=0.1.1           :  0.1.1 (OK)
watchdog >=0.10.3             :  2.3.1 (OK)
zmq >=22.1.0                  :  25.0.0 (OK)

# Optional:
cython >=0.21                 :  0.29.33 (OK)
matplotlib >=3.0.0            :  3.7.0 (OK)
numpy >=1.7                   :  1.24.2 (OK)
pandas >=1.1.1                :  1.5.3 (OK)
scipy >=0.17.0                :  1.10.1 (OK)
sympy >=0.7.3                 :  None (NOK)

Environment

Environment ``` Package Version ----------------------------- --------- alabaster 0.7.13 altgraph 0.17.3 ansi2html 1.8.0 arrow 1.2.3 asgiref 3.6.0 astroid 2.14.2 asttokens 2.2.1 atomicwrites 1.4.1 attrs 22.2.0 autopep8 1.6.0 Babel 2.12.1 backcall 0.2.0 bcrypt 4.0.1 beautifulsoup4 4.11.2 binaryornot 0.4.4 black 23.1.0 bleach 6.0.0 certifi 2022.12.7 cffi 1.15.1 chardet 5.1.0 charset-normalizer 3.0.1 click 8.1.3 cloudpickle 2.2.1 colorama 0.4.6 comm 0.1.2 contourpy 1.0.7 cookiecutter 2.1.1 cryptography 39.0.1 cx-Oracle 8.3.0 cycler 0.11.0 Cython 0.29.33 dash 2.12.1 dash-core-components 2.0.0 dash-html-components 2.0.0 dash-table 5.0.0 dearpygui 1.9.1 debugpy 1.6.6 decorator 5.1.1 defusedxml 0.7.1 diff-match-patch 20200713 dill 0.3.6 Django 4.2 django-filter 23.1 django-guardian 2.4.0 docstring-to-markdown 0.11 docutils 0.19 entrypoints 0.4 et-xmlfile 1.1.0 executing 1.2.0 expand 0.2.2 fastjsonschema 2.16.3 flake8 6.0.0 Flask 2.2.5 fonttools 4.38.0 future 0.18.3 idna 3.4 imagesize 1.4.1 importlib-metadata 6.0.0 inflection 0.5.1 iniconfig 2.0.0 intervaltree 3.1.0 ipykernel 6.21.2 ipython 8.11.0 ipython-genutils 0.2.0 isort 5.12.0 itsdangerous 2.1.2 jaraco.classes 3.2.3 jedi 0.18.2 jellyfish 0.9.0 Jinja2 3.1.2 jinja2-time 0.2.0 jsonschema 4.17.3 jupyter_client 7.4.9 jupyter_core 5.2.0 jupyterlab-pygments 0.2.2 keyring 23.13.1 kiwisolver 1.4.4 lazy-object-proxy 1.9.0 Markdown 3.4.3 MarkupSafe 2.1.2 matplotlib 3.7.0 matplotlib-inline 0.1.6 mccabe 0.7.0 mistune 2.0.5 mizani 0.9.2 more-itertools 9.1.0 mypy-extensions 1.0.0 mysql-connector-python 8.1.0 nbclient 0.7.2 nbconvert 7.2.9 nbformat 5.7.3 nest-asyncio 1.5.6 numexpr 2.8.5 numpy 1.24.2 numpydoc 1.5.0 openpyxl 3.1.1 packaging 23.0 pandas 1.5.3 pandastable 0.13.1 pandocfilters 1.5.0 paramiko 3.0.0 parso 0.8.3 pathspec 0.11.0 patsy 0.5.3 pefile 2023.2.7 pexpect 4.8.0 pickleshare 0.7.5 Pillow 9.4.0 pip 23.2.1 platformdirs 3.0.0 plotly 5.15.0 plotnine 0.12.1 pluggy 1.0.0 prompt-toolkit 3.0.38 protobuf 4.21.12 psutil 5.9.4 ptyprocess 0.7.0 pure-eval 0.2.2 pycairo 1.24.0 pycodestyle 2.10.0 pycparser 2.21 pydocstyle 6.2.3 pyflakes 3.0.1 Pygments 2.14.0 pyinstaller 5.13.0 pyinstaller-hooks-contrib 2023.5 pylint 2.16.2 pylint-venv 3.0.1 pyls-spyder 0.4.0 PyNaCl 1.5.0 pyparsing 3.0.9 pyproject 1.3.1 PyQt5 5.15.9 PyQt5-Qt5 5.15.2 PyQt5-sip 12.11.1 PyQtWebEngine 5.15.6 PyQtWebEngine-Qt5 5.15.2 pyrsistent 0.19.3 pytest 7.4.0 python-dateutil 2.8.2 python-lsp-black 1.2.1 python-lsp-jsonrpc 1.0.0 python-lsp-server 1.7.1 python-slugify 8.0.1 pytoolconfig 1.2.5 pytz 2022.7.1 pywin32 305 pywin32-ctypes 0.2.2 PyYAML 6.0 pyzmq 25.0.0 QDarkStyle 3.0.3 qstylizer 0.2.2 QtAwesome 1.2.2 qtconsole 5.4.0 QtPy 2.3.0 requests 2.28.2 retrying 1.3.4 rope 1.7.0 Rtree 1.0.1 scipy 1.10.1 setuptools 67.4.0 six 1.16.0 snowballstemmer 2.2.0 sortedcontainers 2.4.0 soupsieve 2.4 Sphinx 6.1.3 sphinxcontrib-applehelp 1.0.4 sphinxcontrib-devhelp 1.0.2 sphinxcontrib-htmlhelp 2.0.1 sphinxcontrib-jsmath 1.0.1 sphinxcontrib-qthelp 1.0.3 sphinxcontrib-serializinghtml 1.1.5 spyder 5.4.2 spyder-kernels 2.4.2 sqlparse 0.4.4 stack-data 0.6.2 statsmodels 0.14.0 tenacity 8.2.2 text-unidecode 1.3 textdistance 4.5.0 three-merge 0.1.1 tinycss2 1.2.1 tk 0.1.0 toml 0.10.2 tomlkit 0.11.6 tornado 6.2 traitlets 5.9.0 typing_extensions 4.7.1 tzdata 2023.3 ujson 5.7.0 uritemplate 4.1.1 urllib3 1.26.14 watchdog 2.3.1 wcwidth 0.2.6 webencodings 0.5.1 Werkzeug 2.2.3 whatthepatch 1.0.4 wheel 0.38.4 wrapt 1.15.0 wxPython 4.2.1 xlrd 2.0.1 yapf 0.32.0 zipp 3.15.0 ```
dalthviz commented 1 year ago

Hi @cecustodioc thank you for the feedback! This seems like a duplicate of https://github.com/spyder-ide/spyder/issues/20406 . To prevent this you will need to update at least to Spyder 5.4.3. Let us know!

dalthviz commented 1 year ago

Closing as a duplicate of #20406