jupyterlab / extension-examples

JupyterLab Extensions by Examples
BSD 3-Clause "New" or "Revised" License
454 stars 167 forks source link

Installation fails for `hello-world` and others. #192

Closed ibdafna closed 2 years ago

ibdafna commented 2 years ago

Description

Running pip install -ve . in any of the examples folders results in an error

Reproduce

mamba create -n jlabext2 python jupyter notebook jupyterlab yarn -c conda-forge
conda activate jlabext2
cd hello-world
pip install -ve .

Expected behavior

I would expect the installation to succeed.

Context

Running on Ubuntu 18.04. Here is a snapshop of my environment:

(jlabext2) idafna ~/dev/extension-examples/hello-world master [] $ conda list
# packages in environment at /home/idafna/micromamba/envs/jlabext2:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       1_gnu    conda-forge
alsa-lib                  1.2.3                h516909a_0    conda-forge
argon2-cffi               21.3.0                   pypi_0    pypi
argon2-cffi-bindings      21.2.0                   pypi_0    pypi
asttokens                 2.0.5                    pypi_0    pypi
attrs                     21.4.0                   pypi_0    pypi
backcall                  0.2.0                    pypi_0    pypi
backports                 1.0                        py_2    conda-forge
backports-functools-lru-cache 1.6.4                    pypi_0    pypi
backports.functools_lru_cache 1.6.4              pyhd8ed1ab_0    conda-forge
beautifulsoup4            4.11.1                   pypi_0    pypi
bleach                    5.0.0                    pypi_0    pypi
bzip2                     1.0.8                h7f98852_4    conda-forge
ca-certificates           2021.10.8            ha878542_0    conda-forge
cffi                      1.15.0                   pypi_0    pypi
dbus                      1.13.6               h5008d03_3    conda-forge
debugpy                   1.6.0                    pypi_0    pypi
decorator                 5.1.1                    pypi_0    pypi
defusedxml                0.7.1                    pypi_0    pypi
entrypoints               0.4                      pypi_0    pypi
executing                 0.8.3                    pypi_0    pypi
expat                     2.4.8                h27087fc_0    conda-forge
fastjsonschema            2.15.3                   pypi_0    pypi
flit-core                 3.7.1                    pypi_0    pypi
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               h8e229c2_0    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
freetype                  2.10.4               h0708190_1    conda-forge
gettext                   0.19.8.1          h73d1719_1008    conda-forge
gst-plugins-base          1.20.1               hcf0ee16_1    conda-forge
gstreamer                 1.20.1               hd4edc92_1    conda-forge
icu                       69.1                 h9c3ff4c_0    conda-forge
importlib-metadata        4.11.3                   pypi_0    pypi
importlib-resources       5.7.1                    pypi_0    pypi
importlib_resources       5.7.1              pyhd8ed1ab_0    conda-forge
ipykernel                 6.13.0                   pypi_0    pypi
ipython                   8.2.0                    pypi_0    pypi
ipython-genutils          0.2.0                    pypi_0    pypi
ipython_genutils          0.2.0                      py_1    conda-forge
ipywidgets                7.7.0                    pypi_0    pypi
jedi                      0.18.1                   pypi_0    pypi
jinja2                    3.1.1                    pypi_0    pypi
jpeg                      9e                   h166bdaf_1    conda-forge
json5                     0.9.5                    pypi_0    pypi
jsonschema                4.4.0                    pypi_0    pypi
jupyter                   1.0.0                    pypi_0    pypi
jupyter-client            7.2.2                    pypi_0    pypi
jupyter-console           6.4.3                    pypi_0    pypi
jupyter-core              4.9.2                    pypi_0    pypi
jupyter_client            7.2.2              pyhd8ed1ab_1    conda-forge
jupyter_console           6.4.3              pyhd8ed1ab_0    conda-forge
jupyter_core              4.9.2           py310hff52083_0    conda-forge
jupyterlab                2.1.0                    pypi_0    pypi
jupyterlab-examples-hello-world 0.1.0                     dev_0    <develop>
jupyterlab-pygments       0.2.2                    pypi_0    pypi
jupyterlab-server         1.0.9                    pypi_0    pypi
jupyterlab-widgets        1.1.0                    pypi_0    pypi
jupyterlab_pygments       0.2.2              pyhd8ed1ab_0    conda-forge
jupyterlab_server         1.0.9                      py_0    conda-forge
jupyterlab_widgets        1.1.0              pyhd8ed1ab_0    conda-forge
keyutils                  1.6.1                h166bdaf_0    conda-forge
krb5                      1.19.3               h08a2579_0    conda-forge
ld_impl_linux-64          2.36.1               hea4e1c9_2    conda-forge
libclang                  13.0.1          default_hc23dcda_0    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libevent                  2.1.10               h28343ad_4    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc-ng                 11.2.0              h1d223b6_15    conda-forge
libglib                   2.70.2               h174f98d_4    conda-forge
libgomp                   11.2.0              h1d223b6_15    conda-forge
libiconv                  1.16                 h516909a_0    conda-forge
libllvm13                 13.0.1               hf817b99_2    conda-forge
libnsl                    2.0.0                h7f98852_0    conda-forge
libogg                    1.3.4                h7f98852_1    conda-forge
libopus                   1.3.1                h7f98852_1    conda-forge
libpng                    1.6.37               h21135ba_2    conda-forge
libpq                     14.2                 h676c864_0    conda-forge
libsodium                 1.0.18               h36c2ea0_1    conda-forge
libstdcxx-ng              11.2.0              he4da1e4_15    conda-forge
libuuid                   2.32.1            h7f98852_1000    conda-forge
libuv                     1.43.0               h7f98852_0    conda-forge
libvorbis                 1.3.7                h9c3ff4c_0    conda-forge
libxcb                    1.13              h7f98852_1004    conda-forge
libxkbcommon              1.0.3                he3ba5ed_0    conda-forge
libxml2                   2.9.12               h885dcf4_1    conda-forge
libzlib                   1.2.11            h166bdaf_1014    conda-forge
lz4-c                     1.9.3                h9c3ff4c_1    conda-forge
markupsafe                2.1.1                    pypi_0    pypi
matplotlib-inline         0.1.3                    pypi_0    pypi
mistune                   0.8.4                    pypi_0    pypi
mysql-common              8.0.28               h26416b9_4    conda-forge
mysql-libs                8.0.28               hbc51c84_4    conda-forge
nbclient                  0.6.0                    pypi_0    pypi
nbconvert                 6.5.0                    pypi_0    pypi
nbconvert-core            6.5.0              pyhd8ed1ab_0    conda-forge
nbconvert-pandoc          6.5.0              pyhd8ed1ab_0    conda-forge
nbformat                  5.3.0                    pypi_0    pypi
ncurses                   6.3                  h27087fc_1    conda-forge
nest-asyncio              1.5.5                    pypi_0    pypi
nodejs                    17.8.0               hfba9c51_0    conda-forge
notebook                  6.4.11                   pypi_0    pypi
nspr                      4.32                 h9c3ff4c_1    conda-forge
nss                       3.77                 h2350873_0    conda-forge
openssl                   3.0.2                h166bdaf_1    conda-forge
packaging                 21.3                     pypi_0    pypi
pandoc                    2.18                 ha770c72_0    conda-forge
pandocfilters             1.5.0                    pypi_0    pypi
parso                     0.8.3                    pypi_0    pypi
pcre                      8.45                 h9c3ff4c_0    conda-forge
pexpect                   4.8.0                    pypi_0    pypi
pickleshare               0.7.5                    pypi_0    pypi
pip                       22.0.4                   pypi_0    pypi
prometheus-client         0.14.1                   pypi_0    pypi
prometheus_client         0.14.1             pyhd8ed1ab_0    conda-forge
prompt-toolkit            3.0.29                   pypi_0    pypi
prompt_toolkit            3.0.29               hd8ed1ab_0    conda-forge
psutil                    5.9.0                    pypi_0    pypi
pthread-stubs             0.4               h36c2ea0_1001    conda-forge
ptyprocess                0.7.0                    pypi_0    pypi
pure-eval                 0.2.2                    pypi_0    pypi
pure_eval                 0.2.2              pyhd8ed1ab_0    conda-forge
pycparser                 2.21                     pypi_0    pypi
pygments                  2.11.2                   pypi_0    pypi
pyparsing                 3.0.8                    pypi_0    pypi
pyqt                      5.12.3          py310hff52083_8    conda-forge
pyqt-impl                 5.12.3          py310h1f8e252_8    conda-forge
pyqt5                     5.12.3                   pypi_0    pypi
pyqt5-sip                 4.19.18                  pypi_0    pypi
pyqtchart                 5.12                     pypi_0    pypi
pyqtwebengine             5.12.1                   pypi_0    pypi
pyrsistent                0.18.1                   pypi_0    pypi
python                    3.10.4          h2660328_0_cpython    conda-forge
python-dateutil           2.8.2                    pypi_0    pypi
python-fastjsonschema     2.15.3             pyhd8ed1ab_0    conda-forge
python_abi                3.10                    2_cp310    conda-forge
pyzmq                     22.3.0                   pypi_0    pypi
qt                        5.12.9               h1304e3e_6    conda-forge
qtconsole                 5.3.0                    pypi_0    pypi
qtconsole-base            5.3.0              pyhd8ed1ab_0    conda-forge
qtpy                      2.0.1                    pypi_0    pypi
readline                  8.1                  h46c0cb4_0    conda-forge
send2trash                1.8.0                    pypi_0    pypi
setuptools                62.1.0                   pypi_0    pypi
six                       1.16.0                   pypi_0    pypi
soupsieve                 2.3.1                    pypi_0    pypi
sqlite                    3.38.2               h4ff8645_0    conda-forge
stack-data                0.2.0                    pypi_0    pypi
stack_data                0.2.0              pyhd8ed1ab_0    conda-forge
terminado                 0.13.3                   pypi_0    pypi
tinycss2                  1.1.1                    pypi_0    pypi
tk                        8.6.12               h27826a3_0    conda-forge
tornado                   6.1                      pypi_0    pypi
traitlets                 5.1.1                    pypi_0    pypi
tzdata                    2022a                h191b570_0    conda-forge
wcwidth                   0.2.5                    pypi_0    pypi
webencodings              0.5.1                    pypi_0    pypi
wheel                     0.37.1                   pypi_0    pypi
widgetsnbextension        3.6.0                    pypi_0    pypi
xorg-libxau               1.0.9                h7f98852_0    conda-forge
xorg-libxdmcp             1.1.3                h7f98852_0    conda-forge
xz                        5.2.5                h516909a_1    conda-forge
yarn                      1.22.18              ha770c72_0    conda-forge
zeromq                    4.3.4                h9c3ff4c_1    conda-forge
zipp                      3.8.0                    pypi_0    pypi
zlib                      1.2.11            h166bdaf_1014    conda-forge
zstd                      1.5.2                ha95c52a_0    conda-forge
(jlabext2) idafna ~/dev/extension-examples/hello-world master [] $ pip install -ve .
Using pip 22.0.4 from /home/idafna/micromamba/envs/jlabext2/lib/python3.10/site-packages/pip (python 3.10)
Obtaining file:///home/idafna/dev/extension-examples/hello-world
  Running command pip subprocess to install build dependencies
  Collecting jupyter_packaging<2,~=0.10
    Using cached jupyter_packaging-0.12.0-py2.py3-none-any.whl (25 kB)
  Collecting jupyterlab~=3.1
    Using cached jupyterlab-3.3.4-py3-none-any.whl (8.7 MB)
  Collecting deprecation
    Using cached deprecation-2.1.0-py2.py3-none-any.whl (11 kB)
  Collecting setuptools>=60.2.0
    Using cached setuptools-62.1.0-py3-none-any.whl (1.1 MB)
  Collecting packaging
    Using cached packaging-21.3-py3-none-any.whl (40 kB)
  Collecting wheel
    Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
  Collecting tomlkit
    Using cached tomlkit-0.10.1-py3-none-any.whl (34 kB)
  Collecting jinja2>=2.1
    Using cached Jinja2-3.1.1-py3-none-any.whl (132 kB)
  Collecting jupyterlab-server~=2.10
    Using cached jupyterlab_server-2.13.0-py3-none-any.whl (53 kB)
  Collecting jupyter-server~=1.4
    Using cached jupyter_server-1.16.0-py3-none-any.whl (343 kB)
  Collecting nbclassic~=0.2
    Using cached nbclassic-0.3.7-py3-none-any.whl (13 kB)
  Collecting jupyter-core
    Using cached jupyter_core-4.10.0-py3-none-any.whl (87 kB)
  Collecting ipython
    Using cached ipython-8.2.0-py3-none-any.whl (750 kB)
  Collecting tornado>=6.1.0
    Using cached tornado-6.1-cp310-cp310-linux_x86_64.whl
  Collecting MarkupSafe>=2.0
    Using cached MarkupSafe-2.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
  Collecting nbconvert>=6.4.4
    Using cached nbconvert-6.5.0-py3-none-any.whl (561 kB)
  Collecting jupyter-client>=6.1.12
    Using cached jupyter_client-7.2.2-py3-none-any.whl (130 kB)
  Collecting Send2Trash
    Using cached Send2Trash-1.8.0-py3-none-any.whl (18 kB)
  Collecting anyio>=3.1.0
    Using cached anyio-3.5.0-py3-none-any.whl (79 kB)
  Collecting websocket-client
    Using cached websocket_client-1.3.2-py3-none-any.whl (54 kB)
  Collecting argon2-cffi
    Using cached argon2_cffi-21.3.0-py3-none-any.whl (14 kB)
  Collecting prometheus-client
    Using cached prometheus_client-0.14.1-py3-none-any.whl (59 kB)
  Collecting terminado>=0.8.3
    Using cached terminado-0.13.3-py3-none-any.whl (14 kB)
  Collecting nbformat>=5.2.0
    Using cached nbformat-5.3.0-py3-none-any.whl (73 kB)
  Collecting pyzmq>=17
    Using cached pyzmq-22.3.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.1 MB)
  Collecting traitlets>=5.1.0
    Using cached traitlets-5.1.1-py3-none-any.whl (102 kB)
  Collecting babel
    Using cached Babel-2.10.1-py3-none-any.whl (9.5 MB)
  Collecting json5
    Using cached json5-0.9.6-py2.py3-none-any.whl (18 kB)
  Collecting requests
    Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB)
  Collecting jsonschema>=3.0.1
    Using cached jsonschema-4.4.0-py3-none-any.whl (72 kB)
  Collecting notebook-shim>=0.1.0
    Using cached notebook_shim-0.1.0-py3-none-any.whl (13 kB)
  Collecting notebook<7
    Using cached notebook-6.4.11-py3-none-any.whl (9.9 MB)
  Collecting pygments>=2.4.0
    Using cached Pygments-2.11.2-py3-none-any.whl (1.1 MB)
  Collecting decorator
    Using cached decorator-5.1.1-py3-none-any.whl (9.1 kB)
  Collecting jedi>=0.16
    Using cached jedi-0.18.1-py2.py3-none-any.whl (1.6 MB)
  Collecting pickleshare
    Using cached pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
  Collecting matplotlib-inline
    Using cached matplotlib_inline-0.1.3-py3-none-any.whl (8.2 kB)
  Collecting stack-data
    Using cached stack_data-0.2.0-py3-none-any.whl (21 kB)
  Collecting pexpect>4.3
    Using cached pexpect-4.8.0-py2.py3-none-any.whl (59 kB)
  Collecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0
    Using cached prompt_toolkit-3.0.29-py3-none-any.whl (381 kB)
  Collecting backcall
    Using cached backcall-0.2.0-py2.py3-none-any.whl (11 kB)
  Collecting pyparsing!=3.0.5,>=2.0.2
    Using cached pyparsing-3.0.8-py3-none-any.whl (98 kB)
  Collecting idna>=2.8
    Using cached idna-3.3-py3-none-any.whl (61 kB)
  Collecting sniffio>=1.1
    Using cached sniffio-1.2.0-py3-none-any.whl (10 kB)
  Collecting parso<0.9.0,>=0.8.0
    Using cached parso-0.8.3-py2.py3-none-any.whl (100 kB)
  Collecting attrs>=17.4.0
    Using cached attrs-21.4.0-py2.py3-none-any.whl (60 kB)
  Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0
    Using cached pyrsistent-0.18.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (115 kB)
  Collecting python-dateutil>=2.8.2
    Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
  Collecting nest-asyncio>=1.5.4
    Using cached nest_asyncio-1.5.5-py3-none-any.whl (5.2 kB)
  Collecting entrypoints
    Using cached entrypoints-0.4-py3-none-any.whl (5.3 kB)
  Collecting pandocfilters>=1.4.1
    Using cached pandocfilters-1.5.0-py2.py3-none-any.whl (8.7 kB)
  Collecting tinycss2
    Using cached tinycss2-1.1.1-py3-none-any.whl (21 kB)
  Collecting nbclient>=0.5.0
    Using cached nbclient-0.6.0-py3-none-any.whl (70 kB)
  Collecting mistune<2,>=0.8.1
    Using cached mistune-0.8.4-py2.py3-none-any.whl (16 kB)
  Collecting bleach
    Using cached bleach-5.0.0-py3-none-any.whl (160 kB)
  Collecting jupyterlab-pygments
    Using cached jupyterlab_pygments-0.2.2-py2.py3-none-any.whl (21 kB)
  Collecting defusedxml
    Using cached defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
  Collecting beautifulsoup4
    Using cached beautifulsoup4-4.11.1-py3-none-any.whl (128 kB)
  Collecting fastjsonschema
    Using cached fastjsonschema-2.15.3-py3-none-any.whl (22 kB)
  Collecting ipykernel
    Using cached ipykernel-6.13.0-py3-none-any.whl (131 kB)
  Collecting ipython-genutils
    Using cached ipython_genutils-0.2.0-py2.py3-none-any.whl (26 kB)
  Collecting ptyprocess>=0.5
    Using cached ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
  Collecting wcwidth
    Using cached wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
  Collecting argon2-cffi-bindings
    Using cached argon2_cffi_bindings-21.2.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (86 kB)
  Collecting pytz>=2015.7
    Using cached pytz-2022.1-py2.py3-none-any.whl (503 kB)
  Collecting charset-normalizer~=2.0.0
    Using cached charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
  Collecting certifi>=2017.4.17
    Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
  Collecting urllib3<1.27,>=1.21.1
    Using cached urllib3-1.26.9-py2.py3-none-any.whl (138 kB)
  Collecting asttokens
    Using cached asttokens-2.0.5-py2.py3-none-any.whl (20 kB)
  Collecting executing
    Using cached executing-0.8.3-py2.py3-none-any.whl (16 kB)
  Collecting pure-eval
    Using cached pure_eval-0.2.2-py3-none-any.whl (11 kB)
  Collecting six>=1.5
    Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
  Collecting cffi>=1.0.1
    Using cached cffi-1.15.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (446 kB)
  Collecting soupsieve>1.2
    Using cached soupsieve-2.3.2.post1-py3-none-any.whl (37 kB)
  Collecting webencodings
    Using cached webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
  Collecting psutil
    Using cached psutil-5.9.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (281 kB)
  Collecting debugpy>=1.0
    Using cached debugpy-1.6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.8 MB)
  Collecting pycparser
    Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
  Installing collected packages: webencodings, wcwidth, Send2Trash, pytz, pure-eval, ptyprocess, pickleshare, mistune, json5, ipython-genutils, fastjsonschema, executing, certifi, backcall, wheel, websocket-client, urllib3, traitlets, tornado, tomlkit, tinycss2, soupsieve, sniffio, six, setuptools, pyzmq, pyrsistent, pyparsing, pygments, pycparser, psutil, prompt-toolkit, prometheus-client, pexpect, parso, pandocfilters, nest-asyncio, MarkupSafe, jupyterlab-pygments, idna, entrypoints, defusedxml, decorator, debugpy, charset-normalizer, babel, attrs, terminado, requests, python-dateutil, packaging, matplotlib-inline, jupyter-core, jsonschema, jinja2, jedi, cffi, bleach, beautifulsoup4, asttokens, anyio, stack-data, nbformat, jupyter-client, deprecation, argon2-cffi-bindings, nbclient, jupyter_packaging, ipython, argon2-cffi, nbconvert, ipykernel, notebook, jupyter-server, notebook-shim, jupyterlab-server, nbclassic, jupyterlab
  Successfully installed MarkupSafe-2.1.1 Send2Trash-1.8.0 anyio-3.5.0 argon2-cffi-21.3.0 argon2-cffi-bindings-21.2.0 asttokens-2.0.5 attrs-21.4.0 babel-2.10.1 backcall-0.2.0 beautifulsoup4-4.11.1 bleach-5.0.0 certifi-2021.10.8 cffi-1.15.0 charset-normalizer-2.0.12 debugpy-1.6.0 decorator-5.1.1 defusedxml-0.7.1 deprecation-2.1.0 entrypoints-0.4 executing-0.8.3 fastjsonschema-2.15.3 idna-3.3 ipykernel-6.13.0 ipython-8.2.0 ipython-genutils-0.2.0 jedi-0.18.1 jinja2-3.1.1 json5-0.9.6 jsonschema-4.4.0 jupyter-client-7.2.2 jupyter-core-4.10.0 jupyter-server-1.16.0 jupyter_packaging-0.12.0 jupyterlab-3.3.4 jupyterlab-pygments-0.2.2 jupyterlab-server-2.13.0 matplotlib-inline-0.1.3 mistune-0.8.4 nbclassic-0.3.7 nbclient-0.6.0 nbconvert-6.5.0 nbformat-5.3.0 nest-asyncio-1.5.5 notebook-6.4.11 notebook-shim-0.1.0 packaging-21.3 pandocfilters-1.5.0 parso-0.8.3 pexpect-4.8.0 pickleshare-0.7.5 prometheus-client-0.14.1 prompt-toolkit-3.0.29 psutil-5.9.0 ptyprocess-0.7.0 pure-eval-0.2.2 pycparser-2.21 pygments-2.11.2 pyparsing-3.0.8 pyrsistent-0.18.1 python-dateutil-2.8.2 pytz-2022.1 pyzmq-22.3.0 requests-2.27.1 setuptools-62.1.0 six-1.16.0 sniffio-1.2.0 soupsieve-2.3.2.post1 stack-data-0.2.0 terminado-0.13.3 tinycss2-1.1.1 tomlkit-0.10.1 tornado-6.1 traitlets-5.1.1 urllib3-1.26.9 wcwidth-0.2.5 webencodings-0.5.1 websocket-client-1.3.2 wheel-0.37.1
  Installing build dependencies ... done
  Running command Checking if build backend supports build_editable
  Checking if build backend supports build_editable ... done
  Running command Getting requirements to build wheel
  running egg_info
  writing jupyterlab_examples_hello_world.egg-info/PKG-INFO
  writing dependency_links to jupyterlab_examples_hello_world.egg-info/dependency_links.txt
  writing top-level names to jupyterlab_examples_hello_world.egg-info/top_level.txt
  reading manifest file 'jupyterlab_examples_hello_world.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no files found matching 'LICENSE'
  warning: no files found matching 'jupyter-config/jupyterlab_examples_hello_world.json'
  warning: no directories found matching 'jupyterlab_examples_hello_world/labextension'
  no previously-included directories found matching '**/node_modules'
  no previously-included directories found matching 'lib'
  warning: no previously-included files matching '*~' found anywhere in distribution
  warning: no previously-included files matching '*.pyc' found anywhere in distribution
  warning: no previously-included files matching '*.pyo' found anywhere in distribution
  warning: no previously-included files matching '.git' found anywhere in distribution
  warning: no previously-included files matching '.ipynb_checkpoints' found anywhere in distribution
  writing manifest file 'jupyterlab_examples_hello_world.egg-info/SOURCES.txt'
  Getting requirements to build wheel ... done
  Running command Preparing metadata (pyproject.toml)
  running dist_info
  creating /tmp/pip-modern-metadata-x4u35ehq/jupyterlab_examples_hello_world.egg-info
  writing /tmp/pip-modern-metadata-x4u35ehq/jupyterlab_examples_hello_world.egg-info/PKG-INFO
  writing dependency_links to /tmp/pip-modern-metadata-x4u35ehq/jupyterlab_examples_hello_world.egg-info/dependency_links.txt
  writing top-level names to /tmp/pip-modern-metadata-x4u35ehq/jupyterlab_examples_hello_world.egg-info/top_level.txt
  writing manifest file '/tmp/pip-modern-metadata-x4u35ehq/jupyterlab_examples_hello_world.egg-info/SOURCES.txt'
  reading manifest file '/tmp/pip-modern-metadata-x4u35ehq/jupyterlab_examples_hello_world.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no files found matching 'LICENSE'
  warning: no files found matching 'jupyter-config/jupyterlab_examples_hello_world.json'
  warning: no directories found matching 'jupyterlab_examples_hello_world/labextension'
  no previously-included directories found matching '**/node_modules'
  no previously-included directories found matching 'lib'
  warning: no previously-included files matching '*~' found anywhere in distribution
  warning: no previously-included files matching '*.pyc' found anywhere in distribution
  warning: no previously-included files matching '*.pyo' found anywhere in distribution
  warning: no previously-included files matching '.git' found anywhere in distribution
  warning: no previously-included files matching '.ipynb_checkpoints' found anywhere in distribution
  writing manifest file '/tmp/pip-modern-metadata-x4u35ehq/jupyterlab_examples_hello_world.egg-info/SOURCES.txt'
  creating '/tmp/pip-modern-metadata-x4u35ehq/jupyterlab_examples_hello_world-0.1.0.dist-info'
  Preparing metadata (pyproject.toml) ... done
