spyder-ide / spyder

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

Spyder and rioxarray #22082

Closed eburrows95 closed 2 weeks ago

eburrows95 commented 6 months ago

Description

What steps will reproduce the problem?

cannot run spyder when rioxarray is also installed conda create -n birdsongs -c conda-forge numpy pandas scipy pyproj geopandas shapely fiona gdal rasterio conda activate birdsongs conda install -c conda-forge rioxarray tried running python script, did not work conda install spyder-kernels=2.4 submitted issue

Traceback

Traceback (most recent call last):
  File "C:\Users\erica\anaconda3\Lib\site-packages\spyder\plugins\ipythonconsole\widgets\client.py", line 772, in _restart_thread_main
    self.shellwidget.kernel_manager.restart_kernel(
  File "C:\Users\erica\anaconda3\Lib\site-packages\jupyter_client\utils.py", line 30, in wrapped
    raise e
  File "C:\Users\erica\anaconda3\Lib\site-packages\jupyter_client\utils.py", line 27, in wrapped
    return loop.run_until_complete(future)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\erica\anaconda3\Lib\site-packages\nest_asyncio.py", line 90, in run_until_complete
    return f.result()
           ^^^^^^^^^^
  File "C:\Users\erica\anaconda3\Lib\asyncio\futures.py", line 203, in result
    raise self._exception.with_traceback(self._exception_tb)
  File "C:\Users\erica\anaconda3\Lib\asyncio\tasks.py", line 267, in __step
    result = coro.send(None)
             ^^^^^^^^^^^^^^^
  File "C:\Users\erica\anaconda3\Lib\site-packages\jupyter_client\manager.py", line 541, in _async_restart_kernel
    await ensure_async(self.shutdown_kernel(now=now, restart=True))
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\erica\anaconda3\Lib\site-packages\jupyter_client\utils.py", line 30, in wrapped
    raise e
  File "C:\Users\erica\anaconda3\Lib\site-packages\jupyter_client\utils.py", line 27, in wrapped
    return loop.run_until_complete(future)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\erica\anaconda3\Lib\site-packages\nest_asyncio.py", line 90, in run_until_complete
    return f.result()
           ^^^^^^^^^^
  File "C:\Users\erica\anaconda3\Lib\asyncio\futures.py", line 203, in result
    raise self._exception.with_traceback(self._exception_tb)
  File "C:\Users\erica\anaconda3\Lib\asyncio\tasks.py", line 267, in __step
    result = coro.send(None)
             ^^^^^^^^^^^^^^^
  File "C:\Users\erica\anaconda3\Lib\site-packages\jupyter_client\manager.py", line 90, in wrapper
    raise e
  File "C:\Users\erica\anaconda3\Lib\site-packages\jupyter_client\manager.py", line 82, in wrapper
    out = await method(self, *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\erica\anaconda3\Lib\site-packages\jupyter_client\manager.py", line 500, in _async_shutdown_kernel
    await ensure_async(self.request_shutdown(restart=restart))
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\erica\anaconda3\Lib\site-packages\jupyter_client\utils.py", line 30, in wrapped
    raise e
  File "C:\Users\erica\anaconda3\Lib\site-packages\jupyter_client\utils.py", line 27, in wrapped
    return loop.run_until_complete(future)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\erica\anaconda3\Lib\site-packages\nest_asyncio.py", line 90, in run_until_complete
    return f.result()
           ^^^^^^^^^^
  File "C:\Users\erica\anaconda3\Lib\asyncio\futures.py", line 203, in result
    raise self._exception.with_traceback(self._exception_tb)
  File "C:\Users\erica\anaconda3\Lib\asyncio\tasks.py", line 267, in __step
    result = coro.send(None)
             ^^^^^^^^^^^^^^^
  File "C:\Users\erica\anaconda3\Lib\site-packages\jupyter_client\manager.py", line 405, in _async_request_shutdown
    self._connect_control_socket()
  File "C:\Users\erica\anaconda3\Lib\site-packages\jupyter_client\manager.py", line 323, in _connect_control_socket
    self._control_socket = self._create_connected_socket("control")
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\erica\anaconda3\Lib\site-packages\jupyter_client\connect.py", line 658, in _create_connected_socket
    sock = self.context.socket(socket_type)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\erica\anaconda3\Lib\site-packages\zmq\sugar\context.py", line 258, in socket
    raise ZMQError(Errno.ENOTSUP)
zmq.error.ZMQError: Not supported

Versions

Dependencies

# Mandatory:
atomicwrites >=1.2.0                             :  1.4.0 (OK)
chardet >=2.0.0                                  :  4.0.0 (OK)
cloudpickle >=0.5.0                              :  2.2.1 (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.31.1,<9.0.0,!=8.8.0,!=8.9.0,!=8.10.0 :  8.12.0 (OK)
jedi >=0.17.2,<0.19.0                            :  0.18.1 (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                                  :  6.5.4 (OK)
numpydoc >=0.6.0                                 :  1.5.0 (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.9.0 (OK)
pygments >=2.0                                   :  2.15.1 (OK)
pylint >=2.5.0,<3.0                              :  2.16.2 (OK)
pylint_venv >=2.1.1                              :  2.3.0 (OK)
pyls_spyder >=0.4.0                              :  0.4.0 (OK)
pylsp >=1.7.2,<1.8.0                             :  1.7.2 (OK)
pylsp_black >=1.2.0                              :  1.2.1 (OK)
qdarkstyle >=3.0.2,<3.2.0                        :  3.0.2 (OK)
qstylizer >=0.2.2                                :  0.2.2 (OK)
qtawesome >=1.2.1                                :  1.2.2 (OK)
qtconsole >=5.4.2,<5.5.0                         :  5.4.2 (OK)
qtpy >=2.1.0                                     :  2.2.0 (OK)
rtree >=0.9.7                                    :  1.0.1 (OK)
setuptools >=49.6.0                              :  68.0.0 (OK)
sphinx >=0.6.6                                   :  5.0.2 (OK)
spyder_kernels >=2.4.3,<2.5.0                    :  2.4.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 >=22.1.0                                     :  23.2.0 (OK)

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

Environment

Environment ``` # packages in environment at C:\Users\erica\anaconda3\envs\birdsongs: # # Name Version Build Channel affine 2.4.0 pyhd8ed1ab_0 conda-forge asttokens 2.0.5 pyhd3eb1b0_0 attrs 23.2.0 pyh71513ae_0 conda-forge aws-c-auth 0.7.20 h6823eb1_0 conda-forge aws-c-cal 0.6.12 hc83774a_0 conda-forge aws-c-common 0.9.17 h2466b09_0 conda-forge aws-c-compression 0.2.18 hc83774a_4 conda-forge aws-c-event-stream 0.4.2 hc6c0aac_10 conda-forge aws-c-http 0.8.1 hced5053_13 conda-forge aws-c-io 0.14.8 hebaacdb_0 conda-forge aws-c-mqtt 0.10.4 hdafd9a4_2 conda-forge aws-c-s3 0.5.8 h7a83f0e_3 conda-forge aws-c-sdkutils 0.1.16 hc83774a_0 conda-forge aws-checksums 0.1.18 hc83774a_4 conda-forge aws-crt-cpp 0.26.8 h4438f58_10 conda-forge aws-sdk-cpp 1.11.267 h12f3f85_8 conda-forge azure-core-cpp 1.11.1 h249a519_1 conda-forge azure-identity-cpp 1.6.0 h91493d7_1 conda-forge azure-storage-blobs-cpp 12.10.0 h91493d7_1 conda-forge azure-storage-common-cpp 12.5.0 h91493d7_4 conda-forge blosc 1.21.5 hbd69f2e_1 conda-forge branca 0.7.2 pyhd8ed1ab_0 conda-forge brotli 1.1.0 hcfcfb64_1 conda-forge brotli-bin 1.1.0 hcfcfb64_1 conda-forge brotli-python 1.1.0 py312h53d5487_1 conda-forge bzip2 1.0.8 hcfcfb64_5 conda-forge c-ares 1.28.1 hcfcfb64_0 conda-forge ca-certificates 2024.3.11 haa95532_0 cairo 1.18.0 h1fef639_0 conda-forge certifi 2024.2.2 py312haa95532_0 cfitsio 4.4.0 h9b0cee5_1 conda-forge charset-normalizer 3.3.2 pyhd8ed1ab_0 conda-forge click 8.1.7 win_pyh7428d3b_0 conda-forge click-plugins 1.1.1 py_0 conda-forge cligj 0.7.2 pyhd8ed1ab_1 conda-forge cloudpickle 2.2.1 py312haa95532_0 colorama 0.4.6 pyhd8ed1ab_0 conda-forge comm 0.2.1 py312haa95532_0 contourpy 1.2.1 py312h0d7def4_0 conda-forge cycler 0.12.1 pyhd8ed1ab_0 conda-forge debugpy 1.6.7 py312hd77b12b_0 decorator 5.1.1 pyhd3eb1b0_0 executing 0.8.3 pyhd3eb1b0_0 expat 2.6.2 h63175ca_0 conda-forge fiona 1.9.6 py312h95cbb4d_0 conda-forge fmt 10.2.1 h181d51b_0 conda-forge folium 0.16.0 pyhd8ed1ab_0 conda-forge font-ttf-dejavu-sans-mono 2.37 hab24e00_0 conda-forge font-ttf-inconsolata 3.000 h77eed37_0 conda-forge font-ttf-source-code-pro 2.038 h77eed37_0 conda-forge font-ttf-ubuntu 0.83 h77eed37_2 conda-forge fontconfig 2.14.2 hbde0cde_0 conda-forge fonts-conda-ecosystem 1 0 conda-forge fonts-conda-forge 1 0 conda-forge fonttools 4.51.0 py312he70551f_0 conda-forge freetype 2.12.1 hdaf720e_2 conda-forge freexl 2.0.0 h8276f4a_0 conda-forge gdal 3.8.5 py312hea5013e_5 conda-forge geopandas 0.14.4 pyhd8ed1ab_0 conda-forge geopandas-base 0.14.4 pyha770c72_0 conda-forge geos 3.12.1 h1537add_0 conda-forge geotiff 1.7.1 hed9d743_16 conda-forge hdf4 4.2.15 h5557f11_7 conda-forge hdf5 1.14.3 nompi_h73e8ff5_101 conda-forge icu 73.2 h63175ca_0 conda-forge idna 3.7 pyhd8ed1ab_0 conda-forge intel-openmp 2024.1.0 h57928b3_965 conda-forge ipykernel 6.28.0 py312haa95532_0 ipython 8.20.0 py312haa95532_0 jedi 0.18.1 py312haa95532_1 jinja2 3.1.4 pyhd8ed1ab_0 conda-forge joblib 1.4.2 pyhd8ed1ab_0 conda-forge jupyter_client 8.6.0 py312haa95532_0 jupyter_core 5.5.0 py312haa95532_0 kealib 1.5.3 hd248416_0 conda-forge kiwisolver 1.4.5 py312h0d7def4_1 conda-forge krb5 1.21.2 heb0366b_0 conda-forge lcms2 2.16 h67d730c_0 conda-forge lerc 4.0.0 h63175ca_0 conda-forge libabseil 20240116.2 cxx17_h63175ca_0 conda-forge libaec 1.1.3 h63175ca_0 conda-forge libarchive 3.7.2 h313118b_1 conda-forge libblas 3.9.0 22_win64_mkl conda-forge libboost-headers 1.85.0 h57928b3_0 conda-forge libbrotlicommon 1.1.0 hcfcfb64_1 conda-forge libbrotlidec 1.1.0 hcfcfb64_1 conda-forge libbrotlienc 1.1.0 hcfcfb64_1 conda-forge libcblas 3.9.0 22_win64_mkl conda-forge libcrc32c 1.1.2 h0e60522_0 conda-forge libcurl 8.7.1 hd5e4a3a_0 conda-forge libdeflate 1.20 hcfcfb64_0 conda-forge libexpat 2.6.2 h63175ca_0 conda-forge libffi 3.4.2 h8ffe710_5 conda-forge libgdal 3.8.5 h4f813f3_5 conda-forge libglib 2.80.2 h0df6a38_0 conda-forge libgoogle-cloud 2.23.0 h68df31e_1 conda-forge libgoogle-cloud-storage 2.23.0 hb581fae_1 conda-forge libgrpc 1.62.2 h5273850_0 conda-forge libhwloc 2.10.0 default_h2fffb23_1000 conda-forge libiconv 1.17 hcfcfb64_2 conda-forge libintl 0.22.5 h5728263_2 conda-forge libjpeg-turbo 3.0.0 hcfcfb64_1 conda-forge libkml 1.3.0 haf3e7a6_1018 conda-forge liblapack 3.9.0 22_win64_mkl conda-forge libnetcdf 4.9.2 nompi_h07c049d_113 conda-forge libpng 1.6.43 h19919ed_0 conda-forge libpq 16.3 hab9416b_0 conda-forge libprotobuf 4.25.3 h503648d_0 conda-forge libre2-11 2023.09.01 hf8d8778_2 conda-forge librttopo 1.1.0 h94c4f80_15 conda-forge libsodium 1.0.18 h62dcd97_0 libspatialindex 1.9.3 h39d44d4_4 conda-forge libspatialite 5.1.0 hf13de1f_5 conda-forge libsqlite 3.45.3 hcfcfb64_0 conda-forge libssh2 1.11.0 h7dfc565_0 conda-forge libtiff 4.6.0 hddb2be6_3 conda-forge libwebp-base 1.4.0 hcfcfb64_0 conda-forge libxcb 1.15 hcd874cb_0 conda-forge libxml2 2.12.7 h283a6d9_0 conda-forge libzip 1.10.1 h1d365fa_3 conda-forge libzlib 1.2.13 hcfcfb64_5 conda-forge lz4-c 1.9.4 hcfcfb64_0 conda-forge lzo 2.10 hcfcfb64_1001 conda-forge m2w64-gcc-libgfortran 5.3.0 6 conda-forge m2w64-gcc-libs 5.3.0 7 conda-forge m2w64-gcc-libs-core 5.3.0 7 conda-forge m2w64-gmp 6.1.0 2 conda-forge m2w64-libwinpthread-git 5.0.0.4634.697f757 2 conda-forge mapclassify 2.6.1 pyhd8ed1ab_0 conda-forge markupsafe 2.1.5 py312he70551f_0 conda-forge matplotlib-base 3.8.4 py312h26ecaf7_0 conda-forge matplotlib-inline 0.1.6 py312haa95532_0 minizip 4.0.5 h5bed578_0 conda-forge mkl 2024.1.0 h66d3029_692 conda-forge msys2-conda-epoch 20160418 1 conda-forge munkres 1.1.4 pyh9f0ad1d_0 conda-forge nest-asyncio 1.6.0 py312haa95532_0 networkx 3.3 pyhd8ed1ab_1 conda-forge numpy 1.26.4 py312h8753938_0 conda-forge openjpeg 2.5.2 h3d672ee_0 conda-forge openssl 3.3.0 hcfcfb64_0 conda-forge packaging 24.0 pyhd8ed1ab_0 conda-forge pandas 2.2.2 py312h2ab9e98_0 conda-forge parso 0.8.3 pyhd3eb1b0_0 pcre2 10.43 h17e33f8_0 conda-forge pillow 10.3.0 py312h6f6a607_0 conda-forge pip 24.0 pyhd8ed1ab_0 conda-forge pixman 0.43.4 h63175ca_0 conda-forge platformdirs 3.10.0 py312haa95532_0 poppler 24.04.0 h747fd5a_0 conda-forge poppler-data 0.4.12 hd8ed1ab_0 conda-forge postgresql 16.3 h7f155c9_0 conda-forge proj 9.4.0 he13c7e8_1 conda-forge prompt-toolkit 3.0.43 py312haa95532_0 prompt_toolkit 3.0.43 hd3eb1b0_0 psutil 5.9.0 py312h2bbff1b_0 pthread-stubs 0.4 hcd874cb_1001 conda-forge pthreads-win32 2.9.1 hfa6e2cd_3 conda-forge pure_eval 0.2.2 pyhd3eb1b0_0 pygments 2.15.1 py312haa95532_1 pyparsing 3.1.2 pyhd8ed1ab_0 conda-forge pyproj 3.6.1 py312h616b599_6 conda-forge pysocks 1.7.1 pyh0701188_6 conda-forge python 3.12.3 h2628c8c_0_cpython conda-forge python-dateutil 2.9.0 pyhd8ed1ab_0 conda-forge python-tzdata 2024.1 pyhd8ed1ab_0 conda-forge python_abi 3.12 4_cp312 conda-forge pytz 2024.1 pyhd8ed1ab_0 conda-forge pywin32 305 py312h2bbff1b_0 pyzmq 25.1.2 py312hd77b12b_0 rasterio 1.3.10 py312h7f7071e_0 conda-forge re2 2023.09.01 hd3b24a8_2 conda-forge requests 2.31.0 pyhd8ed1ab_0 conda-forge rioxarray 0.15.5 pyhd8ed1ab_0 conda-forge rtree 1.2.0 py312h72b5f30_0 conda-forge scikit-learn 1.4.2 py312hcacafb1_0 conda-forge scipy 1.13.0 py312h1f4e10d_1 conda-forge setuptools 69.5.1 pyhd8ed1ab_0 conda-forge shapely 2.0.4 py312h7d70906_0 conda-forge six 1.16.0 pyh6c4a22f_0 conda-forge snappy 1.2.0 hfb803bf_1 conda-forge snuggs 1.4.7 py_0 conda-forge spdlog 1.13.0 h64d2f7d_0 conda-forge spyder-kernels 2.4.4 py312haa95532_0 sqlite 3.45.3 hcfcfb64_0 conda-forge stack_data 0.2.0 pyhd3eb1b0_0 tbb 2021.12.0 h91493d7_0 conda-forge threadpoolctl 3.5.0 pyhc1e730c_0 conda-forge tiledb 2.23.0 h5657395_0 conda-forge tk 8.6.13 h5226925_1 conda-forge tornado 6.3.3 py312h2bbff1b_0 traitlets 5.7.1 py312haa95532_0 tzdata 2024a h0c530f3_0 conda-forge ucrt 10.0.22621.0 h57928b3_0 conda-forge uriparser 0.9.8 h5a68840_0 conda-forge urllib3 2.2.1 pyhd8ed1ab_0 conda-forge vc 14.3 hcf57466_18 conda-forge vc14_runtime 14.38.33130 h82b7239_18 conda-forge vs2015_runtime 14.38.33130 hcb4865c_18 conda-forge wcwidth 0.2.5 pyhd3eb1b0_0 wheel 0.43.0 pyhd8ed1ab_1 conda-forge win_inet_pton 1.1.0 pyhd8ed1ab_6 conda-forge xarray 2024.5.0 pyhd8ed1ab_0 conda-forge xerces-c 3.2.5 h63175ca_0 conda-forge xorg-libxau 1.0.11 hcd874cb_0 conda-forge xorg-libxdmcp 1.1.3 hcd874cb_0 conda-forge xyzservices 2024.4.0 pyhd8ed1ab_0 conda-forge xz 5.2.6 h8d14728_0 conda-forge zeromq 4.3.5 hd77b12b_0 zlib 1.2.13 hcfcfb64_5 conda-forge zstd 1.5.6 h0ea2cb4_0 conda-forge ```
dalthviz commented 3 months ago

Hi @eburrows95 thank you for the feedback! Did this happen to you after trying to restart the console or when creating a new one? There have been several issue reports related with the zmq.error.ZMQError: Not supported error (https://github.com/spyder-ide/spyder/issues?q=is%3Aissue+zmq.error.ZMQError%3A+Not+supported+is%3Aclosed) but no root cause has been identified :/

Any other info is greatly appreciated, let us know!

dalthviz commented 2 weeks ago

Closing due to lack of response