spyder-ide / spyder

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

Spyder updater keeps failing #22359

Closed jverrall closed 2 months ago

jverrall commented 2 months ago

Description

What steps will reproduce the problem?

Click Help -> Check for updates Select to user Spyder's own installer

Traceback

Traceback (most recent call last):
  File "C:\Users\verrallj\AppData\Local\anaconda3\envs\autocal_env\Lib\site-packages\spyder\plugins\application\container.py", line 330, in _check_updates_ready
    self.application_update_status.start_installation(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'start_installation'

Versions

Dependencies

# Mandatory:
atomicwrites >=1.2.0             :  1.4.1 (OK)
chardet >=2.0.0                  :  5.2.0 (OK)
cloudpickle >=0.5.0              :  3.0.0 (OK)
cookiecutter >=1.6.0             :  2.6.0 (OK)
diff_match_patch >=20181111      :  20230430 (OK)
intervaltree >=3.0.2             :  3.1.0 (OK)
IPython >=8.13.0,<9.0.0,!=8.17.1 :  8.20.0 (OK)
jedi >=0.17.2,<0.20.0            :  0.18.1 (OK)
jellyfish >=0.7                  :  1.0.1 (OK)
jsonschema >=3.2.0               :  4.19.2 (OK)
keyring >=17.0.0                 :  25.2.1 (OK)
nbconvert >=4.0                  :  7.10.0 (OK)
numpydoc >=0.6.0                 :  1.7.0 (OK)
paramiko >=2.4.0                 :  3.4.0 (OK)
parso >=0.7.0,<0.9.0             :  0.8.3 (OK)
pexpect >=4.4.0                  :  4.9.0 (OK)
pickleshare >=0.4                :  0.7.5 (OK)
psutil >=5.3                     :  5.9.0 (OK)
pygments >=2.0                   :  2.15.1 (OK)
pylint >=2.5.0,<3.1              :  3.0.4 (OK)
pylint_venv >=3.0.2              :  3.0.3 (OK)
pyls_spyder >=0.4.0              :  0.4.0 (OK)
pylsp >=1.10.0,<1.11.0           :  1.10.1 (OK)
pylsp_black >=2.0.0,<3.0.0       :  2.0.0 (OK)
qdarkstyle >=3.2.0,<3.3.0        :  3.2.3 (OK)
qstylizer >=0.2.2                :  0.2.3 (OK)
qtawesome >=1.2.1                :  1.3.1 (OK)
qtconsole >=5.5.1,<5.6.0         :  5.5.2 (OK)
qtpy >=2.1.0                     :  2.4.1 (OK)
rtree >=0.9.7                    :  1.2.0 (OK)
setuptools >=49.6.0              :  68.2.2 (OK)
sphinx >=0.6.6                   :  7.3.7 (OK)
spyder_kernels >=2.5.0,<2.6.0    :  2.5.0 (OK)
textdistance >=4.2.0             :  4.6.2 (OK)
three_merge >=0.1.1              :  0.1.1 (OK)
watchdog >=0.10.3                :  4.0.1 (OK)
zmq >=22.1.0                     :  25.1.2 (OK)

# Optional:
cython >=0.21                    :  None (NOK)
matplotlib >=3.0.0               :  None (NOK)
numpy >=1.7                      :  1.26.3 (OK)
pandas >=1.1.1                   :  2.1.4 (OK)
scipy >=0.17.0                   :  1.11.4 (OK)
sympy >=0.7.3                    :  None (NOK)

Environment

Environment ``` # packages in environment at C:\Users\verrallj\AppData\Local\anaconda3\envs\autocal_env: # # Name Version Build Channel alabaster 0.7.16 pyhd8ed1ab_0 conda-forge anyio 3.5.0 py311haa95532_0 argon2-cffi 21.3.0 pyhd3eb1b0_0 argon2-cffi-bindings 21.2.0 py311h2bbff1b_0 arrow 1.3.0 pyhd8ed1ab_0 conda-forge astroid 3.0.3 py311h1ea47a8_0 conda-forge asttokens 2.0.5 pyhd3eb1b0_0 async-lru 2.0.4 py311haa95532_0 atomicwrites 1.4.1 pyhd8ed1ab_0 conda-forge attrs 23.1.0 py311haa95532_0 autopep8 2.0.4 pyhd8ed1ab_0 conda-forge babel 2.11.0 py311haa95532_0 backports 1.0 pyhd8ed1ab_3 conda-forge backports.tarfile 1.0.0 pyhd8ed1ab_1 conda-forge bcrypt 3.2.0 py311h2bbff1b_1 beautifulsoup4 4.12.2 py311haa95532_0 binaryornot 0.4.4 py_1 conda-forge black 24.4.2 py311h1ea47a8_0 conda-forge blas 1.0 mkl bleach 4.1.0 pyhd3eb1b0_0 bottleneck 1.3.5 py311h5bb9823_0 brotli-python 1.0.9 py311hd77b12b_7 bzip2 1.0.8 he774522_0 ca-certificates 2024.7.4 h56e8100_0 conda-forge certifi 2024.7.4 pyhd8ed1ab_0 conda-forge cffi 1.16.0 py311h2bbff1b_0 chardet 5.2.0 py311h1ea47a8_1 conda-forge charset-normalizer 2.0.4 pyhd3eb1b0_0 click 8.1.7 win_pyh7428d3b_0 conda-forge cloudpickle 3.0.0 pyhd8ed1ab_0 conda-forge colorama 0.4.6 py311haa95532_0 comm 0.1.2 py311haa95532_0 cookiecutter 2.6.0 pyhca7485f_0 conda-forge cryptography 41.0.7 py311h89fc84f_0 debugpy 1.6.7 py311hd77b12b_0 decorator 5.1.1 pyhd3eb1b0_0 defusedxml 0.7.1 pyhd3eb1b0_0 diff-match-patch 20230430 pyhd8ed1ab_0 conda-forge dill 0.3.8 pyhd8ed1ab_0 conda-forge docstring-to-markdown 0.15 pyhd8ed1ab_0 conda-forge docutils 0.21.2 pyhd8ed1ab_0 conda-forge et_xmlfile 1.1.0 py311haa95532_0 executing 0.8.3 pyhd3eb1b0_0 flake8 7.0.0 pyhd8ed1ab_0 conda-forge greenlet 3.0.3 pypi_0 pypi icc_rt 2022.1.0 h6049295_2 icu 73.1 h6c2663c_0 idna 3.4 py311haa95532_0 imagesize 1.4.1 pyhd8ed1ab_0 conda-forge importlib-metadata 8.0.0 pyha770c72_0 conda-forge importlib_metadata 8.0.0 hd8ed1ab_0 conda-forge importlib_resources 6.4.0 pyhd8ed1ab_0 conda-forge inflection 0.5.1 pyh9f0ad1d_0 conda-forge intel-openmp 2023.1.0 h59b6b97_46320 intervaltree 3.1.0 pyhd8ed1ab_1 conda-forge ipykernel 6.28.0 py311haa95532_0 ipython 8.20.0 py311haa95532_0 isort 5.13.2 pyhd8ed1ab_0 conda-forge jaraco.classes 3.4.0 pyhd8ed1ab_1 conda-forge jaraco.context 5.3.0 pyhd8ed1ab_1 conda-forge jaraco.functools 4.0.0 pyhd8ed1ab_0 conda-forge jedi 0.18.1 py311haa95532_1 jellyfish 1.0.1 py311h36a85e1_0 jinja2 3.1.2 py311haa95532_0 joblib 1.2.0 py311haa95532_0 jpeg 9e h8ffe710_2 conda-forge json5 0.9.6 pyhd3eb1b0_0 jsonschema 4.19.2 py311haa95532_0 jsonschema-specifications 2023.7.1 py311haa95532_0 jupyter-lsp 2.2.0 py311haa95532_0 jupyter_client 8.6.0 py311haa95532_0 jupyter_core 5.5.0 py311haa95532_0 jupyter_events 0.8.0 py311haa95532_0 jupyter_server 2.10.0 py311haa95532_0 jupyter_server_terminals 0.4.4 py311haa95532_1 jupyterlab 4.0.8 py311haa95532_0 jupyterlab_pygments 0.1.2 py_0 jupyterlab_server 2.25.1 py311haa95532_0 keyring 25.2.1 pyh7428d3b_0 conda-forge krb5 1.20.1 h5b6d351_0 libclang 14.0.6 default_hb5a9fac_1 libclang13 14.0.6 default_h8e68704_1 libffi 3.4.4 hd77b12b_0 libpng 1.6.39 h8cc25b3_0 libpq 12.17 h906ac69_0 libsodium 1.0.18 h62dcd97_0 libspatialindex 1.9.3 h39d44d4_4 conda-forge lz4-c 1.9.4 h2bbff1b_1 markdown-it-py 3.0.0 pyhd8ed1ab_0 conda-forge markupsafe 2.1.3 py311h2bbff1b_0 matplotlib-inline 0.1.6 py311haa95532_0 mccabe 0.7.0 pyhd8ed1ab_0 conda-forge mdurl 0.1.2 pyhd8ed1ab_0 conda-forge mistune 2.0.4 py311haa95532_0 mkl 2023.1.0 h6b88ed4_46358 mkl-service 2.4.0 py311h2bbff1b_1 mkl_fft 1.3.8 py311h2bbff1b_0 mkl_random 1.2.4 py311h59b6b97_0 more-itertools 10.3.0 pyhd8ed1ab_0 conda-forge mypy_extensions 1.0.0 pyha770c72_0 conda-forge nbclient 0.8.0 py311haa95532_0 nbconvert 7.10.0 py311haa95532_0 nbformat 5.9.2 py311haa95532_0 nest-asyncio 1.5.6 py311haa95532_0 notebook-shim 0.2.3 py311haa95532_0 numexpr 2.8.7 py311h1fcbade_0 numpy 1.26.3 py311hdab7c0b_0 numpy-base 1.26.3 py311hd01c5d8_0 numpydoc 1.7.0 pyhd8ed1ab_1 conda-forge openpyxl 3.0.10 py311h2bbff1b_0 openssl 3.0.12 h2bbff1b_0 overrides 7.4.0 py311haa95532_0 packaging 23.1 py311haa95532_0 pandas 2.1.4 py311hf62ec03_0 pandocfilters 1.5.0 pyhd3eb1b0_0 paramiko 3.4.0 pyhd8ed1ab_0 conda-forge parso 0.8.3 pyhd3eb1b0_0 pathspec 0.12.1 pyhd8ed1ab_0 conda-forge pexpect 4.9.0 pyhd8ed1ab_0 conda-forge pickleshare 0.7.5 py_1003 conda-forge pip 23.3.1 py311haa95532_0 platformdirs 3.10.0 py311haa95532_0 plotly 5.9.0 py311haa95532_0 pluggy 1.5.0 pyhd8ed1ab_0 conda-forge ply 3.11 pyhd8ed1ab_2 conda-forge powershell_shortcut 0.0.1 3 prometheus_client 0.14.1 py311haa95532_0 prompt-toolkit 3.0.43 py311haa95532_0 prompt_toolkit 3.0.43 hd3eb1b0_0 psutil 5.9.0 py311h2bbff1b_0 ptyprocess 0.7.0 pyhd3deb0d_0 conda-forge pure_eval 0.2.2 pyhd3eb1b0_0 pyarrow 15.0.0 pypi_0 pypi pycodestyle 2.11.1 pyhd8ed1ab_0 conda-forge pycparser 2.21 pyhd3eb1b0_0 pydocstyle 6.3.0 pyhd8ed1ab_0 conda-forge pyflakes 3.2.0 pyhd8ed1ab_0 conda-forge pygments 2.15.1 py311haa95532_1 pylint 3.0.4 pyhd8ed1ab_0 conda-forge pylint-venv 3.0.3 pyhd8ed1ab_0 conda-forge pyls-spyder 0.4.0 pyhd8ed1ab_0 conda-forge pynacl 1.5.0 py311h8cc25b3_0 pyodbc 5.0.1 py311hd77b12b_0 pyopenssl 23.2.0 py311haa95532_0 pyqt 5.15.10 py311hd77b12b_0 pyqt5-sip 12.13.0 py311h2bbff1b_0 pyqtwebengine 5.15.10 py311hd77b12b_0 pysocks 1.7.1 py311haa95532_0 python 3.11.7 he1021f5_0 python-dateutil 2.8.2 pyhd3eb1b0_0 python-fastjsonschema 2.16.2 py311haa95532_0 python-json-logger 2.0.7 py311haa95532_0 python-lsp-black 2.0.0 pyhd8ed1ab_0 conda-forge python-lsp-jsonrpc 1.1.2 pyhd8ed1ab_0 conda-forge python-lsp-server 1.10.1 pyhd8ed1ab_0 conda-forge python-lsp-server-base 1.10.1 pyhd8ed1ab_0 conda-forge python-slugify 8.0.4 pyhd8ed1ab_0 conda-forge python-tzdata 2023.3 pyhd3eb1b0_0 python_abi 3.11 2_cp311 conda-forge pytoolconfig 1.2.5 pyhd8ed1ab_0 conda-forge pytz 2023.3.post1 py311haa95532_0 pywin32 305 py311h2bbff1b_0 pywin32-ctypes 0.2.2 py311h1ea47a8_1 conda-forge pywinpty 2.0.10 py311h5da7b33_0 pyyaml 6.0.1 py311h2bbff1b_0 pyzmq 25.1.2 py311hd77b12b_0 qdarkstyle 3.2.3 pyhd8ed1ab_0 conda-forge qstylizer 0.2.3 pyhd8ed1ab_0 conda-forge qt-main 5.15.2 h19c9488_10 qt-webengine 5.15.9 h5bd16bc_7 qtawesome 1.3.1 pyh9208f05_0 conda-forge qtconsole 5.5.2 pyhd8ed1ab_0 conda-forge qtconsole-base 5.5.2 pyha770c72_0 conda-forge qtpy 2.4.1 pyhd8ed1ab_0 conda-forge referencing 0.30.2 py311haa95532_0 requests 2.31.0 py311haa95532_0 rfc3339-validator 0.1.4 py311haa95532_0 rfc3986-validator 0.1.1 py311haa95532_0 rich 13.7.1 pyhd8ed1ab_0 conda-forge rope 1.13.0 pyhd8ed1ab_0 conda-forge rpds-py 0.10.6 py311h062c2fa_0 rtree 1.2.0 py311hcacb13a_0 conda-forge sas7bdat 2.2.3 pypi_0 pypi scikit-learn 1.2.2 py311hd77b12b_1 scipy 1.11.4 py311hc1ccb85_0 send2trash 1.8.2 py311haa95532_0 setuptools 68.2.2 py311haa95532_0 sip 6.7.12 py311hd77b12b_0 six 1.16.0 pyhd3eb1b0_1 sniffio 1.3.0 py311haa95532_0 snowballstemmer 2.2.0 pyhd8ed1ab_0 conda-forge sortedcontainers 2.4.0 pyhd8ed1ab_0 conda-forge soupsieve 2.5 py311haa95532_0 sphinx 7.3.7 pyhd8ed1ab_0 conda-forge sphinxcontrib-applehelp 1.0.8 pyhd8ed1ab_0 conda-forge sphinxcontrib-devhelp 1.0.6 pyhd8ed1ab_0 conda-forge sphinxcontrib-htmlhelp 2.0.5 pyhd8ed1ab_0 conda-forge sphinxcontrib-jsmath 1.0.1 pyhd8ed1ab_0 conda-forge sphinxcontrib-qthelp 1.0.7 pyhd8ed1ab_0 conda-forge sphinxcontrib-serializinghtml 1.1.10 pyhd8ed1ab_0 conda-forge spyder 5.5.1 py311h1ea47a8_0 conda-forge spyder-kernels 2.5.0 win_pyh7428d3b_0 conda-forge sqlalchemy 2.0.25 pypi_0 pypi sqlite 3.41.2 h2bbff1b_0 stack_data 0.2.0 pyhd3eb1b0_0 tabulate 0.9.0 pyhd8ed1ab_1 conda-forge tbb 2021.8.0 h59b6b97_0 tenacity 8.2.2 py311haa95532_0 terminado 0.17.1 py311haa95532_0 text-unidecode 1.3 pyhd8ed1ab_1 conda-forge textdistance 4.6.2 pyhd8ed1ab_0 conda-forge threadpoolctl 2.2.0 pyh0d69192_0 three-merge 0.1.1 pyh9f0ad1d_0 conda-forge tinycss2 1.2.1 py311haa95532_0 tk 8.6.12 h2bbff1b_0 tomli 2.0.1 pyhd8ed1ab_0 conda-forge tomlkit 0.13.0 pyha770c72_0 conda-forge tornado 6.3.3 py311h2bbff1b_0 traitlets 5.7.1 py311haa95532_0 types-python-dateutil 2.9.0.20240316 pyhd8ed1ab_0 conda-forge typing-extensions 4.9.0 py311haa95532_1 typing_extensions 4.9.0 py311haa95532_1 tzdata 2023d h04d1e81_0 ujson 5.4.0 py311hd77b12b_0 unidecode 1.2.0 pyhd3eb1b0_0 urllib3 1.26.18 py311haa95532_0 vc 14.2 h21ff451_1 vs2015_runtime 14.27.29016 h5e58377_2 watchdog 4.0.1 py311h1ea47a8_0 conda-forge wcwidth 0.2.5 pyhd3eb1b0_0 webencodings 0.5.1 py311haa95532_1 websocket-client 0.58.0 py311haa95532_4 whatthepatch 1.0.6 pyhd8ed1ab_0 conda-forge wheel 0.41.2 py311haa95532_0 win_inet_pton 1.1.0 py311haa95532_0 winpty 0.4.3 4 conda-forge xz 5.4.5 h8cc25b3_0 yaml 0.2.5 he774522_0 conda-forge yapf 0.40.1 pyhd8ed1ab_0 conda-forge zeromq 4.3.5 hd77b12b_0 zipp 3.19.2 pyhd8ed1ab_0 conda-forge zlib 1.2.13 h8cc25b3_0 zstd 1.5.5 hd43e919_0 ```
PhilipYip1988 commented 2 months ago

I think the use of the updater in the Spyder UI is used for a Spyder installation using the standalone installers.

In your case, it looks like you have Spyder installed in a conda-forge environment using Anaconda. Use the conda package manager to update Spyder and the other packages to their latest versions from the conda-forge channel:

conda activate autocal_env
conda update -c conda-forge --all
ccordoba12 commented 2 months ago

@PhilipYip1988 answer is correct. But you can also use these commands to simply update Spyder (instead of updating your entire environment):

conda activate autocal_env
conda install -c conda-forge spyder=5.5.5

Let us know if it works for you.

jverrall commented 2 months ago

Thanks @PhilipYip1988 and @ccordoba12 for the guidance! It's been a while because I've hit some work firewall issues, which might be contributing to this error as well.

Please feel free to close this issue off.

ccordoba12 commented 2 months ago

No problem, closing then.