jupyterlab / jupyterlab-desktop

JupyterLab desktop application, based on Electron.
BSD 3-Clause "New" or "Revised" License
3.66k stars 350 forks source link

Failed to find a compatible python environment at the configured path (3.3.2-2+) #438

Closed sarkrui closed 11 months ago

sarkrui commented 2 years ago

Description

With the latest release (v3.3.2-2) of Jupyterlab Desktop, I can't use python env created by conda. It prompted with the following message. With v3.3.2-1, I didn't have any issue.

failed to find a compatible python environment at the configured path "/users/p.xing/library/jupyterlab-desktop/jlab_server/bin/python". environment python package requirements are: jupyterlab >=3.1.0.

Reproduce

Expected behavior

(pre) Solution

Using the v3.3.2-1 pkg installer, boot up with no issue.

welcome[bot] commented 2 years ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

yangcht commented 2 years ago

Could someone fix this, please?
Having this issue since v3.3.4

USDSOM commented 2 years ago

Issue still exists on v3.3.4-2 I created an alias /Users/user_name/Library/jupyterlab-desktop/jlab_server/bin/python to the python path, which in my case is, /Users/user_name/opt/anaconda3/bin/python

lukelbd commented 2 years ago

Also having this issue on v3.3.4-2. Tried pointing to the symlink ~/miniconda3/bin/python and its destination ~/miniconda3/bin/python3.10 but both failed. Looks like v3.3.2-1 is the latest version without this issue.

krassowski commented 2 years ago

@lukelbd could you run conda list in the selected environment and paste it here, please?

lukelbd commented 2 years ago

Here you go (inside <details>):

