spyder-ide / spyder

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

Spyder won't launch when creating new environment with conda default packages (5.2.2 version) with errors like `ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'` and `qtpy.QtModuleNotInstalledError: The QtWebEngineWidgets module was not found. It must be installed separately as PyQtWebEngine.` #18234

Closed rickys03 closed 9 months ago

rickys03 commented 2 years ago

Issue Report Checklist

Problem Description

I pip installed PyMuPDF in Spyder in the base Conda environment (I now know we shouldn't use pip install in conda environment if we can avoid it). When that happened, I was unable to show any objects. Every object I read in, say for example, a pandas dataframe, wouldn't be able to open. I would get an error saying, "the object is not picklable". Since then, I've tried uninstalling and reinstalling anaconda, I've tried upgrading Spyder in the base environment, I've tried creating new environments with "conda create -n spyder-env -c conda-forge spyder", I've tried resetting my base environment to the original version. In the base environment, I get stuck in debug mode everytime, and if I just run the script, I'm unable to open an object. In the new environment, I'm unable to launch spyder. I've tried everything i can find. I'm at my wits end, and I have no idea how to proceed. Please help.

What is the expected output? What do you see instead?

Paste Traceback/Error Below (if applicable) -- When trying to open spyder from new environment (spyder-env) - not applicable for base environment.

Traceback (most recent call last): File "C:\Users\rstrott\Anaconda3\envs\spyder-env\lib\site-packages\qtpy\QtWebEngineWidgets.py", line 21, in from PyQt5.QtWebEngineWidgets import QWebEnginePage ModuleNotFoundError: No module named 'PyQt5.QtWebEngineWidgets'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\rstrott\Anaconda3\envs\spyder-env\Scripts\spyder-script.py", line 10, in sys.exit(main()) File "C:\Users\rstrott\Anaconda3\envs\spyder-env\lib\site-packages\spyder\app\start.py", line 233, in main from spyder.app import mainwindow File "C:\Users\rstrott\Anaconda3\envs\spyder-env\lib\site-packages\spyder\app\mainwindow.py", line 57, in from qtpy import QtWebEngineWidgets # analysis:ignore File "C:\Users\rstrott\Anaconda3\envs\spyder-env\lib\site-packages\qtpy\QtWebEngineWidgets.py", line 28, in from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'

Versions

Note: For the base environment (that I really want to get working)

Dependencies

Mandatory:

atomicwrites >=1.2.0 : 1.4.0 (OK) chardet >=2.0.0 : 4.0.0 (OK) cloudpickle >=0.5.0 : 2.0.0 (OK) cookiecutter >=1.6.0 : 1.7.3 (OK) diff_match_patch >=20181111 : 20200713 (OK) intervaltree >=3.0.2 : 3.1.0 (OK) IPython >=7.6.0 : 8.3.0 (OK) jedi >=0.17.2;<0.19.0 : 0.18.1 (OK) jsonschema >=3.2.0 : 4.4.0 (OK) keyring >=17.0.0 : 23.4.0 (OK) nbconvert >=4.0 : 6.4.4 (OK) numpydoc >=0.6.0 : 1.2 (OK) paramiko >=2.4.0 : 2.8.1 (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.8.0 (OK) pygments >=2.0 : 2.11.2 (OK) pylint >=2.5.0;<2.10.0 : 2.9.6 (OK) pyls_spyder >=0.4.0 : 0.4.0 (OK) pylsp >=1.2.2;<1.3.0 : 1.2.4 (OK) pylsp_black >=1.0.0 : None (OK) qdarkstyle =3.0.2 : 3.0.2 (OK) qstylizer >=0.1.10 : 0.1.10 (OK) qtawesome >=1.0.2 : 1.0.3 (OK) qtconsole >=5.1.0 : 5.3.0 (OK) qtpy >=1.5.0 : 2.0.1 (OK) rtree >=0.9.7 : 0.9.7 (OK) setuptools >=49.6.0 : 61.2.0 (OK) sphinx >=0.6.6 : 4.4.0 (OK) spyder_kernels >=2.1.1;<2.2.0 : 2.1.3 (OK) textdistance >=4.2.0 : 4.2.1 (OK) three_merge >=0.1.1 : 0.1.1 (OK) watchdog >=0.10.3 : 2.1.6 (OK) zmq >=17 : 22.3.0 (OK)

Optional:

cython >=0.21 : 0.29.28 (OK) matplotlib >=2.0.0 : 3.5.1 (OK) numpy >=1.7 : 1.21.5 (OK) pandas >=1.1.1 : 1.4.2 (OK) scipy >=0.17.0 : 1.7.3 (OK) sympy >=0.7.3 : 1.10.1 (OK)

dalthviz commented 2 years ago

Hi @rickys03 ! Could you share the conda list output on the env you are working? From the traceback you are getting seems like you have a PyQt version installed in your base env which doesn't have the QtWebEngine module. You could try to install the pyqtwebengine package from conda-forge to see if that helps but mixing packages channels could cause troubles (that's way usually we suggest to create a new env from conda-forge where the latest Spyder is available and also since the default channel goes just up to 5.1.5 which was released almost 9 months ago).

Another thing you could try is to install our standalone version available in our release page (https://github.com/spyder-ide/spyder/releases/latest) and then use the custom interpreter preference to use the extra packages you want. For more info on the usage of extra packages and the standalone installers you can check our docs FAQ page: http://docs.spyder-ide.org/current/faq.html#using-packages-installer

Let us know if something of the above helps!

rickys03 commented 2 years ago

So I guess I clarify there are two different problems for each environment. I really want to get the base environment working just to know the problem is fixed, and from there, I will start utilizing new virtual environments. But I do want to make sure I have the good foundation. I also already downloaded the standalone spyder, but it still won't run when I connect to a conda environment. I suppose I could use this method and use the custom interpreter to get the extra packages if nothing else works here.

For the base environment (Problem: Unable to view/open objects in variable explorer & debug mode is broken:

Name Version Build Channel

_anaconda_depends 2022.05 py39_0 _ipyw_jlab_nb_ext_conf 0.1.0 py39haa95532_0 aiohttp 3.8.1 py39h2bbff1b_1 aiosignal 1.2.0 pyhd3eb1b0_0 alabaster 0.7.12 pyhd3eb1b0_0 anaconda custom py39_1 anaconda-client 1.9.0 py39haa95532_0 anaconda-navigator 2.1.4 py39haa95532_0 anaconda-project 0.10.2 pyhd3eb1b0_0 anyio 3.5.0 py39haa95532_0 appdirs 1.4.4 pyhd3eb1b0_0 argon2-cffi 21.3.0 pyhd3eb1b0_0 argon2-cffi-bindings 21.2.0 py39h2bbff1b_0 arrow 1.2.2 pyhd3eb1b0_0 astroid 2.6.6 py39haa95532_0 astropy 5.0.4 py39h080aedc_0 asttokens 2.0.5 pyhd3eb1b0_0 async-timeout 4.0.1 pyhd3eb1b0_0 atomicwrites 1.4.0 py_0 attrs 21.4.0 pyhd3eb1b0_0 automat 20.2.0 py_0 autopep8 1.6.0 pyhd3eb1b0_0 babel 2.9.1 pyhd3eb1b0_0 backcall 0.2.0 pyhd3eb1b0_0 backports 1.1 pyhd3eb1b0_0 backports.functools_lru_cache 1.6.4 pyhd3eb1b0_0 backports.tempfile 1.0 pyhd3eb1b0_1 backports.weakref 1.0.post1 py_1 bcrypt 3.2.0 py39h196d8e1_0 beautifulsoup4 4.11.1 py39haa95532_0 binaryornot 0.4.4 pyhd3eb1b0_1 bitarray 2.5.0 py39h2bbff1b_0 bkcharts 0.2 py39haa95532_0 black 19.10b0 py_0 blas 1.0 mkl bleach 4.1.0 pyhd3eb1b0_0 blosc 1.21.0 h19a0ad4_0 bokeh 2.4.2 py39haa95532_1 boto3 1.24.2 py39haa95532_0 botocore 1.27.2 py39haa95532_0 bottleneck 1.3.4 py39h080aedc_0 brotli 1.0.9 ha925a31_2 brotlipy 0.7.0 py39h2bbff1b_1003 bzip2 1.0.8 he774522_0 ca-certificates 2022.4.26 haa95532_0 cachetools 4.2.2 pyhd3eb1b0_0 certifi 2022.5.18.1 py39haa95532_0 cffi 1.15.0 py39h2bbff1b_1 cfitsio 3.470 he774522_6 chardet 4.0.0 py39haa95532_1003 charls 2.2.0 h6c2663c_0 charset-normalizer 2.0.4 pyhd3eb1b0_0 click 8.0.4 py39haa95532_0 cloudpickle 2.0.0 pyhd3eb1b0_0 clyent 1.2.2 py39haa95532_1 colorama 0.4.4 pyhd3eb1b0_0 colorcet 3.0.0 py39haa95532_0 comtypes 1.1.10 py39haa95532_1002 conda 4.13.0 py39haa95532_0 conda-build 3.21.9 py39haa95532_0 conda-content-trust 0.1.1 pyhd3eb1b0_0 conda-env 2.6.0 haa95532_1 conda-pack 0.6.0 pyhd3eb1b0_0 conda-package-handling 1.8.1 py39h8cc25b3_0 conda-repo-cli 1.0.4 pyhd3eb1b0_0 conda-token 0.3.0 pyhd3eb1b0_0 conda-verify 3.4.2 py_1 console_shortcut 0.1.1 4 constantly 15.1.0 pyh2b92418_0 cookiecutter 1.7.3 pyhd3eb1b0_0 cryptography 3.4.8 py39h71e12ea_0 cssselect 1.1.0 pyhd3eb1b0_0 curl 7.82.0 h2bbff1b_0 cycler 0.11.0 pyhd3eb1b0_0 cython 0.29.28 py39hd77b12b_0 cytoolz 0.11.0 py39h2bbff1b_0 daal4py 2021.5.0 py39h8cb3d55_0 dal 2021.5.0 haa95532_796 dask 2022.5.0 py39haa95532_0 dask-core 2022.5.0 py39haa95532_0 dataclasses 0.8 pyh6d0b6a4_7 datashader 0.13.0 pyhd3eb1b0_1 datashape 0.5.4 py39haa95532_1 debugpy 1.5.1 py39hd77b12b_0 decorator 5.1.1 pyhd3eb1b0_0 defusedxml 0.7.1 pyhd3eb1b0_0 diff-match-patch 20200713 pyhd3eb1b0_0 distributed 2022.5.0 py39haa95532_0 docutils 0.17.1 py39haa95532_1 entrypoints 0.4 py39haa95532_0 et_xmlfile 1.1.0 py39haa95532_0 executing 0.8.3 pyhd3eb1b0_0 filelock 3.6.0 pyhd3eb1b0_0 flake8 3.9.2 pyhd3eb1b0_0 flask 1.1.2 pyhd3eb1b0_0 fonttools 4.25.0 pyhd3eb1b0_0 freetype 2.10.4 hd328e21_0 frozenlist 1.2.0 py39h2bbff1b_0 fsspec 2022.3.0 py39haa95532_0 future 0.18.2 py39haa95532_1 gensim 4.1.2 py39hd77b12b_0 giflib 5.2.1 h62dcd97_0 glob2 0.7 pyhd3eb1b0_0 google-api-core 2.2.2 pyhd3eb1b0_0 google-auth 2.6.0 pyhd3eb1b0_0 google-cloud-core 2.2.2 pyhd3eb1b0_0 google-cloud-storage 1.43.0 py39haa95532_0 google-crc32c 1.1.2 py39h2bbff1b_0 google-resumable-media 1.3.1 pyhd3eb1b0_1 googleapis-common-protos 1.53.0 py39h2eaa2aa_0 greenlet 1.1.1 py39hd77b12b_0 grpcio 1.42.0 py39hc60d5dd_0 h5py 3.6.0 py39h3de5c98_0 hdf5 1.10.6 h7ebc959_0 heapdict 1.0.1 pyhd3eb1b0_0 holoviews 1.14.8 pyhd3eb1b0_0 hvplot 0.7.3 pyhd3eb1b0_1 hyperlink 21.0.0 pyhd3eb1b0_0 icc_rt 2019.0.0 h0cc432a_1 icu 58.2 ha925a31_3 idna 3.3 pyhd3eb1b0_0 imagecodecs 2021.8.26 py39ha1f97ea_0 imageio 2.9.0 pyhd3eb1b0_0 imagesize 1.3.0 pyhd3eb1b0_0 importlib-metadata 4.11.3 py39haa95532_0 importlib_metadata 4.11.3 hd3eb1b0_0 incremental 21.3.0 pyhd3eb1b0_0 inflection 0.5.1 py39haa95532_0 iniconfig 1.1.1 pyhd3eb1b0_0 intake 0.6.5 pyhd3eb1b0_0 intel-openmp 2021.4.0 haa95532_3556 intervaltree 3.1.0 pyhd3eb1b0_0 ipykernel 6.9.1 py39haa95532_0 ipython 8.3.0 py39haa95532_0 ipython_genutils 0.2.0 pyhd3eb1b0_1 ipywidgets 7.6.5 pyhd3eb1b0_1 isort 5.9.3 pyhd3eb1b0_0 itemadapter 0.3.0 pyhd3eb1b0_0 itemloaders 1.0.4 pyhd3eb1b0_1 itsdangerous 2.0.1 pyhd3eb1b0_0 jdcal 1.4.1 pyhd3eb1b0_0 jedi 0.18.1 py39haa95532_1 jinja2 2.11.3 pyhd3eb1b0_0 jinja2-time 0.2.0 pyhd3eb1b0_3 jmespath 0.10.0 pyhd3eb1b0_0 joblib 1.1.0 pyhd3eb1b0_0 jpeg 9e h2bbff1b_0 jq 1.6 haa95532_1 json5 0.9.6 pyhd3eb1b0_0 jsonschema 4.4.0 py39haa95532_0 jupyter 1.0.0 py39haa95532_7 jupyter_client 6.1.12 pyhd3eb1b0_0 jupyter_console 6.4.0 pyhd3eb1b0_0 jupyter_core 4.10.0 py39haa95532_0 jupyter_server 1.17.1 py39haa95532_0 jupyterlab 3.3.2 pyhd3eb1b0_0 jupyterlab_pygments 0.1.2 py_0 jupyterlab_server 2.10.3 pyhd3eb1b0_1 jupyterlab_widgets 1.0.0 pyhd3eb1b0_1 keyring 23.4.0 py39haa95532_0 kiwisolver 1.4.2 py39hd77b12b_0 lazy-object-proxy 1.6.0 py39h2bbff1b_0 lcms2 2.12 h83e58a3_0 lerc 3.0 hd77b12b_0 libaec 1.0.4 h33f27b4_1 libarchive 3.4.2 h5e25573_0 libcrc32c 1.1.1 ha925a31_2 libcurl 7.82.0 h86230a5_0 libdeflate 1.8 h2bbff1b_5 libiconv 1.16 h2bbff1b_2 liblief 0.11.5 hd77b12b_1 libpng 1.6.37 h2a8f88b_0 libprotobuf 3.20.1 h23ce68f_0 libspatialindex 1.9.3 h6c2663c_0 libssh2 1.10.0 hcd4344a_0 libtiff 4.2.0 hd0e1b90_0 libwebp 1.2.2 h2bbff1b_0 libxml2 2.9.14 h0ad7f3c_0 libxslt 1.1.35 h2bbff1b_0 libzopfli 1.0.3 ha925a31_0 llvmlite 0.38.0 py39h23ce68f_0 locket 1.0.0 py39haa95532_0 lxml 4.8.0 py39h1985fb9_0 lz4 3.1.3 py39h2bbff1b_0 lz4-c 1.9.3 h2bbff1b_1 lzo 2.10 he774522_2 m2w64-libwinpthread-git 5.0.0.4634.697f757 2 markdown 3.3.4 py39haa95532_0 markupsafe 2.0.1 py39h2bbff1b_0 matplotlib 3.5.1 py39haa95532_1 matplotlib-base 3.5.1 py39hd77b12b_1 matplotlib-inline 0.1.2 pyhd3eb1b0_2 mccabe 0.6.1 py39haa95532_1 menuinst 1.4.18 py39h59b6b97_0 mistune 0.8.4 py39h2bbff1b_1000 mkl 2021.4.0 haa95532_640 mkl-service 2.4.0 py39h2bbff1b_0 mkl_fft 1.3.1 py39h277e83a_0 mkl_random 1.2.2 py39hf11a4ad_0 mock 4.0.3 pyhd3eb1b0_0 mpmath 1.2.1 py39haa95532_0 msgpack-python 1.0.3 py39h59b6b97_0 msys2-conda-epoch 20160418 1 multidict 5.1.0 py39h2bbff1b_2 multipledispatch 0.6.0 py39haa95532_0 munkres 1.1.4 py_0 mypy_extensions 0.4.3 py39haa95532_1 navigator-updater 0.2.1 py39_1 nbclassic 0.3.5 pyhd3eb1b0_0 nbclient 0.5.13 py39haa95532_0 nbconvert 6.4.4 py39haa95532_0 nbformat 5.3.0 py39haa95532_0 nest-asyncio 1.5.5 py39haa95532_0 networkx 2.7.1 pyhd3eb1b0_0 nltk 3.7 pyhd3eb1b0_0 nose 1.3.7 pyhd3eb1b0_1008 notebook 6.4.11 py39haa95532_0 numba 0.55.1 py39hf11a4ad_0 numexpr 2.8.1 py39hb80d3ca_0 numpy 1.21.5 py39h7a0a035_3 numpy-base 1.21.5 py39hca35cd5_3 numpydoc 1.2 pyhd3eb1b0_0 olefile 0.46 pyhd3eb1b0_0 openjpeg 2.4.0 h4fc8c34_0 openpyxl 3.0.9 pyhd3eb1b0_0 openssl 1.1.1o h2bbff1b_0 packaging 21.3 pyhd3eb1b0_0 pandas 1.4.2 py39hd77b12b_0 pandocfilters 1.5.0 pyhd3eb1b0_0 panel 0.13.0 py39haa95532_0 param 1.12.0 pyhd3eb1b0_0 paramiko 2.8.1 pyhd3eb1b0_0 parsel 1.6.0 py39haa95532_0 parso 0.8.3 pyhd3eb1b0_0 partd 1.2.0 pyhd3eb1b0_1 pathspec 0.7.0 py_0 patsy 0.5.2 py39haa95532_1 pep8 1.7.1 py39haa95532_0 pexpect 4.8.0 pyhd3eb1b0_3 pickleshare 0.7.5 pyhd3eb1b0_1003 pillow 9.0.1 py39hdc2b20a_0 pip 21.2.4 py39haa95532_0 pkginfo 1.8.2 pyhd3eb1b0_0 plotly 5.6.0 pyhd3eb1b0_0 pluggy 1.0.0 py39haa95532_1 powershell_shortcut 0.0.1 3 poyo 0.5.0 pyhd3eb1b0_0 prometheus_client 0.13.1 pyhd3eb1b0_0 prompt-toolkit 3.0.20 pyhd3eb1b0_0 prompt_toolkit 3.0.20 hd3eb1b0_0 protego 0.1.16 py_0 protobuf 3.20.1 py39hd77b12b_0 psutil 5.8.0 py39h2bbff1b_1 ptyprocess 0.7.0 pyhd3eb1b0_2 pure_eval 0.2.2 pyhd3eb1b0_0 py 1.11.0 pyhd3eb1b0_0 py-lief 0.11.5 py39hd77b12b_1 pyasn1 0.4.8 pyhd3eb1b0_0 pyasn1-modules 0.2.8 py_0 pycodestyle 2.7.0 pyhd3eb1b0_0 pycosat 0.6.3 py39h2bbff1b_0 pycparser 2.21 pyhd3eb1b0_0 pyct 0.4.6 py39haa95532_0 pycurl 7.44.1 py39hcd4344a_1 pydispatcher 2.0.5 py39haa95532_2 pydocstyle 6.1.1 pyhd3eb1b0_0 pyerfa 2.0.0 py39h2bbff1b_0 pyflakes 2.3.1 pyhd3eb1b0_0 pygments 2.11.2 pyhd3eb1b0_0 pyhamcrest 2.0.2 pyhd3eb1b0_2 pyjwt 2.1.0 py39haa95532_0 pylint 2.9.6 py39haa95532_1 pyls-spyder 0.4.0 pyhd3eb1b0_0 pynacl 1.4.0 py39hbd8134f_1 pyodbc 4.0.32 py39hd77b12b_1 pyopenssl 21.0.0 pyhd3eb1b0_1 pyparsing 3.0.4 pyhd3eb1b0_0 pyqt 5.9.2 py39hd77b12b_6 pyreadline 2.1 py39haa95532_1 pyrsistent 0.18.0 py39h196d8e1_0 pysocks 1.7.1 py39haa95532_0 pytables 3.6.1 py39h56d22b6_1 pytest 7.1.2 py39haa95532_0 python 3.9.12 h6244533_0 python-dateutil 2.8.2 pyhd3eb1b0_0 python-fastjsonschema 2.15.1 pyhd3eb1b0_0 python-libarchive-c 2.9 pyhd3eb1b0_1 python-lsp-black 1.0.0 pyhd3eb1b0_0 python-lsp-jsonrpc 1.0.0 pyhd3eb1b0_0 python-lsp-server 1.2.4 pyhd3eb1b0_0 python-slugify 5.0.2 pyhd3eb1b0_0 python-snappy 0.6.0 py39hd77b12b_3 pytz 2022.1 py39haa95532_0 pyviz_comms 2.0.2 pyhd3eb1b0_0 pywavelets 1.3.0 py39h2bbff1b_0 pywin32 302 py39h2bbff1b_2 pywin32-ctypes 0.2.0 py39haa95532_1000 pywinpty 2.0.2 py39h5da7b33_0 pyyaml 6.0 py39h2bbff1b_1 pyzmq 22.3.0 py39hd77b12b_2 qdarkstyle 3.0.2 pyhd3eb1b0_0 qstylizer 0.1.10 pyhd3eb1b0_0 qt 5.9.7 vc14h73c81de_0 qtawesome 1.0.3 pyhd3eb1b0_0 qtconsole 5.3.0 pyhd3eb1b0_0 qtpy 2.0.1 pyhd3eb1b0_0 queuelib 1.5.0 py39haa95532_0 regex 2022.3.15 py39h2bbff1b_0 requests 2.27.1 pyhd3eb1b0_0 requests-file 1.5.1 pyhd3eb1b0_0 rope 0.22.0 pyhd3eb1b0_0 rsa 4.7.2 pyhd3eb1b0_1 rtree 0.9.7 py39h2eaa2aa_1 ruamel_yaml 0.15.100 py39h2bbff1b_0 s3transfer 0.6.0 py39haa95532_0 scikit-image 0.19.2 py39hf11a4ad_0 scikit-learn 1.0.2 py39hf11a4ad_1 scikit-learn-intelex 2021.5.0 py39haa95532_0 scipy 1.7.3 py39h0a974cb_0 scrapy 2.6.1 py39haa95532_0 seaborn 0.11.2 pyhd3eb1b0_0 send2trash 1.8.0 pyhd3eb1b0_1 service_identity 18.1.0 pyhd3eb1b0_1 setuptools 61.2.0 py39haa95532_0 sip 4.19.13 py39hd77b12b_0 six 1.16.0 pyhd3eb1b0_1 smart_open 5.2.1 py39haa95532_0 snappy 1.1.9 h6c2663c_0 sniffio 1.2.0 py39haa95532_1 snowballstemmer 2.2.0 pyhd3eb1b0_0 sortedcollections 2.1.0 pyhd3eb1b0_0 sortedcontainers 2.4.0 pyhd3eb1b0_0 soupsieve 2.3.1 pyhd3eb1b0_0 sphinx 4.4.0 pyhd3eb1b0_0 sphinxcontrib-applehelp 1.0.2 pyhd3eb1b0_0 sphinxcontrib-devhelp 1.0.2 pyhd3eb1b0_0 sphinxcontrib-htmlhelp 2.0.0 pyhd3eb1b0_0 sphinxcontrib-jsmath 1.0.1 pyhd3eb1b0_0 sphinxcontrib-qthelp 1.0.3 pyhd3eb1b0_0 sphinxcontrib-serializinghtml 1.1.5 pyhd3eb1b0_0 spyder 5.1.5 py39haa95532_1 spyder-kernels 2.1.3 py39haa95532_0 sqlalchemy 1.4.32 py39h2bbff1b_0 sqlite 3.38.3 h2bbff1b_0 stack_data 0.2.0 pyhd3eb1b0_0 statsmodels 0.13.2 py39h2bbff1b_0 sympy 1.10.1 py39haa95532_0 tabulate 0.8.9 py39haa95532_0 tbb 2021.5.0 h59b6b97_0 tbb4py 2021.5.0 py39h59b6b97_0 tblib 1.7.0 pyhd3eb1b0_0 tenacity 8.0.1 py39haa95532_0 terminado 0.13.1 py39haa95532_0 testpath 0.5.0 pyhd3eb1b0_0 text-unidecode 1.3 pyhd3eb1b0_0 textdistance 4.2.1 pyhd3eb1b0_0 threadpoolctl 2.2.0 pyh0d69192_0 three-merge 0.1.1 pyhd3eb1b0_0 tifffile 2021.7.2 pyhd3eb1b0_2 tinycss 0.4 pyhd3eb1b0_1002 tk 8.6.12 h2bbff1b_0 tldextract 3.2.0 pyhd3eb1b0_0 toml 0.10.2 pyhd3eb1b0_0 tomli 1.2.2 pyhd3eb1b0_0 toolz 0.11.2 pyhd3eb1b0_0 tornado 6.1 py39h2bbff1b_0 tqdm 4.64.0 py39haa95532_0 traitlets 5.1.1 pyhd3eb1b0_0 twisted 22.2.0 py39h2bbff1b_0 twisted-iocpsupport 1.0.2 py39h2bbff1b_0 typed-ast 1.4.3 py39h2bbff1b_1 typing-extensions 4.1.1 hd3eb1b0_0 typing_extensions 4.1.1 pyh06a4308_0 tzdata 2022a hda174b7_0 ujson 5.1.0 py39hd77b12b_0 unidecode 1.2.0 pyhd3eb1b0_0 urllib3 1.26.9 py39haa95532_0 vc 14.2 h21ff451_1 vs2015_runtime 14.27.29016 h5e58377_2 w3lib 1.21.0 pyhd3eb1b0_0 watchdog 2.1.6 py39haa95532_0 wcwidth 0.2.5 pyhd3eb1b0_0 webencodings 0.5.1 py39haa95532_1 websocket-client 0.58.0 py39haa95532_4 werkzeug 2.0.3 pyhd3eb1b0_0 wheel 0.37.1 pyhd3eb1b0_0 widgetsnbextension 3.5.2 py39haa95532_0 win_inet_pton 1.1.0 py39haa95532_0 win_unicode_console 0.5 py39haa95532_0 wincertstore 0.2 py39haa95532_2 winpty 0.4.3 4 wrapt 1.12.1 py39h196d8e1_1 xarray 0.20.1 pyhd3eb1b0_1 xlrd 2.0.1 pyhd3eb1b0_0 xlsxwriter 3.0.3 pyhd3eb1b0_0 xlwings 0.24.9 py39haa95532_0 xz 5.2.5 h8cc25b3_1 yaml 0.2.5 he774522_0 yapf 0.31.0 pyhd3eb1b0_0 yarl 1.6.3 py39h2bbff1b_0 zfp 0.5.5 hd77b12b_6 zict 2.0.0 pyhd3eb1b0_0 zipp 3.8.0 py39haa95532_0 zlib 1.2.12 h8cc25b3_2 zope 1.0 py39haa95532_1 zope.interface 5.4.0 py39h2bbff1b_0 zstd 1.4.9 h19a0ad4_0

For the new spyder-env (problem is that spyder won't launch - see traceback error above):

Name Version Build Channel

alabaster 0.7.12 py_0 conda-forge arrow 1.2.2 pyhd8ed1ab_0 conda-forge astroid 2.11.5 py39hcbf5309_0 conda-forge atomicwrites 1.4.0 pyh9f0ad1d_0 conda-forge attrs 21.4.0 pyhd8ed1ab_0 conda-forge autopep8 1.6.0 pyhd8ed1ab_1 conda-forge babel 2.10.1 pyhd8ed1ab_0 conda-forge backcall 0.2.0 pyh9f0ad1d_0 conda-forge backports 1.0 py_2 conda-forge backports.functools_lru_cache 1.6.4 pyhd8ed1ab_0 conda-forge bcrypt 3.2.2 py39hb82d6ee_0 conda-forge beautifulsoup4 4.11.1 pyha770c72_0 conda-forge binaryornot 0.4.4 py_1 conda-forge black 22.3.0 pyhd8ed1ab_0 conda-forge bleach 5.0.0 pyhd8ed1ab_0 conda-forge brotlipy 0.7.0 py39hb82d6ee_1004 conda-forge bzip2 1.0.8 h8ffe710_4 conda-forge ca-certificates 2022.4.26 haa95532_0 certifi 2022.5.18.1 py39haa95532_0 cffi 1.15.0 py39h0878f49_0 conda-forge chardet 4.0.0 py39hcbf5309_3 conda-forge charset-normalizer 2.0.12 pyhd8ed1ab_0 conda-forge click 8.1.3 py39hcbf5309_0 conda-forge cloudpickle 2.1.0 pyhd8ed1ab_0 conda-forge colorama 0.4.4 pyh9f0ad1d_0 conda-forge console_shortcut 0.1.1 4 cookiecutter 2.1.1 pyh6c4a22f_0 conda-forge cryptography 37.0.2 py39h7bc7c5c_0 conda-forge dataclasses 0.8 pyhc8e2a94_3 conda-forge debugpy 1.6.0 py39h415ef7b_0 conda-forge decorator 5.1.1 pyhd8ed1ab_0 conda-forge defusedxml 0.7.1 pyhd8ed1ab_0 conda-forge diff-match-patch 20200713 pyh9f0ad1d_0 conda-forge dill 0.3.5.1 pyhd8ed1ab_0 conda-forge docutils 0.18.1 py39hcbf5309_1 conda-forge entrypoints 0.4 pyhd8ed1ab_0 conda-forge flake8 4.0.1 pyhd8ed1ab_2 conda-forge gettext 0.19.8.1 ha2e2712_1008 conda-forge gst-plugins-base 1.20.2 he07aa86_1 conda-forge gstreamer 1.20.2 hdff456e_1 conda-forge icu 70.1 h0e60522_0 conda-forge idna 3.3 pyhd8ed1ab_0 conda-forge imagesize 1.3.0 pyhd8ed1ab_0 conda-forge importlib-metadata 4.11.4 py39hcbf5309_0 conda-forge importlib_metadata 4.11.4 hd8ed1ab_0 conda-forge importlib_resources 5.7.1 pyhd8ed1ab_1 conda-forge inflection 0.5.1 pyh9f0ad1d_0 conda-forge intervaltree 3.0.2 py_0 conda-forge ipykernel 6.13.1 py39h832f523_0 conda-forge ipython 7.33.0 py39hcbf5309_0 conda-forge ipython_genutils 0.2.0 py_1 conda-forge isort 5.10.1 pyhd8ed1ab_0 conda-forge jedi 0.18.1 py39hcbf5309_1 conda-forge jellyfish 0.9.0 py39hb82d6ee_1 conda-forge jinja2 3.1.2 pyhd8ed1ab_1 conda-forge jinja2-time 0.2.0 pyhd8ed1ab_3 conda-forge jpeg 9e h8ffe710_1 conda-forge jsonschema 4.6.0 pyhd8ed1ab_0 conda-forge jupyter_client 7.3.4 pyhd8ed1ab_0 conda-forge jupyter_core 4.10.0 py39hcbf5309_0 conda-forge jupyterlab_pygments 0.2.2 pyhd8ed1ab_0 conda-forge keyring 23.6.0 py39hcbf5309_0 conda-forge krb5 1.19.3 h1176d77_0 conda-forge lazy-object-proxy 1.7.1 py39hb82d6ee_1 conda-forge libclang 14.0.4 default_h77d9078_0 conda-forge libclang13 14.0.4 default_h77d9078_0 conda-forge libffi 3.4.2 h8ffe710_5 conda-forge libglib 2.70.2 h3be07f2_4 conda-forge libiconv 1.16 he774522_0 conda-forge libogg 1.3.4 h8ffe710_1 conda-forge libpng 1.6.37 h1d00b33_2 conda-forge libsodium 1.0.18 h8d14728_1 conda-forge libspatialindex 1.9.3 h39d44d4_4 conda-forge libvorbis 1.3.7 h0e60522_0 conda-forge libzlib 1.2.12 h8ffe710_0 conda-forge lz4-c 1.9.3 h8ffe710_1 conda-forge markupsafe 2.1.1 py39hb82d6ee_1 conda-forge matplotlib-inline 0.1.3 pyhd8ed1ab_0 conda-forge mccabe 0.6.1 py_1 conda-forge mistune 0.8.4 py39hb82d6ee_1005 conda-forge mypy_extensions 0.4.3 py39hcbf5309_5 conda-forge nbclient 0.6.4 pyhd8ed1ab_1 conda-forge nbconvert 6.5.0 pyhd8ed1ab_0 conda-forge nbconvert-core 6.5.0 pyhd8ed1ab_0 conda-forge nbconvert-pandoc 6.5.0 pyhd8ed1ab_0 conda-forge nbformat 5.4.0 pyhd8ed1ab_0 conda-forge nest-asyncio 1.5.5 pyhd8ed1ab_0 conda-forge numpydoc 1.2.1 pyhd8ed1ab_0 conda-forge openssl 1.1.1o h2bbff1b_0 packaging 21.3 pyhd8ed1ab_0 conda-forge pandoc 2.18 h57928b3_0 conda-forge pandocfilters 1.5.0 pyhd8ed1ab_0 conda-forge paramiko 2.11.0 pyhd8ed1ab_0 conda-forge parso 0.8.3 pyhd8ed1ab_0 conda-forge pathspec 0.9.0 pyhd8ed1ab_0 conda-forge pcre 8.45 h0e60522_0 conda-forge pexpect 4.8.0 pyh9f0ad1d_2 conda-forge pickleshare 0.7.5 py_1003 conda-forge pip 22.1.2 pyhd8ed1ab_0 conda-forge platformdirs 2.5.1 pyhd8ed1ab_0 conda-forge pluggy 1.0.0 py39hcbf5309_3 conda-forge prompt-toolkit 3.0.29 pyha770c72_0 conda-forge psutil 5.9.1 py39hb82d6ee_0 conda-forge ptyprocess 0.7.0 pyhd3deb0d_0 conda-forge pycodestyle 2.8.0 pyhd8ed1ab_0 conda-forge pycparser 2.21 pyhd8ed1ab_0 conda-forge pydocstyle 6.1.1 pyhd8ed1ab_0 conda-forge pyflakes 2.4.0 pyhd8ed1ab_0 conda-forge pygments 2.12.0 pyhd8ed1ab_0 conda-forge pylint 2.14.1 pyhd8ed1ab_0 conda-forge pyls-spyder 0.4.0 pyhd8ed1ab_0 conda-forge pynacl 1.5.0 py39hb3671d1_1 conda-forge pyopenssl 22.0.0 pyhd8ed1ab_0 conda-forge pyparsing 3.0.9 pyhd8ed1ab_0 conda-forge pyqt 5.15.4 py39hb08f45d_1 conda-forge pyqt5-sip 12.9.0 py39h415ef7b_1 conda-forge pyrsistent 0.18.1 py39hb82d6ee_1 conda-forge pysocks 1.7.1 py39hcbf5309_5 conda-forge python 3.9.13 h9a09f29_0_cpython conda-forge python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge python-fastjsonschema 2.15.3 pyhd8ed1ab_0 conda-forge python-lsp-black 1.1.0 pyhd8ed1ab_0 conda-forge python-lsp-jsonrpc 1.0.0 pyhd8ed1ab_0 conda-forge python-lsp-server 1.3.3 pyhd8ed1ab_0 conda-forge python-slugify 6.1.2 pyhd8ed1ab_0 conda-forge python_abi 3.9 2_cp39 conda-forge pytz 2022.1 pyhd8ed1ab_0 conda-forge pywin32 303 py39hb82d6ee_0 conda-forge pywin32-ctypes 0.2.0 py39hcbf5309_1005 conda-forge pyyaml 6.0 py39hb82d6ee_4 conda-forge pyzmq 23.1.0 py39he46f08e_0 conda-forge qdarkstyle 3.0.2 pyhd8ed1ab_0 conda-forge qstylizer 0.2.1 pyhd8ed1ab_0 conda-forge qt-main 5.15.4 h467ea89_1 conda-forge qtawesome 1.1.1 pyhd8ed1ab_0 conda-forge qtconsole 5.2.2 pyhd8ed1ab_1 conda-forge qtconsole-base 5.2.2 pyhd8ed1ab_1 conda-forge qtpy 2.1.0 pyhd8ed1ab_0 conda-forge requests 2.28.0 pyhd8ed1ab_0 conda-forge rope 1.1.1 pyhd8ed1ab_0 conda-forge rtree 1.0.0 py39h09fdee3_1 conda-forge setuptools 62.3.3 py39hcbf5309_0 conda-forge sip 6.5.1 py39h415ef7b_2 conda-forge six 1.16.0 pyh6c4a22f_0 conda-forge snowballstemmer 2.2.0 pyhd8ed1ab_0 conda-forge sortedcontainers 2.4.0 pyhd8ed1ab_0 conda-forge soupsieve 2.3.1 pyhd8ed1ab_0 conda-forge sphinx 5.0.1 pyh6c4a22f_0 conda-forge sphinxcontrib-applehelp 1.0.2 py_0 conda-forge sphinxcontrib-devhelp 1.0.2 py_0 conda-forge sphinxcontrib-htmlhelp 2.0.0 pyhd8ed1ab_0 conda-forge sphinxcontrib-jsmath 1.0.1 py_0 conda-forge sphinxcontrib-qthelp 1.0.3 py_0 conda-forge sphinxcontrib-serializinghtml 1.1.5 pyhd8ed1ab_2 conda-forge spyder 5.2.2 py39hcbf5309_3 conda-forge spyder-kernels 2.2.1 py39hcbf5309_1 conda-forge sqlite 3.38.5 h8ffe710_0 conda-forge text-unidecode 1.3 py_0 conda-forge textdistance 4.2.2 pyhd8ed1ab_0 conda-forge three-merge 0.1.1 pyh9f0ad1d_0 conda-forge tinycss2 1.1.1 pyhd8ed1ab_0 conda-forge tk 8.6.12 h8ffe710_0 conda-forge toml 0.10.2 pyhd8ed1ab_0 conda-forge tomli 2.0.1 pyhd8ed1ab_0 conda-forge tomlkit 0.11.0 pyha770c72_0 conda-forge tornado 6.1 py39hb82d6ee_3 conda-forge traitlets 5.2.2.post1 pyhd8ed1ab_0 conda-forge typed-ast 1.5.4 py39hb82d6ee_0 conda-forge typing 3.10.0.0 pyhd8ed1ab_0 conda-forge typing-extensions 4.2.0 hd8ed1ab_1 conda-forge typing_extensions 4.2.0 pyha770c72_1 conda-forge tzdata 2022a h191b570_0 conda-forge ucrt 10.0.20348.0 h57928b3_0 conda-forge ujson 5.3.0 py39h415ef7b_0 conda-forge unidecode 1.3.4 pyhd8ed1ab_0 conda-forge urllib3 1.26.9 pyhd8ed1ab_0 conda-forge vc 14.2 hb210afc_6 conda-forge vs2015_runtime 14.29.30037 h902a5da_6 conda-forge watchdog 2.1.8 py39hcbf5309_1 conda-forge wcwidth 0.2.5 pyh9f0ad1d_2 conda-forge webencodings 0.5.1 py_1 conda-forge wheel 0.37.1 pyhd8ed1ab_0 conda-forge win_inet_pton 1.1.0 py39hcbf5309_4 conda-forge wrapt 1.14.1 py39hb82d6ee_0 conda-forge xz 5.2.5 h62dcd97_1 conda-forge yaml 0.2.5 h8ffe710_2 conda-forge yapf 0.32.0 pyhd8ed1ab_0 conda-forge zeromq 4.3.4 h0e60522_1 conda-forge zipp 3.8.0 pyhd8ed1ab_0 conda-forge zlib 1.2.12 h8ffe710_0 conda-forge zstd 1.5.2 h6255e5f_1 conda-forge

dalthviz commented 2 years ago

For the debug problem with Spyder on your base env you will need to downgrade qtconsole to 5.2. For the problem with the variable explorer I'm not totally sure, sorry :/

For the traceback problem with Spyder on the spyder-env you will need to install the missing package pyqtwebengine from conda-forge

Let us now if the above helps!

rickys03 commented 2 years ago

The problem with my base environment was not solved. The problem in the spyder-env was solved. However, I'm still unable to view objects. Is this not anything that anyone at spyder has seen before?

dalthviz commented 2 years ago

What type of objects are you trying to view? Are just pandas dataframes or any kind of object (e.g a list or a dict)? Is there any example code you can share to try to reproduce this in our side? Also, thinking about it try to update to the Spyder latest version 5.3.1 or maybe there is a specific reason to use Spyder 5.1.5 or 5.2.2 ? Let us know

dalthviz commented 2 years ago

Closing due to lack of response

eoli3n commented 2 years ago

Hi @rickys03 ! Could you share the conda list output on the env you are working? From the traceback you are getting seems like you have a PyQt version installed in your base env which doesn't have the QtWebEngine module. You could try to install the pyqtwebengine package from conda-forge to see if that helps but mixing packages channels could cause troubles (that's way usually we suggest to create a new env from conda-forge where the latest Spyder is available and also since the default channel goes just up to 5.1.5 which was released almost 9 months ago).

I get that same issue, should I install pyqtwebengine in my base env or in spyder-env ?

dalthviz commented 2 years ago

Hi @eoli3n , that depends on from which env you are launching Spyder and getting the error. If in your traceback you can spot references to things inside the spyder-env dir then you probably could try installing pyqtwebengine in your spyder-env environment. Also, be sure to use the correct conda channel when trying to run the conda install command. So, for example, if you want to install the pyqtwebengine package in your spyder-env, and all the packages on that env come from conda-forge, then you probably should run from the Anaconda prompt something like:

conda activate spyder-env
conda install -c conda-forge pyqtwebengine

Another alternative is to recreate you spyder-env environment. For that, you need to firts remove/delete it and then create it again (that could be worthy in case you have a mix of channels in your current spyder-env environment).

eoli3n commented 2 years ago

I'm sysadmin, i'm providing anaconda envs for my users. It's really unclear the way anaconda works. Can you develop that point please ?

So, for example, if you want to install the pyqtwebengine package in your spyder-env, and all the packages on that env come from conda-forge, then you probably should run from the Anaconda prompt something like

Also, please update the documentation, or provide here the right command to create a working env. See https://docs.spyder-ide.org/current/installation.html#anaconda

Is that then ?

$ conda create -n spyder-env spyder numpy scipy pandas matplotlib sympy cython pyqtwebengine
dalthviz commented 2 years ago

The thing is that the latest Spyder release (5.3.3) is only available with the conda-forge channel so usually to get the latest release we suggest people to use the conda-forge channel (adding to the conda installation/env creation command a -c conda-forge). My comment pointing out the need to check if the conda-forge channel is being used comes from the experience that mixing conda channels usually is not the best/can cause problems so without knowing which channel is being used we need to be careful about suggestions to not mess up users' environments.

Regarding the issue here, checking a little bit more, seems like the problem with pyqtwebengine comes from the package definition for Spyder 5.2.2 lacking pyqtwebengine as dependency on the default channel 🤔

The command you provided should be enought to create an env with Spyder 5.2.2 without pyqtwebengine related issues (checked on Windows) :+1:

If you want, you could open an issue and PR regarding the commands (indeed I think that at least some note regarding conda channels management and the versions available could be worthy) in the Spyder docs repo at: https://github.com/spyder-ide/spyder-docs

eoli3n commented 2 years ago

Could you reopen that issue as it is reproducible ? I don't think to be the right guy to update the documentation, as I barely don't understand what I do with conda/spyder, I just copy paste commands.

dalthviz commented 2 years ago

Sure I can reopen it at least until Anaconda updates Spyder on the default channel to 5.3.3. There is not much we can do from the Spyder side but seems like at some point Spyder 5.3.3 will be available in the default anaconda channel: https://github.com/AnacondaRecipes/spyder-feedstock/pull/12

LucienGltLD commented 2 years ago

conda install -c conda-forge pyqtwebengine

Thanks a lot it worked fine for me ! I had the same error message while installing a new conda environnment . Whereas spyder was working perfectly fine on another env. And installing the 'pyqtwebengine' solved the problem for the new env.

ccordoba12 commented 9 months ago

Closing because this was for an old Spyder version.