spyder-ide / spyder

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

Launched spyder from miniconda using a batch file #21950

Closed donovaes closed 6 months ago

donovaes commented 6 months ago

Description

What steps will reproduce the problem?

I have a conda environment called spyder3 which was setup to use spyder and spyter-terminal this is the batch file -- file start -- cd c:\Users\EricDonovan\oopt\miniconda\Scripts call activate [spyder3] call start /b spyder

Traceback

Traceback (most recent call last):
  File "c:\apps\python3_8_10\lib\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.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.8.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.8 (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.15.10 (OK)
pylint_venv >=2.1.1            :  2.3.0 (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            :  56.0.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.2.1 (OK)
zmq >=22.1.0                   :  25.0.0 (OK)

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

# Spyder plugins:
spyder_vim.spyder.plugin 0.1.0 :  0.1.0 (OK)
ccordoba12 commented 6 months ago

Hey @donovaes, thanks for reporting. This problem is fixed in our latest version (5.4.3). Please update by closing Spyder, opening a terminal and running there the command:

pip install -U spyder