```sh $conda list # packages in environment at /Users/ldavis/miniconda3: # # Name Version Build Channel _go_select 2.3.0 cgo conda-forge _r-mutex 1.0.1 anacondar_1 conda-forge aiobotocore 2.2.0 pyhd8ed1ab_0 conda-forge aiohttp 3.8.1 py310h1961e1f_1 conda-forge aioitertools 0.10.0 pyhd8ed1ab_0 conda-forge aiosignal 1.2.0 pyhd8ed1ab_0 conda-forge alabaster 0.7.12 py_0 conda-forge antlr-python-runtime 4.7.2 py310h2ec42d9_1003 conda-forge anyio 3.6.1 py310h2ec42d9_0 conda-forge aom 3.3.0 h96cf925_1 conda-forge appdirs 1.4.4 pyh9f0ad1d_0 conda-forge appnope 0.1.3 pyhd8ed1ab_0 conda-forge argon2-cffi 21.3.0 pyhd8ed1ab_0 conda-forge argon2-cffi-bindings 21.2.0 py310h1961e1f_2 conda-forge asciinema 2.2.0 pyhd8ed1ab_0 conda-forge astroid 2.11.5 py310h2ec42d9_0 conda-forge asttokens 2.0.5 pyhd8ed1ab_0 conda-forge async-timeout 4.0.2 pyhd8ed1ab_0 conda-forge async_generator 1.10 py_0 conda-forge atk-1.0 2.36.0 he69c4ee_4 conda-forge attrs 21.4.0 pyhd8ed1ab_0 conda-forge autopep8 1.6.0 pyhd8ed1ab_1 conda-forge babel 2.9.1 pyh44b312d_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 beautifulsoup4 4.11.1 pyha770c72_0 conda-forge black 22.3.0 pyhd8ed1ab_0 conda-forge bleach 5.0.0 pyhd8ed1ab_0 conda-forge bokeh 2.4.3 py310h2ec42d9_0 conda-forge boost-cpp 1.74.0 hdbf7018_7 conda-forge botocore 1.24.21 pyhd8ed1ab_1 conda-forge brotli 1.0.9 h5eb16cf_7 conda-forge brotli-bin 1.0.9 h5eb16cf_7 conda-forge brotlipy 0.7.0 py310h1961e1f_1004 conda-forge bwidget 1.9.14 h694c41f_1 conda-forge bzip2 1.0.8 h0d85af4_4 conda-forge c-ares 1.18.1 h0d85af4_0 conda-forge ca-certificates 2022.5.18.1 h033912b_0 conda-forge cairo 1.16.0 h9e0e54b_1010 conda-forge cartopy 0.20.2 py310he18ef84_4 conda-forge cctools_osx-64 973.0.1 h3eff9a4_10 conda-forge cdo 2.0.5 h397eacf_0 conda-forge certifi 2022.5.18.1 py310h2ec42d9_0 conda-forge cf-units 3.0.1 py310h81f86ea_2 conda-forge cf_xarray 0.7.2 pyhd8ed1ab_0 conda-forge cffi 1.15.0 py310hcc37b68_0 conda-forge cfgv 3.3.1 pyhd8ed1ab_0 conda-forge cftime 1.6.0 py310h7f5fb2b_1 conda-forge charset-normalizer 2.0.12 pyhd8ed1ab_0 conda-forge clang 12.0.1 h694c41f_4 conda-forge clang-12 12.0.1 default_he082bbe_4 conda-forge clang_osx-64 12.0.1 h633439f_9 conda-forge clangxx 12.0.1 default_he082bbe_4 conda-forge clangxx_osx-64 12.0.1 hdb584c0_9 conda-forge click 8.1.3 py310h2ec42d9_0 conda-forge climopy 0.1.0.post311+dirty dev_0 cloudpickle 2.0.0 pyhd8ed1ab_0 conda-forge cmarkgfm 0.8.0 py310h1961e1f_1 conda-forge colorama 0.4.4 pyh9f0ad1d_0 conda-forge commonmark 0.9.1 py_0 conda-forge compiler-rt 12.0.1 he01351e_0 conda-forge compiler-rt_osx-64 12.0.1 hd3f61c9_0 conda-forge conda 4.12.0 py310h2ec42d9_0 conda-forge conda-package-handling 1.8.1 py310h1961e1f_1 conda-forge condastats 0.1.5 pyhd8ed1ab_1 conda-forge configargparse 1.5.3 pyhd8ed1ab_0 conda-forge cramjam 2.5.0 py310hcf052fe_0 conda-forge cryptography 37.0.2 py310h52c3658_0 conda-forge curl 7.83.1 h372c54d_0 conda-forge cycler 0.11.0 pyhd8ed1ab_0 conda-forge cytoolz 0.11.2 py310h1961e1f_2 conda-forge dask 2022.4.1 pyhd8ed1ab_0 conda-forge dask-core 2022.4.1 pyhd8ed1ab_0 conda-forge dataclasses 0.8 pyhc8e2a94_3 conda-forge dbus 1.13.6 h811a1a6_3 conda-forge debugpy 1.6.0 py310h9d931ec_0 conda-forge decorator 5.1.1 pyhd8ed1ab_0 conda-forge defusedxml 0.7.1 pyhd8ed1ab_0 conda-forge deno 1.17.0 h694c41f_0 conda-forge dill 0.3.5.1 pyhd8ed1ab_0 conda-forge distlib 0.3.4 pyhd8ed1ab_0 conda-forge distributed 2022.4.1 pyhd8ed1ab_0 conda-forge docutils 0.17.1 py310h2ec42d9_2 conda-forge eccodes 2.26.0 hf772d56_0 conda-forge entrypoints 0.4 pyhd8ed1ab_0 conda-forge epoxy 1.5.10 h5eb16cf_1 conda-forge esmf 8.2.0 mpi_mpich_h0092da8_100 conda-forge executing 0.8.3 pyhd8ed1ab_0 conda-forge expat 2.4.8 h96cf925_0 conda-forge fastparquet 0.8.1 py310h1bbcd0e_0 conda-forge ffmpeg 5.0.1 h9220da4_0 conda-forge fftw 3.3.10 nompi_hf082fe4_102 conda-forge filelock 3.7.0 pyhd8ed1ab_0 conda-forge flake8 4.0.1 pyhd8ed1ab_2 conda-forge flake8-unused-arguments 0.0.10 pypi_0 pypi flit-core 3.7.1 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 hab24e00_0 conda-forge fontconfig 2.14.0 h676cef8_0 conda-forge fonts-conda-ecosystem 1 0 conda-forge fonts-conda-forge 1 0 conda-forge fonttools 4.33.3 py310h6c45266_0 conda-forge fprettify 0.3.7 pyhd8ed1ab_0 conda-forge freetype 2.10.4 h4cff582_1 conda-forge fribidi 1.0.10 hbcb3906_0 conda-forge frozenlist 1.3.0 py310h1961e1f_1 conda-forge fsspec 2022.3.0 pyhd8ed1ab_0 conda-forge future 0.18.2 py310h2ec42d9_5 conda-forge gdk-pixbuf 2.42.8 hb161b9c_0 conda-forge geos 3.10.2 he49afe7_0 conda-forge gettext 0.19.8.1 hd1a6beb_1008 conda-forge gfortran_impl_osx-64 9.3.0 h9cc0e5e_23 conda-forge gfortran_osx-64 9.3.0 h18f7dce_15 conda-forge ghostscript 9.54.0 h96cf925_2 conda-forge giflib 5.2.1 hbcb3906_2 conda-forge glib 2.70.2 hcf210ce_4 conda-forge glib-tools 2.70.2 hcf210ce_4 conda-forge gmp 6.2.1 h2e338ed_0 conda-forge gnutls 3.6.13 h756fd2b_1 conda-forge go 1.17.8 h9c71c55_0 conda-forge graphite2 1.3.13 h2e338ed_1001 conda-forge graphviz 3.0.0 h6f567cf_1 conda-forge greenlet 1.1.2 py310h9d931ec_2 conda-forge gsl 2.7 h93259b0_0 conda-forge gtk2 2.24.33 h7c1209e_2 conda-forge gtk3 3.24.33 hab8009b_1 conda-forge gts 0.7.6 hccb3bdf_2 conda-forge harfbuzz 4.2.0 h48644e2_0 conda-forge hdf4 4.2.15 hefd3b78_3 conda-forge hdf5 1.12.1 mpi_mpich_hfd824e9_4 conda-forge heapdict 1.0.1 py_0 conda-forge hicolor-icon-theme 0.17 h694c41f_2 conda-forge icu 69.1 he49afe7_0 conda-forge identify 2.5.1 pyhd8ed1ab_0 conda-forge idna 3.3 pyhd8ed1ab_0 conda-forge imagemagick 7.1.0_29 pl5321h80d2495_0 conda-forge imagesize 1.3.0 pyhd8ed1ab_0 conda-forge importlib-metadata 4.11.3 py310h2ec42d9_1 conda-forge importlib_metadata 4.11.3 hd8ed1ab_1 conda-forge importlib_resources 5.7.1 pyhd8ed1ab_0 conda-forge iniconfig 1.1.1 pyh9f0ad1d_0 conda-forge ipykernel 6.13.0 py310ha188af9_0 conda-forge ipython 8.3.0 py310h2ec42d9_0 conda-forge ipython_genutils 0.2.0 py_1 conda-forge isl 0.22.1 hb1e8313_2 conda-forge isort 5.10.1 pyhd8ed1ab_0 conda-forge jasper 2.0.33 h013e400_0 conda-forge jbig 2.1 h0d85af4_2003 conda-forge jedi 0.18.0 py310h2ec42d9_3 conda-forge jedi-language-server 0.36.0 pypi_0 pypi jinja2 3.1.1 pyhd8ed1ab_0 conda-forge jmespath 1.0.0 pyhd8ed1ab_0 conda-forge jpeg 9e h5eb16cf_1 conda-forge json5 0.9.5 pyh9f0ad1d_0 conda-forge jsonschema 4.4.0 pyhd8ed1ab_0 conda-forge jupyter-contrib-core 0.3.3 pypi_0 pypi jupyter-contrib-nbextensions 0.5.3 pypi_0 pypi jupyter-highlight-selected-word 0.2.0 pypi_0 pypi jupyter-latex-envs 1.4.6 pypi_0 pypi jupyter-lsp 1.5.1 pyhd8ed1ab_0 conda-forge jupyter-nbextensions-configurator 0.4.1 pypi_0 pypi jupyter_client 7.3.0 pyhd8ed1ab_0 conda-forge jupyter_console 6.4.3 pyhd8ed1ab_0 conda-forge jupyter_core 4.10.0 py310h2ec42d9_0 conda-forge jupyter_server 1.17.0 pyhd8ed1ab_0 conda-forge jupyterlab 3.4.2 pyhd8ed1ab_0 conda-forge jupyterlab-lsp 3.10.1 pyhd8ed1ab_0 conda-forge jupyterlab_code_formatter 1.4.11 pyhd8ed1ab_0 conda-forge jupyterlab_pygments 0.2.2 pyhd8ed1ab_0 conda-forge jupyterlab_server 2.13.0 pyhd8ed1ab_1 conda-forge jupytext 1.13.8 pyh4b9bcc7_0 conda-forge keyring 23.4.0 py310h2ec42d9_2 conda-forge kiwisolver 1.4.2 py310h6be76da_1 conda-forge krb5 1.19.3 hb49756b_0 conda-forge lame 3.100 h35c211d_1001 conda-forge lazy-object-proxy 1.7.1 py310h1961e1f_1 conda-forge lcms2 2.12 h577c468_0 conda-forge ld64_osx-64 609 hc6b1d1e_10 conda-forge lerc 3.0 he49afe7_0 conda-forge libaec 1.0.6 he49afe7_0 conda-forge libarchive 3.5.2 h2b60450_1 conda-forge libblas 3.9.0 14_osx64_openblas conda-forge libbrotlicommon 1.0.9 h5eb16cf_7 conda-forge libbrotlidec 1.0.9 h5eb16cf_7 conda-forge libbrotlienc 1.0.9 h5eb16cf_7 conda-forge libcblas 3.9.0 14_osx64_openblas conda-forge libclang 13.0.1 default_he082bbe_0 conda-forge libclang-cpp12 12.0.1 default_he082bbe_4 conda-forge libcurl 7.83.1 h372c54d_0 conda-forge libcxx 13.0.1 hc203e6f_0 conda-forge libdeflate 1.10 h0d85af4_0 conda-forge libedit 3.1.20191231 h0678c8f_2 conda-forge libev 4.33 haf1e3a3_1 conda-forge libevent 2.1.10 h815e4d9_4 conda-forge libffi 3.4.2 h0d85af4_5 conda-forge libgd 2.3.3 h02d8a21_2 conda-forge libgfortran 5.0.0 9_3_0_h6c81a4c_23 conda-forge libgfortran-devel_osx-64 9.3.0 h6c81a4c_23 conda-forge libgfortran5 9.3.0 h6c81a4c_23 conda-forge libgirepository 1.72.0 h0bde3a9_1 conda-forge libglib 2.70.2 hf1fb8c0_4 conda-forge libiconv 1.16 haf1e3a3_0 conda-forge libidn2 2.3.2 h0d85af4_0 conda-forge liblapack 3.9.0 14_osx64_openblas conda-forge libllvm12 12.0.1 hd011deb_2 conda-forge libllvm13 13.0.1 h64f94b2_2 conda-forge libmamba 0.23.3 h2d3d89a_1 conda-forge libmambapy 0.23.3 py310hdd39e55_1 conda-forge libnetcdf 4.8.1 mpi_mpich_hf13189e_2 conda-forge libnghttp2 1.47.0 h942079c_0 conda-forge libopenblas 0.3.20 openmp_hb3cd9ec_0 conda-forge libpng 1.6.37 h7cec526_2 conda-forge libpq 14.2 hea3049e_0 conda-forge librsvg 2.52.5 h5e5d7d9_3 conda-forge libsodium 1.0.18 hbcb3906_1 conda-forge libsolv 0.7.22 hd9580d2_0 conda-forge libssh2 1.10.0 h52ee1ee_2 conda-forge libtiff 4.3.0 h17f2ce3_3 conda-forge libtool 2.4.6 he49afe7_1008 conda-forge libunistring 0.9.10 h0d85af4_0 conda-forge libvpx 1.11.0 he49afe7_3 conda-forge libwebp 1.2.2 h28dabe5_0 conda-forge libwebp-base 1.2.2 h0d85af4_1 conda-forge libxcb 1.13 h0d85af4_1004 conda-forge libxml2 2.9.12 h7e28ab6_1 conda-forge libzip 1.8.0 h8b0c345_1 conda-forge libzlib 1.2.11 h6c3fc93_1014 conda-forge llvm-openmp 13.0.1 hcb1a161_1 conda-forge llvm-tools 12.0.1 hd011deb_2 conda-forge locket 1.0.0 pyhd8ed1ab_0 conda-forge lxml 4.8.0 pypi_0 pypi lz4 4.0.0 py310h2e8d50f_2 conda-forge lz4-c 1.9.3 he49afe7_1 conda-forge lzo 2.10 haf1e3a3_1000 conda-forge magics 4.12.0 hf2e06ee_0 conda-forge magics-python 1.5.6 pyhd8ed1ab_0 conda-forge make 4.3 h22f3db7_1 conda-forge mamba 0.23.3 py310h795411f_1 conda-forge markdown-it-py 2.1.0 pyhd8ed1ab_0 conda-forge markupsafe 2.1.1 py310h1961e1f_1 conda-forge matplotlib 3.5.2 py310h2ec42d9_0 conda-forge matplotlib-base 3.5.2 py310h4510841_0 conda-forge matplotlib-inline 0.1.3 pyhd8ed1ab_0 conda-forge matplotlib-iterm2 0.1.0 pypi_0 pypi mccabe 0.6.1 py_1 conda-forge mdit-py-plugins 0.3.0 pyhd8ed1ab_0 conda-forge mdurl 0.1.0 pyhd8ed1ab_0 conda-forge metpy 1.3.0 pyhd8ed1ab_0 conda-forge mistune 0.8.4 py310he24745e_1005 conda-forge mpc 1.2.1 hbb51d92_0 conda-forge mpfr 4.1.0 h0f52abe_1 conda-forge mpi 1.0 mpich conda-forge mpich 4.0.2 hd33e60e_100 conda-forge msgpack-python 1.0.3 py310h6be76da_1 conda-forge multidict 6.0.2 py310h1961e1f_1 conda-forge munkres 1.1.4 pyh9f0ad1d_0 conda-forge mypy_extensions 0.4.3 py310h2ec42d9_5 conda-forge mysql-common 8.0.29 h924029e_0 conda-forge mysql-libs 8.0.29 h3cab752_0 conda-forge nb_conda_kernels 2.3.1 py310h2ec42d9_1 conda-forge nbclassic 0.3.7 pyhd8ed1ab_0 conda-forge nbclient 0.6.0 pyhd8ed1ab_0 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.3.0 pyhd8ed1ab_0 conda-forge nco 5.0.6 h346761d_0 conda-forge ncurses 6.3 h96cf925_1 conda-forge nest-asyncio 1.5.5 pyhd8ed1ab_0 conda-forge netcdf-fortran 4.5.4 mpi_mpich_h29158c3_0 conda-forge netcdf4 1.5.8 nompi_py310h1579a17_101 conda-forge nettle 3.6 hedd7734_0 conda-forge nodeenv 1.6.0 pyhd8ed1ab_0 conda-forge notebook 6.4.11 pyha770c72_0 conda-forge notebook-shim 0.1.0 pyhd8ed1ab_0 conda-forge nspr 4.32 hcd9eead_1 conda-forge nss 3.77 hfce436b_0 conda-forge numpy 1.22.3 py310he1f95b8_2 conda-forge olefile 0.46 pyh9f0ad1d_1 conda-forge openh264 2.1.1 hfd3ada9_0 conda-forge openjpeg 2.4.0 h6e7aa92_1 conda-forge openssl 1.1.1o hfe4f2af_0 conda-forge ossuuid 1.6.2 h0a44026_1000 conda-forge packaging 21.3 pyhd8ed1ab_0 conda-forge pandas 1.4.2 py310h514ec25_1 conda-forge pandoc 2.17.1.1 h694c41f_0 conda-forge pandoc-crossref 0.3.12.2 h694c41f_1 conda-forge pandocfilters 1.5.0 pyhd8ed1ab_0 conda-forge pango 1.50.7 hc4a7b6d_0 conda-forge parso 0.8.3 pyhd8ed1ab_0 conda-forge partd 1.2.0 pyhd8ed1ab_0 conda-forge pathspec 0.9.0 pyhd8ed1ab_0 conda-forge patsy 0.5.2 pyhd8ed1ab_0 conda-forge pcre 8.45 he49afe7_0 conda-forge pcre2 10.37 ha16e1b2_0 conda-forge pep517 0.12.0 py310h2ec42d9_2 conda-forge perl 5.32.1 2_h0d85af4_perl5 conda-forge pexpect 4.8.0 pyh9f0ad1d_2 conda-forge pickleshare 0.7.5 py_1003 conda-forge pillow 9.1.1 py310hb3240ae_0 conda-forge pint 0.19.2 pyhd8ed1ab_0 conda-forge pint-xarray 0.2.1 pyhd8ed1ab_0 conda-forge pip 22.0.4 pyhd8ed1ab_0 conda-forge pixman 0.40.0 hbcb3906_0 conda-forge pkg-config 0.29.2 ha3d46e9_1008 conda-forge pkginfo 1.8.2 pyhd8ed1ab_0 conda-forge platformdirs 2.5.1 pyhd8ed1ab_0 conda-forge pluggy 1.0.0 py310h2ec42d9_3 conda-forge pooch 1.6.0 pyhd8ed1ab_0 conda-forge poppler 22.04.0 h39497b0_0 conda-forge poppler-data 0.4.11 hd8ed1ab_0 conda-forge pre-commit 2.19.0 py310h2ec42d9_0 conda-forge proj 9.0.0 h2364a93_1 conda-forge prometheus_client 0.14.1 pyhd8ed1ab_0 conda-forge prompt-toolkit 3.0.29 pyha770c72_0 conda-forge prompt_toolkit 3.0.29 hd8ed1ab_0 conda-forge proplot 0.9.5.post298+dirty dev_0 psutil 5.9.0 py310h1961e1f_1 conda-forge pthread-stubs 0.4 hc929b4f_1001 conda-forge ptyprocess 0.7.0 pyhd3deb0d_0 conda-forge pure_eval 0.2.2 pyhd8ed1ab_0 conda-forge py 1.11.0 pyh6c4a22f_0 conda-forge pybind11-abi 4 hd8ed1ab_3 conda-forge pycairo 1.21.0 py310h5138a19_1 conda-forge pycodestyle 2.8.0 pyhd8ed1ab_0 conda-forge pycosat 0.6.3 py310h1961e1f_1010 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 pygobject 3.42.0 py310hb7eb778_2 conda-forge pylint 2.13.9 pyhd8ed1ab_1 conda-forge pynvim 0.4.3 pypi_0 pypi pyopenssl 22.0.0 pyhd8ed1ab_0 conda-forge pyparsing 3.0.8 pyhd8ed1ab_0 conda-forge pyproj 3.3.1 py310h6c09501_0 conda-forge pyqt 5.12.3 py310h2ec42d9_8 conda-forge pyqt-impl 5.12.3 py310hea9ccf3_8 conda-forge pyqt5-sip 4.19.18 py310hd046c34_8 conda-forge pyqtchart 5.12 py310hea9ccf3_8 conda-forge pyqtwebengine 5.12.1 py310hea9ccf3_8 conda-forge pyrsistent 0.18.1 py310h1961e1f_1 conda-forge pyshp 2.2.0 pyhd8ed1ab_0 conda-forge pysocks 1.7.1 py310h2ec42d9_5 conda-forge pytest 7.1.2 py310h2ec42d9_0 conda-forge pytest-mpl 0.14.dev33+g2bded70 pypi_0 pypi python 3.10.0 h1248fe1_3_cpython conda-forge python-build 0.7.0 pyhd8ed1ab_0 conda-forge python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge python-fastjsonschema 2.15.3 pyhd8ed1ab_0 conda-forge python-lsp-jsonrpc 1.0.0 pyhd8ed1ab_0 conda-forge python-lsp-server 1.4.1 pyhd8ed1ab_1 conda-forge python-snappy 0.6.0 py310h98adc32_2 conda-forge python.app 1.4 py310he24745e_0 conda-forge python_abi 3.10 2_cp310 conda-forge pytz 2022.1 pyhd8ed1ab_0 conda-forge pyyaml 6.0 py310h1961e1f_4 conda-forge pyzmq 23.0.0 py310h85fb675_0 conda-forge qt 5.12.9 h2a607e2_5 conda-forge qtconsole 5.3.0 pyhd8ed1ab_0 conda-forge qtconsole-base 5.3.0 pyhd8ed1ab_0 conda-forge qtpy 2.0.1 pyhd8ed1ab_0 conda-forge r-askpass 1.1 r41h28b5c78_2 conda-forge r-backports 1.4.1 r41h28b5c78_0 conda-forge r-base 4.1.3 h56d3809_0 conda-forge r-base64enc 0.1_3 r41h28b5c78_1004 conda-forge r-brew 1.0_7 r41hc72bb7e_0 conda-forge r-brio 1.1.3 r41h28b5c78_0 conda-forge r-callr 3.7.0 r41hc72bb7e_0 conda-forge r-cli 3.3.0 r41h8619c4b_0 conda-forge r-codetools 0.2_18 r41hc72bb7e_0 conda-forge r-collections 0.3.5 r41h28b5c78_0 conda-forge r-commonmark 1.8.0 r41h0f1d5c4_0 conda-forge r-cpp11 0.4.2 r41hc72bb7e_0 conda-forge r-crayon 1.5.1 r41hc72bb7e_0 conda-forge r-curl 4.3.2 r41h28b5c78_0 conda-forge r-cyclocomp 1.1.0 r41hc72bb7e_1004 conda-forge r-desc 1.4.1 r41hc72bb7e_0 conda-forge r-diffobj 0.3.5 r41h28b5c78_0 conda-forge r-digest 0.6.29 r41h9951f98_0 conda-forge r-ellipsis 0.3.2 r41h28b5c78_0 conda-forge r-evaluate 0.15 r41hc72bb7e_0 conda-forge r-fansi 1.0.3 r41h0f1d5c4_0 conda-forge r-fastmap 1.1.0 r41h9951f98_0 conda-forge r-fs 1.5.2 r41hc4bb905_1 conda-forge r-glue 1.6.2 r41h0f1d5c4_0 conda-forge r-highr 0.9 r41hc72bb7e_0 conda-forge r-htmltools 0.5.2 r41h9951f98_0 conda-forge r-httr 1.4.3 r41hc72bb7e_0 conda-forge r-jsonlite 1.8.0 r41h0f1d5c4_0 conda-forge r-knitr 1.39 r41hc72bb7e_0 conda-forge r-languageserver 0.3.13 r41h67d6963_0 conda-forge r-lazyeval 0.2.2 r41h28b5c78_2 conda-forge r-lifecycle 1.0.1 r41hc72bb7e_0 conda-forge r-lintr 2.0.1 r41hc72bb7e_1 conda-forge r-magrittr 2.0.3 r41h0f1d5c4_0 conda-forge r-mime 0.12 r41h28b5c78_0 conda-forge r-openssl 2.0.2 r41h2a55822_0 conda-forge r-pillar 1.7.0 r41hc72bb7e_0 conda-forge r-pkgconfig 2.0.3 r41hc72bb7e_1 conda-forge r-pkgload 1.2.4 r41h9951f98_0 conda-forge r-praise 1.0.0 r41hc72bb7e_1005 conda-forge r-processx 3.5.3 r41h0f1d5c4_0 conda-forge r-ps 1.7.0 r41h67d6963_0 conda-forge r-purrr 0.3.4 r41h28b5c78_1 conda-forge r-r.cache 0.15.0 r41hc72bb7e_0 conda-forge r-r.methodss3 1.8.1 r41hc72bb7e_0 conda-forge r-r.oo 1.24.0 r41hc72bb7e_0 conda-forge r-r.utils 2.11.0 r41hc72bb7e_0 conda-forge r-r6 2.5.1 r41hc72bb7e_0 conda-forge r-rcpp 1.0.8.3 r41hc4bb905_0 conda-forge r-rematch2 2.1.2 r41hc72bb7e_1 conda-forge r-remotes 2.4.2 r41hc72bb7e_0 conda-forge r-repr 1.1.4 r41h785f33e_0 conda-forge r-rex 1.2.1 r41hc72bb7e_0 conda-forge r-rlang 1.0.2 r41hc4bb905_0 conda-forge r-roxygen2 7.2.0 r41h8619c4b_0 conda-forge r-rprojroot 2.0.3 r41hc72bb7e_0 conda-forge r-rstudioapi 0.13 r41hc72bb7e_0 conda-forge r-stringdist 0.9.8 r41ha76789d_1 conda-forge r-stringi 1.7.6 r41h99ba7f4_1 conda-forge r-stringr 1.4.0 r41hc72bb7e_2 conda-forge r-styler 1.7.0 r41hc72bb7e_0 conda-forge r-sys 3.4 r41h28b5c78_0 conda-forge r-testthat 3.1.4 r41h8619c4b_0 conda-forge r-tibble 3.1.7 r41h67d6963_0 conda-forge r-utf8 1.2.2 r41h28b5c78_0 conda-forge r-vctrs 0.4.1 r41hc4bb905_0 conda-forge r-waldo 0.4.0 r41hc72bb7e_0 conda-forge r-withr 2.5.0 r41hc72bb7e_0 conda-forge r-xfun 0.31 r41h8619c4b_0 conda-forge r-xml2 1.3.3 r41h9951f98_0 conda-forge r-xmlparsedata 1.0.5 r41hc72bb7e_0 conda-forge r-yaml 2.3.5 r41h0f1d5c4_0 conda-forge readline 8.1 h05e3726_0 conda-forge readme_renderer 35.0 pyhd8ed1ab_0 conda-forge reproc 14.2.3 h0d85af4_0 conda-forge reproc-cpp 14.2.3 he49afe7_0 conda-forge requests 2.27.1 pyhd8ed1ab_0 conda-forge requests-toolbelt 0.9.1 py_0 conda-forge rfc3986 2.0.0 pyhd8ed1ab_0 conda-forge rich 12.3.0 pyhd8ed1ab_0 conda-forge rope 1.1.1 pyhd8ed1ab_0 conda-forge ruamel_yaml 0.15.80 py310he24745e_1006 conda-forge s3fs 2022.3.0 pyhd8ed1ab_0 conda-forge scipy 1.8.1 py310h1f9c157_0 conda-forge seaborn 0.11.2 hd8ed1ab_0 conda-forge seaborn-base 0.11.2 pyhd8ed1ab_0 conda-forge send2trash 1.8.0 pyhd8ed1ab_0 conda-forge setuptools 62.3.2 py310h2ec42d9_0 conda-forge setuptools-scm 6.4.2 pyhd8ed1ab_0 conda-forge setuptools_scm 6.4.2 hd8ed1ab_0 conda-forge setuptools_scm_git_archive 1.1 py_0 conda-forge shapely 1.8.2 py310h6d09efd_1 conda-forge sigtool 0.1.3 h57ddcff_0 conda-forge simplejson 3.17.6 py310h1961e1f_1 conda-forge six 1.16.0 pyh6c4a22f_0 conda-forge snappy 1.1.8 hb1e8313_3 conda-forge sniffio 1.2.0 py310h2ec42d9_3 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 4.5.0 pyh6c4a22f_0 conda-forge sphinx-rtd-theme 0.4.3 pypi_0 pypi 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 sqlite 3.38.2 hb516253_0 conda-forge stack_data 0.2.0 pyhd8ed1ab_0 conda-forge statsmodels 0.13.2 py310h81f86ea_0 conda-forge svt-av1 0.9.1 h96cf925_0 conda-forge tapi 1100.0.11 h9ce4665_0 conda-forge tblib 1.7.0 pyhd8ed1ab_0 conda-forge tempest-remap 2.1.1 hb577637_0 conda-forge termcolor 1.1.0 py_2 conda-forge terminado 0.15.0 py310h2ec42d9_0 conda-forge testpath 0.6.0 pyhd8ed1ab_0 conda-forge thrift 0.16.0 py310h9d931ec_1 conda-forge tinycss2 1.1.1 pyhd8ed1ab_0 conda-forge tk 8.6.12 h5dbffcc_0 conda-forge tktable 2.10 h49f0cf7_3 conda-forge tmux 3.2a h749c5dd_0 conda-forge toml 0.10.2 pyhd8ed1ab_0 conda-forge tomli 2.0.1 pyhd8ed1ab_0 conda-forge toolz 0.11.2 pyhd8ed1ab_0 conda-forge tornado 6.1 py310h1961e1f_3 conda-forge tqdm 4.64.0 pyhd8ed1ab_0 conda-forge traitlets 5.1.1 pyhd8ed1ab_0 conda-forge twine 4.0.0 pyhd8ed1ab_0 conda-forge typed-ast 1.5.3 py310h1961e1f_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 udunits2 2.2.28 h06ef574_0 conda-forge ujson 5.3.0 py310hd4537e4_0 conda-forge ukkonen 1.0.1 py310h6be76da_2 conda-forge unicodedata2 14.0.0 py310h1961e1f_1 conda-forge urllib3 1.26.9 pyhd8ed1ab_0 conda-forge vim 8.2.3901 py310pl5321h453c98b_0 conda-forge virtualenv 20.14.1 py310h2ec42d9_0 conda-forge wcwidth 0.2.5 pyh9f0ad1d_2 conda-forge webencodings 0.5.1 py_1 conda-forge websocket-client 1.3.2 pyhd8ed1ab_0 conda-forge wget 1.20.3 h52ee1ee_1 conda-forge wheel 0.37.1 pyhd8ed1ab_0 conda-forge wrapt 1.14.1 py310h6c45266_0 conda-forge x264 1!161.3030 h0d85af4_1 conda-forge x265 3.5 hbb4e6a2_3 conda-forge xarray 2022.3.0 pyhd8ed1ab_0 conda-forge xorg-kbproto 1.0.7 h35c211d_1002 conda-forge xorg-libice 1.0.10 h0d85af4_0 conda-forge xorg-libsm 1.2.3 h0d85af4_1000 conda-forge xorg-libx11 1.7.2 h0d85af4_0 conda-forge xorg-libxau 1.0.9 h35c211d_0 conda-forge xorg-libxdmcp 1.1.3 h35c211d_0 conda-forge xorg-libxext 1.3.4 h0d85af4_1 conda-forge xorg-libxrender 0.9.10 h0d85af4_1003 conda-forge xorg-libxt 1.2.1 h0d85af4_2 conda-forge xorg-renderproto 0.11.1 h0d85af4_1002 conda-forge xorg-xextproto 7.3.0 h35c211d_1002 conda-forge xorg-xproto 7.0.31 h35c211d_1007 conda-forge xz 5.2.5 haf1e3a3_1 conda-forge yaml 0.2.5 h0d85af4_2 conda-forge yaml-cpp 0.7.0 hb486fe8_1 conda-forge yapf 0.32.0 pyhd8ed1ab_0 conda-forge yarl 1.7.2 py310h1961e1f_2 conda-forge zeromq 4.3.4 he49afe7_1 conda-forge zict 2.1.0 pyhd8ed1ab_0 conda-forge zipp 3.8.0 pyhd8ed1ab_0 conda-forge zlib 1.2.11 h6c3fc93_1014 conda-forge zstd 1.5.2 h582d3a0_0 conda-forge ```
krassowski commented 2 years ago