Installing collected packages: jupyterlab-examples-hello-world
  Running setup.py develop for jupyterlab-examples-hello-world
    Running command python setup.py develop
    running develop
    /tmp/pip-build-env-dkv1te7r/overlay/lib/python3.10/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    /tmp/pip-build-env-dkv1te7r/overlay/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    running egg_info
    writing jupyterlab_examples_hello_world.egg-info/PKG-INFO
    writing dependency_links to jupyterlab_examples_hello_world.egg-info/dependency_links.txt
    writing top-level names to jupyterlab_examples_hello_world.egg-info/top_level.txt
    reading manifest file 'jupyterlab_examples_hello_world.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'LICENSE'
    warning: no files found matching 'jupyter-config/jupyterlab_examples_hello_world.json'
    warning: no directories found matching 'jupyterlab_examples_hello_world/labextension'
    no previously-included directories found matching '**/node_modules'
    no previously-included directories found matching 'lib'
    warning: no previously-included files matching '*~' found anywhere in distribution
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    warning: no previously-included files matching '*.pyo' found anywhere in distribution
    warning: no previously-included files matching '.git' found anywhere in distribution
    warning: no previously-included files matching '.ipynb_checkpoints' found anywhere in distribution
    writing manifest file 'jupyterlab_examples_hello_world.egg-info/SOURCES.txt'
    running build_ext
    Creating /home/idafna/micromamba/envs/jlabext2/lib/python3.10/site-packages/jupyterlab-examples-hello-world.egg-link (link to .)
    Adding jupyterlab-examples-hello-world 0.1.0 to easy-install.pth file

    Installed /home/idafna/dev/extension-examples/hello-world
    running post_develop
    Installing build dependencies with npm.  This may take a while...
    > npm install
    npm WARN EBADENGINE Unsupported engine {
    npm WARN EBADENGINE   package: 'eslint-plugin-jsdoc@36.1.1',
    npm WARN EBADENGINE   required: { node: '^12 || ^14 || ^16' },
    npm WARN EBADENGINE   current: { node: 'v17.8.0', npm: '8.5.5' }
    npm WARN EBADENGINE }
    npm WARN EBADENGINE Unsupported engine {
    npm WARN EBADENGINE   package: '@es-joy/jsdoccomment@0.10.8',
    npm WARN EBADENGINE   required: { node: '^12 || ^14 || ^16' },
    npm WARN EBADENGINE   current: { node: 'v17.8.0', npm: '8.5.5' }
    npm WARN EBADENGINE }
    npm WARN deprecated crypto@1.0.1: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
    npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
    npm WARN deprecated har-validator@5.1.5: this library is no longer supported
    npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
    npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
    npm WARN deprecated request@2.88.0: request has been deprecated, see https://github.com/request/request/issues/3142
    npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
    npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
    npm ERR! code 1
    npm ERR! path /home/idafna/dev/extension-examples/hello-world
    npm ERR! command failed
    npm ERR! command sh -c jlpm run clean && jlpm run build:prod
    npm ERR! yarn run v1.21.1
    npm ERR! $ jlpm run clean:lib
    npm ERR! $ rimraf lib tsconfig.tsbuildinfo
    npm ERR! Done in 1.21s.
    npm ERR! yarn run v1.21.1
    npm ERR! $ jlpm run clean && jlpm run build:lib && jlpm run build:labextension
    npm ERR! $ jlpm run clean:lib
    npm ERR! $ rimraf lib tsconfig.tsbuildinfo
    npm ERR! $ tsc
    npm ERR! $ jupyter labextension build .
    npm ERR! info No lockfile found.
    npm ERR! [1/4] Resolving packages...
    npm ERR! [2/4] Fetching packages...
    npm ERR! info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
    npm ERR! An error occurred.
    npm ERR! subprocess.CalledProcessError: Command '['jlpm']' returned non-zero exit status 1.
    npm ERR! See the log file for details:  /tmp/jupyterlab-debug-9z7v3atg.log
    npm ERR! info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
    npm ERR! info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
    npm ERR! Building extension in .
    npm ERR! warning lerna > @lerna/bootstrap > read-package-tree@5.3.1: The functionality that this package provided is now in @npmcli/arborist
    npm ERR! warning lerna > @lerna/version > temp-write > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
    npm ERR! warning lerna > @lerna/bootstrap > @lerna/run-lifecycle > npm-lifecycle > node-gyp > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
    npm ERR! warning lerna > @lerna/bootstrap > @lerna/run-lifecycle > npm-lifecycle > node-gyp > request > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
    npm ERR! warning lerna > @lerna/bootstrap > @lerna/symlink-binary > @lerna/create-symlink > @zkochan/cmd-shim > mkdirp-promise@5.0.1: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that.
    npm ERR! warning lerna > @lerna/create > globby > fast-glob > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
    npm ERR! warning lerna > @lerna/bootstrap > @lerna/run-lifecycle > npm-lifecycle > node-gyp > request > har-validator@5.1.5: this library is no longer supported
    npm ERR! warning lerna > @lerna/create > globby > fast-glob > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
    npm ERR! warning lerna > @lerna/create > globby > fast-glob > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
    npm ERR! warning lerna > @lerna/create > globby > fast-glob > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
    npm ERR! warning workspace-aggregator-5ad0d4c8-f30b-4e92-8148-06c5c8295150 > @jupyterlab-examples/command-palette > @jupyterlab/builder > @jupyterlab/buildutils > crypto@1.0.1: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
    npm ERR! warning workspace-aggregator-5ad0d4c8-f30b-4e92-8148-06c5c8295150 > @jupyterlab-examples/context-menu > @jupyterlab/apputils > url > querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
    npm ERR! warning workspace-aggregator-5ad0d4c8-f30b-4e92-8148-06c5c8295150 > @jupyterlab-examples/command-palette > @jupyterlab/builder > @jupyterlab/buildutils > verdaccio > request@2.88.0: request has been deprecated, see https://github.com/request/request/issues/3142
    npm ERR! warning workspace-aggregator-5ad0d4c8-f30b-4e92-8148-06c5c8295150 > @jupyterlab-examples/command-palette > @jupyterlab/builder > @jupyterlab/buildutils > verdaccio > request > har-validator@5.1.5: this library is no longer supported
    npm ERR! warning workspace-aggregator-5ad0d4c8-f30b-4e92-8148-06c5c8295150 > @jupyterlab-examples/command-palette > @jupyterlab/builder > @jupyterlab/buildutils > verdaccio > request > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
    npm ERR! warning workspace-aggregator-5ad0d4c8-f30b-4e92-8148-06c5c8295150 > @jupyterlab-examples/context-menu > @jupyterlab/ui-components > @blueprintjs/core > popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
    npm ERR! warning workspace-aggregator-5ad0d4c8-f30b-4e92-8148-06c5c8295150 > @jupyterlab-examples/context-menu > @jupyterlab/ui-components > @blueprintjs/core > react-popper > popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
    npm ERR! warning workspace-aggregator-5ad0d4c8-f30b-4e92-8148-06c5c8295150 > @jupyterlab-examples/command-palette > @jupyterlab/builder > @jupyterlab/buildutils > verdaccio > @verdaccio/readme > jsdom > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
    npm ERR! warning workspace-aggregator-5ad0d4c8-f30b-4e92-8148-06c5c8295150 > @jupyterlab-examples/command-palette > @jupyterlab/builder > @jupyterlab/buildutils > verdaccio > @verdaccio/readme > jsdom > request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
    npm ERR! error eslint-plugin-jsdoc@36.1.1: The engine "node" is incompatible with this module. Expected version "^12 || ^14 || ^16". Got "17.8.0"
    npm ERR! error Found incompatible module.
    npm ERR! error Command failed with exit code 1.
    npm ERR! error Command failed with exit code 1.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/idafna/.npm/_logs/2022-04-22T16_52_47_842Z-debug-0.log
    Traceback (most recent call last):
      File "<string>", line 2, in <module>
      File "<pip-setuptools-caller>", line 34, in <module>
      File "/home/idafna/dev/extension-examples/hello-world/setup.py", line 83, in <module>
        setuptools.setup(**setup_args)
      File "/tmp/pip-build-env-dkv1te7r/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in setup
        return distutils.core.setup(**attrs)
      File "/tmp/pip-build-env-dkv1te7r/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 148, in setup
        return run_commands(dist)
      File "/tmp/pip-build-env-dkv1te7r/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
        dist.run_commands()
      File "/tmp/pip-build-env-dkv1te7r/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
        self.run_command(cmd)
      File "/tmp/pip-build-env-dkv1te7r/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1214, in run_command
        super().run_command(command)
      File "/tmp/pip-build-env-dkv1te7r/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
        cmd_obj.run()
      File "/tmp/pip-build-env-dkv1te7r/overlay/lib/python3.10/site-packages/jupyter_packaging/setupbase.py", line 151, in run
        self.run_command(post_build.__name__)
      File "/tmp/pip-build-env-dkv1te7r/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/tmp/pip-build-env-dkv1te7r/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1214, in run_command
        super().run_command(command)
      File "/tmp/pip-build-env-dkv1te7r/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
        cmd_obj.run()
      File "/tmp/pip-build-env-dkv1te7r/overlay/lib/python3.10/site-packages/jupyter_packaging/setupbase.py", line 127, in run
        func()
      File "/tmp/pip-build-env-dkv1te7r/overlay/lib/python3.10/site-packages/jupyter_packaging/setupbase.py", line 230, in builder
        run(npm_cmd + ["install"], cwd=node_package)
      File "/tmp/pip-build-env-dkv1te7r/overlay/lib/python3.10/site-packages/jupyter_packaging/setupbase.py", line 296, in run
        return subprocess.check_call(cmd, **kwargs)
      File "/home/idafna/micromamba/envs/jlabext2/lib/python3.10/subprocess.py", line 369, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['/home/idafna/micromamba/envs/jlabext2/bin/npm', 'install']' returned non-zero exit status 1.
    error: subprocess-exited-with-error

    × python setup.py develop did not run successfully.
    │ exit code: 1
    ╰─> See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    full command: /home/idafna/micromamba/envs/jlabext2/bin/python3.10 -c '
    exec(compile('"'"''"'"''"'"'
    # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
    #
    # - It imports setuptools before invoking setup.py, to enable projects that directly
    #   import from `distutils.core` to work with newer packaging standards.
    # - It provides a clear error message when setuptools is not installed.
    # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
    #   setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
    #     manifest_maker: standard file '"'"'-c'"'"' not found".
    # - It generates a shim setup.py, for handling setup.cfg-only projects.
    import os, sys, tokenize

    try:
        import setuptools
    except ImportError as error:
        print(
            "ERROR: Can not execute `setup.py` since setuptools is not available in "
            "the build environment.",
            file=sys.stderr,
        )
        sys.exit(1)

    __file__ = %r
    sys.argv[0] = __file__

    if os.path.exists(__file__):
        filename = __file__
        with tokenize.open(__file__) as f:
            setup_py_code = f.read()
    else:
        filename = "<auto-generated setuptools caller>"
        setup_py_code = "from setuptools import setup; setup()"

    exec(compile(setup_py_code, filename, "exec"))
    '"'"''"'"''"'"' % ('"'"'/home/idafna/dev/extension-examples/hello-world/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' develop --no-deps
    cwd: /home/idafna/dev/extension-examples/hello-world/
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Additional context and troubleshooting

I tried in a number of fresh environments and also tried older versions of Python. The issue seems to be coming from a jupyter_packaging line where setuptools is imported, but is not found. It's odd because setuptools is present, so perhaps something during the process clobbers the environment variables and the python version found is not a part of the virtualenv? I am not sure.

Many thanks for taking a look!

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:

ibdafna commented 2 years ago

Closed via #193