And what is the path to the python file corresponding to this environment?

lukelbd commented 2 years ago

It's /Users/ldavis/miniconda3/bin/python (the base environment)

krassowski commented 2 years ago

What is the output of:

/Users/ldavis/miniconda3/bin/python -m jupyterlab --version

? This is equivalent of what https://github.com/jupyterlab/jupyterlab-desktop/blob/2ce9c04ae490a98af186ae0463e2fd4e3619ad5d/src/main/registry.ts#L319-L323 does

lukelbd commented 2 years ago

It's version 3.4.2.

krassowski commented 2 years ago

Let's try few more things.

https://github.com/jupyterlab/jupyterlab-desktop/blob/2ce9c04ae490a98af186ae0463e2fd4e3619ad5d/src/main/registry.ts#L419

adds extra paths to PATH. I am assuming that you are NOT using Windows, is it correct? If so, what about:

PATH="/Users/ldavis/miniconda3/bin/:/Users/ldavis/miniconda3/bin/bin:$PATH" /Users/ldavis/miniconda3/bin/python -m jupyterlab --version

(let's hope there is no typo, it's basically supposed to reproduce how https://github.com/jupyterlab/jupyterlab-desktop/blob/2ce9c04ae490a98af186ae0463e2fd4e3619ad5d/src/main/registry.ts#L943 modifies the path before getting the version).

lukelbd commented 2 years ago

That gives the same result (/Users/ldavis/miniconda3/bin/ is already in $PATH). It's macOS.

krassowski commented 2 years ago

Thank you for all the help. Looking further at the code, there is also this check:

https://github.com/jupyterlab/jupyterlab-desktop/blob/2ce9c04ae490a98af186ae0463e2fd4e3619ad5d/src/main/registry.ts#L313-L316

fs.existsSync could return false if the path is not properly expanded, e.g. if your file picker returns ~/miniconda3/bin/ instead of /Users/ldavis/miniconda3/bin/. I am not sure about this. To be 100% positive it would help if you could confirm what exactly does the error dialog say (is the path there expended or not?).

lukelbd commented 2 years ago

Yep it's expanded in the error message (and when I select it)

krassowski commented 2 years ago

Maybe we are looking in a wrong place. Maybe it is something specifically about conda environments? That could be related to: https://github.com/jupyterlab/jupyterlab-desktop/pull/425 ?

lukelbd commented 2 years ago

Could be, although that PR was merged before the latest release.

krassowski commented 2 years ago

I tried with miniconda installed locally and could not reproduce it (but I do not have a mac available). If you start JupterLab Desktop from terminal using jlab command, is there anything printed out when you try to change the environment to miniconda?

Anything in logs (~/Library/Logs/jupyterlab-desktop/renderer.log- and ~/Library/Logs/jupyterlab-desktop/renderer.log)?

JackieMium commented 2 years ago

Hi. I upgraded from jupyterlab-app (3.1.12-1) to jupyterlab-desktop (3.3.4-2) on my Debian Linux laptop and got this error too.

Set Python Environment
Failed to find a compatible Python environment at the configured path "/home/adam/.config/jupyterlab-desktop/jlab_server/bin/python". Environment Python package requirements are: jupyterlab >=3.1.0.

I ran mv ~/.config/jupyterlab_app{,.bak} after removing jupyterlab-app (3.1.12-1). I am trying to use a conda env Python3 too. conda is alreay in my PATH, which can be confirmed by running conda activate sklearn-env to get a working python 3.9.13 env.

I tried launching in a terminal with /opt/JupyterLab/jupyterlab-desktop command after I activated the conda Python3 env but the same error persisted. This is ~/.config/jupyterlab-desktop/logs/main.log :

[2022-08-04 18:17:42.927] [info]  In production mode
[2022-08-04 18:17:42.931] [info]  Logging to file (/home/adam/.config/jupyterlab-desktop/logs/main.log) at 'false' level
[2022-08-04 18:17:42.994] [error] (node:790120) DeprecationWarning: findLogPath() is deprecated and will be removed in v5.
(Use `jupyterlab-desktop --trace-deprecation ...` to show where the warning was created)
[2022-08-04 18:19:48.776] [error] Failed to check for updates: FetchError: request to https://github.com/jupyterlab/jupyterlab-desktop/releases/latest/download/latest.yml failed, reason: socket hang up
    at ClientRequest.<anonymous> (/opt/JupyterLab/resources/app.asar/node_modules/node-fetch/lib/index.js:1491:11)
    at ClientRequest.emit (node:events:394:28)
    at TLSSocket.socketOnEnd (node:_http_client:471:9)
    at TLSSocket.emit (node:events:406:35)
    at endReadableNT (node:internal/streams/readable:1331:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
[2022-08-04 18:32:37.702] [info]  In production mode
[2022-08-04 18:32:37.704] [info]  Logging to file (/home/adam/.config/jupyterlab-desktop/logs/main.log) at 'false' level
[2022-08-04 18:32:37.756] [error] (node:791112) DeprecationWarning: findLogPath() is deprecated and will be removed in v5.
(Use `jupyterlab-desktop --trace-deprecation ...` to show where the warning was created)
[2022-08-04 18:32:38.927] [error] (node:791112) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, scandir '/home/adam/Programs/miniconda3/envs/sklearn-env/envs'
[2022-08-04 18:32:38.927] [error] (node:791112) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which
 was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
[2022-08-04 18:34:43.656] [error] Failed to check for updates: FetchError: request to https://github.com/jupyterlab/jupyterlab-desktop/releases/download/v3.3.4-2/latest.yml failed, reason: socket hang up
    at ClientRequest.<anonymous> (/opt/JupyterLab/resources/app.asar/node_modules/node-fetch/lib/index.js:1491:11)
    at ClientRequest.emit (node:events:394:28)
    at TLSSocket.socketOnEnd (node:_http_client:471:9)
    at TLSSocket.emit (node:events:406:35)
    at endReadableNT (node:internal/streams/readable:1331:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
[2022-08-04 18:36:49.413] [info]  In production mode
[2022-08-04 18:36:49.416] [info]  Logging to file (/home/adam/.config/jupyterlab-desktop/logs/main.log) at 'false' level
[2022-08-04 18:36:49.472] [error] (node:791429) DeprecationWarning: findLogPath() is deprecated and will be removed in v5.
(Use `jupyterlab-desktop --trace-deprecation ...` to show where the warning was created)
[2022-08-04 18:38:55.664] [error] Failed to check for updates: FetchError: request to https://github.com/jupyterlab/jupyterlab-desktop/releases/download/v3.3.4-2/latest.yml failed, reason: socket hang up
    at ClientRequest.<anonymous> (/opt/JupyterLab/resources/app.asar/node_modules/node-fetch/lib/index.js:1491:11)
    at ClientRequest.emit (node:events:394:28)
    at TLSSocket.socketOnEnd (node:_http_client:471:9)
    at TLSSocket.emit (node:events:406:35)
    at endReadableNT (node:internal/streams/readable:1331:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

See the line

[2022-08-04 18:32:38.927] [error] (node:791112) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, scandir '/home/adam/Programs/miniconda3/envs/sklearn-env/envs'

It's definitely looking for the wrong thing, where I was told to choose a the path to python (in my case /home/adam/Programs/miniconda3/envs/sklearn-env/bin/python3), but it's somehow looking for a env? I may have to set /home/adam/Programs/miniconda3/envs/ at Use a custom Python environment but it won't let me choose a path to a dir. Help this helps.

USDSOM commented 2 years ago

I am on Mac OS Here is the behavior I experienced: after putting in the anaconda path for Use Custom Python Environment it came back with the message that it did not find python in the default path. But I asked it to use the custom path! So I gave up and created an alias (not a symbolic link) in the default path to where anaconda python was installed, and everything went smoothly. I don't remember if I still checked the 'Use Custom Python Environment' or not. default path: /Users/user_name/Library/jupyterlab-desktop/jlab_server/bin/python anaconda path:/Users/user_name/opt/anaconda3/bin/python

massisenergy commented 2 years ago

This might not be relevant, but I was facing similar issue (M1Pro, macOS 13). I circumvent this by uninstalling python (originally installed using homebrew), then installing it from scratch using -

  1. pyenv
  2. python using pyenv
  3. jupyterlab using brew

You can find the instructions here: How to install Jupyter Notebook on Mac using Homebrew

PS: I didn't want to install another package/version manager (such as conda) in addition to homebrew.

mmangione commented 2 years ago

Can also confirm that this is similarly broken on M1 Pro. It is impossible to switch environments from conda to pip. The system never recognizes my virtualenv with jupyterlab installed. It works just fine on my Intel Mac Mini.

I cannot use Jupyter Desktop at all since Conda is a nonviable environment for us.

Jupyter installed via homebrew, using the instructions above, works.

krassowski commented 2 years ago

For anyone else facing this, please make sure that you do not have a directory named jupyterlab or file named jupyterlab.py (or jupyterlab_server, or jupyter_server) in the home directory or another place from which you attempt to run JupyterLab Desktop. Please leave a thumps up if this advice was relevant.

mmangione commented 2 years ago

Interesting. Not the problem that I am having. But, interesting solution.

I upgraded to Jupyter Desktop 3.4.5-1 and this problem is still present in this version.

krassowski commented 2 years ago

Thank you everyone who chimed in. A likely fix for users of miniconda and miniforge is in https://github.com/jupyterlab/jupyterlab-desktop/pull/489.

JackieMium commented 2 years ago

Thank you everyone who chimed in. A likely fix for users of miniconda and miniforge is in #489.

Downloaded deb packgage from https://github.com/jupyterlab/jupyterlab-desktop/actions/runs/2986314246 , upgraded jupyterlab in conda to 3.4.5 pyhd8ed1ab_0, still the same. And yes I am using miniconda.

krassowski commented 2 years ago

Thank you for trying it out. Would you mind pasting the main process logs (paths are described in new bug issue template) and a little more information on your setup?

JackieMium commented 2 years ago

Thank you for trying it out. Would you mind pasting the main process logs (paths are described in new bug issue template) and a little more information on your setup?

Yes of course. I am running Debian GNU/Linux sid x86_64, miniconda with conda 4.10.3, python version 3.9.7.final.0, conda list:

# packages in environment at /home/adam/Programs/miniconda3/envs/sklearn
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
_py-xgboost-mutex         2.0                       cpu_0    defaults
anyio                     3.6.1            py39hf3d152e_0    conda-forge
argon2-cffi               21.3.0             pyhd3eb1b0_0    defaults
argon2-cffi-bindings      21.2.0           py39h7f8727e_0    defaults
asttokens                 2.0.5              pyhd3eb1b0_0    defaults
async_generator           1.10               pyhd3eb1b0_0    defaults
attrs                     21.4.0             pyhd3eb1b0_0    defaults
babel                     2.10.3             pyhd8ed1ab_0    conda-forge
backcall                  0.2.0              pyhd3eb1b0_0    defaults
beautifulsoup4            4.11.1           py39h06a4308_0    defaults
black                     22.3.0             pyhd8ed1ab_0    conda-forge
blas                      2.14                   openblas    conda-forge
bleach                    5.0.1              pyhd8ed1ab_0    conda-forge
bottleneck                1.3.4            py39hce1f21e_0    defaults
brotli                    1.0.9                he6710b0_2    defaults
brotlipy                  0.7.0           py39h27cfd23_1003    defaults
bzip2                     1.0.8                h7b6447c_0    defaults
c-ares                    1.18.1               h7f8727e_0    defaults
ca-certificates           2022.07.19           h06a4308_0    defaults
certifi                   2022.6.15        py39h06a4308_0    defaults
cffi                      1.15.0           py39hd667e15_1    defaults
charset-normalizer        2.0.12             pyhd8ed1ab_0    conda-forge
click                     8.1.3            py39hf3d152e_0    conda-forge
cloudpickle               2.1.0              pyhd8ed1ab_0    conda-forge
conda                     4.13.0           py39h06a4308_0    defaults
conda-package-handling    1.8.1            py39h7f8727e_0    defaults
cryptography              37.0.2           py39hd97740a_0    conda-forge
cycler                    0.11.0             pyhd3eb1b0_0    defaults
daal4py                   2021.5.0         py39h78b71dc_0    defaults
dal                       2021.5.1           h06a4308_803    defaults
dataclasses               0.8                pyh6d0b6a4_7    defaults
dbus                      1.13.18              hb2f20db_0    defaults
debugpy                   1.6.0            py39h5a03fae_0    conda-forge
decorator                 5.1.1              pyhd3eb1b0_0    defaults
defusedxml                0.7.1              pyhd3eb1b0_0    defaults
descartes                 1.1.0              pyhd3eb1b0_4    defaults
entrypoints               0.4              py39h06a4308_0    defaults
executing                 0.8.3              pyhd3eb1b0_0    defaults
expat                     2.4.8                h27087fc_0    conda-forge
fontconfig                2.14.0               h8e229c2_0    conda-forge
fonttools                 4.33.3           py39hb9d737c_0    conda-forge
freetype                  2.11.0               h70c0345_0    defaults
gettext                   0.21.0               hf68c758_0    defaults
giflib                    5.2.1                h7b6447c_0    defaults
glib                      2.70.2               h780b84a_4    conda-forge
glib-tools                2.70.2               h780b84a_4    conda-forge
gst-plugins-base          1.14.0               h8213a91_2    defaults
gstreamer                 1.14.0               h28cd5cc_2    defaults
icu                       58.2                 he6710b0_3    defaults
idna                      3.3                pyhd3eb1b0_0    defaults
importlib-metadata        4.11.4           py39hf3d152e_0    conda-forge
importlib_metadata        4.11.4               hd8ed1ab_0    conda-forge
importlib_resources       5.8.0              pyhd8ed1ab_0    conda-forge
intel-openmp              2022.0.1          h06a4308_3633    defaults
ipykernel                 6.15.0             pyh210e3f2_0    conda-forge
ipython                   8.4.0            py39hf3d152e_0    conda-forge
ipython_genutils          0.2.0              pyhd3eb1b0_1    defaults
ipywidgets                7.7.1              pyhd8ed1ab_0    conda-forge
jbig                      2.1                  hdba287a_0    defaults
jedi                      0.18.1           py39h06a4308_1    defaults
jinja2                    3.1.2              pyhd8ed1ab_1    conda-forge
joblib                    1.1.0              pyhd3eb1b0_0    defaults
jpeg                      9e                   h7f8727e_0    defaults
json5                     0.9.6              pyhd3eb1b0_0    defaults
jsonschema                4.6.0              pyhd8ed1ab_0    conda-forge
jupyter                   1.0.0            py39h06a4308_7    defaults        
jupyter_client            7.3.4              pyhd8ed1ab_0    conda-forge     
jupyter_console           6.4.4              pyhd8ed1ab_0    conda-forge     
jupyter_contrib_core      0.3.3                      py_2    conda-forge     
jupyter_contrib_nbextensions 0.5.1              pyhd8ed1ab_2    conda-forge  
jupyter_core              4.10.0           py39h06a4308_0    defaults        
jupyter_highlight_selected_word 0.2.0           py39hf3d152e_1005    conda-fo
jupyter_latex_envs        1.4.6           pyhd8ed1ab_1002    conda-forge     
jupyter_nbextensions_configurator 0.4.1            py39hf3d152e_2    conda-fo
jupyter_server            1.18.1           py39h06a4308_0    defaults        
jupyterlab                3.4.5              pyhd8ed1ab_0    conda-forge
jupyterlab_pygments       0.2.2              pyhd8ed1ab_0    conda-forge
jupyterlab_server         2.15.0             pyhd8ed1ab_0    conda-forge
jupyterlab_widgets        1.1.1              pyhd8ed1ab_0    conda-forge
keyutils                  1.6.1                h166bdaf_0    conda-forge
kiwisolver                1.4.3            py39hf939315_0    conda-forge
krb5                      1.19.3               h3790be6_0    conda-forge
lcms2                     2.12                 h3be6417_0    defaults
ld_impl_linux-64          2.38                 h1181459_1    defaults
lerc                      3.0                  h295c915_0    defaults
libarchive                3.5.2                h5de8990_0    defaults
libblas                   3.8.0               14_openblas    conda-forge
libcblas                  3.8.0               14_openblas    conda-forge
libcurl                   7.83.1               h7bff187_0    conda-forge
libdeflate                1.12                 h166bdaf_0    conda-forge
libedit                   3.1.20210910         h7f8727e_0    defaults
libev                     4.33                 h7f8727e_1    defaults
libffi                    3.4.2                h295c915_4    defaults
libgcc-ng                 12.1.0              h8d9b700_16    conda-forge
libgfortran-ng            7.5.0               ha8ba4b0_17    defaults
libgfortran4              7.5.0               ha8ba4b0_17    defaults
libglib                   2.70.2               h174f98d_4    conda-forge
libgomp                   12.1.0              h8d9b700_16    conda-forge
libiconv                  1.16                 h7f8727e_2    defaults
liblapack                 3.8.0               14_openblas    conda-forge
liblapacke                3.8.0               14_openblas    conda-forge
libllvm11                 11.1.0               h3826bc1_1    defaults
libmamba                  0.24.0               hd8a31e3_1    conda-forge
libmambapy                0.24.0           py39hd55135b_1    conda-forge
libnghttp2                1.47.0               h727a467_0    conda-forge
libnsl                    2.0.0                h7f98852_0    conda-forge
libopenblas               0.3.7                h5ec1e0e_6    conda-forge
libpng                    1.6.37               hbc83047_0    defaults              
libpq                     14.4                 hd77ab85_0    conda-forge           
libsodium                 1.0.18               h7b6447c_0    defaults              
libsolv                   0.7.22               h6239696_0    conda-forge
libssh2                   1.10.0               h8f2d780_0    defaults
libstdcxx-ng              12.1.0              ha89aaad_16    conda-forge
libtiff                   4.4.0                hc85c160_1    conda-forge
libuuid                   2.32.1            h7f98852_1000    conda-forge
libwebp                   1.2.2                h55f646e_0    defaults
libwebp-base              1.2.2                h7f8727e_0    defaults
libxcb                    1.15                 h7f8727e_0    defaults
libxgboost                1.5.1            cpu_h3d145d1_2    conda-forge
libxml2                   2.9.14               h74e7548_0    defaults
libxslt                   1.1.35               h4e12654_0    defaults
libzlib                   1.2.12               h166bdaf_1    conda-forge
lime                      0.2.0.1            pyh9f0ad1d_0    conda-forge
llvmlite                  0.38.1           py39h7d9a04d_0    conda-forge
lxml                      4.9.0            py39hb9d737c_0    conda-forge
lz4-c                     1.9.3                h295c915_1    defaults
lzo                       2.10                 h7b6447c_2    defaults
mamba                     0.24.0           py39hfa8f2c8_1    conda-forge
markupsafe                2.1.1            py39h7f8727e_0    defaults
matplotlib                3.5.2            py39hf3d152e_0    conda-forge
matplotlib-base           3.5.2            py39h700656a_0    conda-forge
matplotlib-inline         0.1.3              pyhd8ed1ab_0    conda-forge
missingno                 0.4.2              pyhd3eb1b0_1    defaults
mistune                   0.8.4           py39h27cfd23_1000    defaults
mizani                    0.7.4              pyhd8ed1ab_0    conda-forge
mkl                       2022.0.1           h06a4308_117    defaults
mkl-service               2.4.0            py39h404a4ab_0    conda-forge
mkl_fft                   1.3.1            py39h1fd5c3a_3    conda-forge
mkl_random                1.2.2            py39h8b66066_1    conda-forge
mpi                       1.0                       mpich    defaults
mpich                     3.3.2                hc856adb_0    defaults
munkres                   1.1.4                      py_0    defaults
mypy_extensions           0.4.3            py39h06a4308_1    defaults
nbclassic                 0.4.3              pyhd8ed1ab_0    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                   
ncurses                   6.3                  h7f8727e_2    defaults                      
nest-asyncio              1.5.5            py39h06a4308_0    defaults                      
notebook                  6.4.12             pyha770c72_0    conda-forge                   
notebook-shim             0.1.0              pyhd8ed1ab_0    conda-forge                   
numba                     0.55.2           py39h66db6d7_0    conda-forge                   
numexpr                   2.8.1            py39hecfb737_0    defaults                      
numpy                     1.22.3           py39h7a5d4dd_0    defaults                      
numpy-base                1.22.3           py39hb8be1f0_0    defaults                      
olefile                   0.46               pyhd3eb1b0_0    defaults                      
openssl                   1.1.1q               h7f8727e_0    defaults                      
packaging                 21.3               pyhd3eb1b0_0    defaults                      
palettable                3.3.0              pyhd3eb1b0_0    defaults                      
pandas                    1.4.3            py39h1832856_0    conda-forge                   
pandoc                    2.18                 ha770c72_0    conda-forge                   
pandocfilters             1.5.0              pyhd3eb1b0_0    defaults                      
parso                     0.8.3              pyhd3eb1b0_0    defaults                      
pathspec                  0.9.0              pyhd8ed1ab_0    conda-forge                   
patsy                     0.5.2            py39h06a4308_1    defaults                      
pcre                      8.45                 h295c915_0    defaults                      
pexpect                   4.8.0              pyhd3eb1b0_3    defaults                      
pickleshare               0.7.5           pyhd3eb1b0_1003    defaults                      
pillow                    9.0.1            py39h22f2fdc_0    defaults                      
pip                       22.1.2             pyhd8ed1ab_0    conda-forge                   
platformdirs              2.5.1              pyhd8ed1ab_0    conda-forge                   
plotnine                  0.8.0              pyhd8ed1ab_0    conda-forge                   
prometheus_client         0.14.1             pyhd8ed1ab_0    conda-forge                   
prompt-toolkit            3.0.30             pyha770c72_0    conda-forge                   
prompt_toolkit            3.0.30               hd8ed1ab_0    conda-forge                   
psutil                    5.9.1            py39hb9d737c_0    conda-forge                   
psycopg2                  2.9.3            py39h3811e60_0    conda-forge                   
ptyprocess                0.7.0              pyhd3eb1b0_2    defaults                      
pure_eval                 0.2.2              pyhd3eb1b0_0    defaults                      
py-xgboost                1.5.1           cpu_py39h4655687_2    conda-forge                
pybind11-abi              4                    hd8ed1ab_3    conda-forge        
pycosat                   0.6.3            py39h27cfd23_0    defaults           
pycparser                 2.21               pyhd3eb1b0_0    defaults           
pygments                  2.12.0             pyhd8ed1ab_0    conda-forge
pyopenssl                 22.0.0             pyhd3eb1b0_0    defaults
pyparsing                 3.0.9              pyhd8ed1ab_0    conda-forge
pyqt                      5.9.2            py39h2531618_6    defaults
pyrsistent                0.18.1           py39hb9d737c_1    conda-forge
pysocks                   1.7.1            py39h06a4308_0    defaults
python                    3.9.13          h9a8a25e_0_cpython    conda-forge
python-dateutil           2.8.2              pyhd3eb1b0_0    defaults
python-fastjsonschema     2.15.3             pyhd8ed1ab_0    conda-forge
python_abi                3.9                      2_cp39    conda-forge
pytz                      2022.1           py39h06a4308_0    defaults
pyyaml                    6.0              py39h7f8727e_1    defaults
pyzmq                     23.2.0           py39headdf64_0    conda-forge
qt                        5.9.7                h5867ecd_1    defaults
qtconsole                 5.3.1              pyhd8ed1ab_0    conda-forge
qtconsole-base            5.3.1              pyha770c72_0    conda-forge
qtpy                      2.1.0              pyhd8ed1ab_0    conda-forge
readline                  8.1.2                h7f8727e_1    defaults
reproc                    14.2.4               h295c915_1    defaults
reproc-cpp                14.2.4               h295c915_1    defaults
requests                  2.28.0             pyhd8ed1ab_1    conda-forge
ruamel_yaml               0.15.100         py39h27cfd23_0    defaults
scikit-learn              1.1.1            py39h4037b75_0    conda-forge
scikit-learn-intelex      2021.5.0         py39h06a4308_0    defaults
scipy                     1.7.3            py39h492baa0_0    defaults
seaborn                   0.11.2             pyhd3eb1b0_0    defaults
send2trash                1.8.0              pyhd3eb1b0_1    defaults
setuptools                62.6.0           py39hf3d152e_0    conda-forge
shap                      0.41.0           py39h1832856_0    conda-forge
sip                       4.19.13          py39h295c915_0    defaults
six                       1.16.0             pyhd3eb1b0_1    defaults
slicer                    0.0.7              pyhd3eb1b0_0    defaults
sniffio                   1.2.0            py39h06a4308_1    defaults
soupsieve                 2.3.1              pyhd3eb1b0_0    defaults
sqlite                    3.39.0               h4ff8645_0    conda-forge
stack_data                0.3.0              pyhd8ed1ab_0    conda-forge
statsmodels               0.13.2           py39h7f8727e_0    defaults
tableone                  0.7.10             pyhd3deb0d_0    conda-forge
tabulate                  0.8.10             pyhd8ed1ab_0    conda-forge
tbb                       2021.5.0             hd09550d_0    defaults
terminado                 0.15.0           py39hf3d152e_0    conda-forge
testpath                  0.6.0            py39h06a4308_0    defaults
threadpoolctl             3.1.0              pyh8a188c0_0    conda-forge
tinycss2                  1.1.1              pyhd8ed1ab_0    conda-forge
tk                        8.6.12               h1ccaba5_0    defaults
tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
tornado                   6.1              py39h27cfd23_0    defaults
tqdm                      4.64.0           py39h06a4308_0    defaults
traitlets                 5.3.0              pyhd8ed1ab_0    conda-forge
typed-ast                 1.5.4            py39hb9d737c_0    conda-forge
typing-extensions         4.2.0                hd8ed1ab_1    conda-forge
typing_extensions         4.2.0              pyha770c72_1    conda-forge
tzdata                    2022a                hda174b7_0    defaults
unicodedata2              14.0.0           py39hb9d737c_1    conda-forge
urllib3                   1.26.9           py39h06a4308_0    defaults
wcwidth                   0.2.5              pyhd3eb1b0_0    defaults
webencodings              0.5.1            py39h06a4308_1    defaults
websocket-client          1.3.3              pyhd8ed1ab_0    conda-forge
wheel                     0.37.1             pyhd3eb1b0_0    defaults
widgetsnbextension        3.6.1              pyha770c72_0    conda-forge
xgboost                   1.5.1           cpu_py39h4655687_2    conda-forge
xz                        5.2.5                h7f8727e_1    defaults
yaml                      0.2.5                h7b6447c_0    defaults
yaml-cpp                  0.7.0                h295c915_1    defaults
zeromq                    4.3.4                h2531618_0    defaults
zipp                      3.8.0            py39h06a4308_0    defaults
zlib                      1.2.12               h166bdaf_1    conda-forge
zstd                      1.5.2                ha4553b6_0    defaults

~/.config/jupyterlab-desktop/logs/main.log : https://paste.gg/p/anonymous/f2195fb0f31e48a9a60f0507f7ee6a1d/files/7c04350b34c44be29a1086abc2476651/raw

Hope this helps.

krassowski commented 2 years ago

Thank you @JackieMium! The fix for the error we saw earlier works:

[2022-09-05 20:11:09.488] [warn]  No sub-environments in root: /home/adam/Programs/miniconda3/envs/sklearn-env

I wonder why it says /home/adam/Programs/miniconda3/envs/sklearn-env whereas you conda list say it is /home/adam/Programs/miniconda3/envs/sklearn?

Would you mind running /home/adam/Programs/miniconda3/bin/conda info --json and letting us know what is the root_prefix path returned and relevant "envs"?

mmangione commented 2 years ago

@krassowski Where do I find my similar logs for MacOS?

JackieMium commented 2 years ago

Thank you @JackieMium! The fix for the error we saw earlier works:

[2022-09-05 20:11:09.488] [warn]  No sub-environments in root: /home/adam/Programs/miniconda3/envs/sklearn-env

I wonder why it says /home/adam/Programs/miniconda3/envs/sklearn-env whereas you conda list say it is /home/adam/Programs/miniconda3/envs/sklearn?

Would you mind running /home/adam/Programs/miniconda3/bin/conda info --json and letting us know what is the root_prefix path returned and relevant "envs"?

Oh I am really sorry, it was a small mistake when I copy-paste, conda list did report

# packages in environment at /home/adam/Programs/miniconda3/envs/sklearn-env:

and here is the part about envs from conda info --json output:

...
 "default_prefix": "/home/adam/Programs/miniconda3/envs/sklearn-env",
 "env_vars": {
   "CIO_TEST": "<not set>",
   "CONDA_DEFAULT_ENV": "sklearn-env",
   "CONDA_EXE": "/home/adam/Programs/miniconda3/bin/conda",
   "CONDA_PREFIX": "/home/adam/Programs/miniconda3/envs/sklearn-env",
   "CONDA_PROMPT_MODIFIER": "(sklearn-env) ",
   "CONDA_PYTHON_EXE": "/home/adam/Programs/miniconda3/bin/python",
   "CONDA_ROOT": "/home/adam/Programs/miniconda3",
   "CONDA_SHLVL": "1",
   "CURL_CA_BUNDLE": "<not set>",
   "PATH": "/home/adam/Programs/miniconda3/bin:/home/adam/Programs/miniconda3/envs/sklearn-env/bin:/home/adam/Programs/miniconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games",
   "REQUESTS_CA_BUNDLE": "<not set>",
   "SSL_CERT_FILE": "<not set>",
   "XDG_SEAT_PATH": "/org/freedesktop/DisplayManager/Seat0",
   "XDG_SESSION_PATH": "/org/freedesktop/DisplayManager/Session0"
 },
 "envs": [
   "/home/adam/Programs/miniconda3",
   "/home/adam/Programs/miniconda3/envs/r-reticulate",
   "/home/adam/Programs/miniconda3/envs/r-reticulate/envs/r-reticulate",
   "/home/adam/Programs/miniconda3/envs/sklearn-env"
 ],
 "envs_dirs": [
   "/home/adam/Programs/miniconda3/envs",
   "/home/adam/.conda/envs"
 ],
...
JackieMium commented 2 years ago

@krassowski Where do I find my similar logs for MacOS?

Refer to the new issue template, I believe on macOS the log file should be ~/Library/Logs/jupyterlab-desktop/main.log

krassowski commented 2 years ago

For completness, does it have root_prefix section?

ruczhangxy commented 1 year ago

I'm having the same problem with Jupyterlab desktop version 3.4.6-1 and found a somewhat more elegant workaround(My custom python path is /usr/local/bin/python3 ):

  1. mkdir -p /Users/my_user_name/Library/jupyterlab-desktop/jlab_server/
  2. cd /Users/my_user_name/Library/jupyterlab-desktop/jlab_server/
  3. ln -s /usr/local/bin .
  4. ln -s python3 python

So basically I'm just soft linking the custom python bin path to the place jupyterlab desktop is looking for. Hope this helps.

hardkrash commented 1 year ago

I just hit something similar with a virtualenv environment on first install. I had to install the bundled environment first, then I could switch to the custom environment.

orbanbalage commented 1 year ago

I guess my environment/PATH was messed up, I did not have any python in the PATH and many versions in brew but only as kegs. I'd assume manually supplying the bin location should work nevertheless, but at lest this was a good incentive to clean up my environment.

I've installed pyenv via brew, and then installed python 3.10.7, switched to it via. pyenv, installed jupyterlab into it via. pip and started jlab again.

➜  ~ jlab --verbose 4
➜  ~ 
zsh: error on TTY read: Input/output error

Saving session...completed.

[Process completed]

I had to select Use a custom Python environment still, but when I click Apply & Restart, the terminal gets an I/O error, and the newly started jlab greets me with the same screen (ie. the custom environment that I supplied does not work).

Not sure how to debug further.

main.log

JackieMium commented 1 year ago

Problem persist here too.

I start up J-Lab app from terminal and select /home/adam/Programs/miniconda3/envs/sklearn-env/bin/python as my python env, it reports:

image

and there is from terminal:

% ls -l /home/adam/Programs/miniconda3/envs/sklearn-env/bin/python
lrwxrwxrwx 1 adam 9 2023-01-26 15:57 /home/adam/Programs/miniconda3/envs/sklearn-env/bin/python -> python3.9*

% jlab
Traceback (most recent call last):                                                                                                                                                                                                       
  File "/home/adam/Programs/miniconda3/envs/sklearn-env/lib/python3.9/runpy.py", line 188, in _run_module_as_main                                                                                                                        
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)                                                                                                                                                                     
  File "/home/adam/Programs/miniconda3/envs/sklearn-env/lib/python3.9/runpy.py", line 147, in _get_module_details                                                                                                                        
    return _get_module_details(pkg_main_name, error)                                                                                                                                                                                     
  File "/home/adam/Programs/miniconda3/envs/sklearn-env/lib/python3.9/runpy.py", line 111, in _get_module_details                                                                                                                        
    __import__(pkg_name)                                                                                                                                                                                                                 
  File "/home/adam/.local/lib/python3.9/site-packages/jupyterlab/__init__.py", line 7, in <module>                                                                                                                                       
    from .labapp import LabApp                                                                                                                                                                                                           
  File "/home/adam/.local/lib/python3.9/site-packages/jupyterlab/labapp.py", line 21, in <module>                                                                                                                                        
    from nbclassic.shim import NBClassicConfigShimMixin                                                                                                                                                                                  
  File "/home/adam/.local/lib/python3.9/site-packages/nbclassic/__init__.py", line 1, in <module>                                                                                                                                        
    from .notebookapp import NotebookApp                                                                                                                                                                                                 
  File "/home/adam/.local/lib/python3.9/site-packages/nbclassic/notebookapp.py", line 20, in <module>                                                                                                                                    
    from notebook import (                                                                                                                                                                                                               
ImportError: cannot import name 'DEFAULT_STATIC_FILES_PATH' from 'notebook' (/home/adam/Programs/miniconda3/envs/sklearn-env/lib/python3.9/site-packages/notebook/__init__.py)  
krassowski commented 1 year ago

It looks like that environment includes an old copy of notebook package which is incompatible with jupyterlab 3.x. Would you be able to upgrade it in that environment?

JackieMium commented 1 year ago

@krassowski I am not sure. If I try to remove notebook 6.5.2, jupyter and jupyterlab packages will be automatically removed.

JackieMium commented 1 year ago

Pinned down what went wrong finally. I notice from the output that jlab is looking for packages at my user local package directory /home/adam/.local/lib/python3.9/site-packages/. However, in this case I am running a conda environment, hence jlab should first look for packages in my conda env, which is at /home/adam/Programs/miniconda3/envs/sklearn-env/pkgs. So I removed /home/adam/.local/lib/python3.9/site-packages/ dir and then launch jlab from terminal, select my conda python, all is fine. Is this considered a bug where jlab ignores conda env and look for python packages at user home dir first?

mbektas commented 1 year ago

@JackieMium can you retry with the latest version? There has been several updates to custom environment activation.

mbektas commented 11 months ago

closing since no response for long time. please create a new issue after trying with the latest if needed.