jupyter-widgets / ipydatagrid

Fast Datagrid widget for the Jupyter Notebook and JupyterLab
BSD 3-Clause "New" or "Revised" License
580 stars 51 forks source link

error when following development installation instructions #427

Closed jgunstone closed 1 year ago

jgunstone commented 1 year ago

Describe the bug when following instructions: https://github.com/bloomberg/ipydatagrid#development-installation the `pip install -ve . fails

To Reproduce

from a blank conda env

git clone https://github.com/Bloomberg/ipydatagrid.git
cd ipydatagrid
conda install ipywidgets=8 jupyterlab
pip install -ve .

as per https://github.com/bloomberg/ipydatagrid#development-installation

Expected behavior The command installs a dev env

Screenshots

image

Additional context

error log when running `pip install -ve .` ``` (ipydatagrid-dev) jovyan@PORT4028:~/ipydatagrid$ pip install -ve . Using pip 23.2.1 from /home/jovyan/mambaforge/envs/ipydatagrid-dev/lib/python3.11/site-packages/pip (python 3.11) Obtaining file:///home/jovyan/ipydatagrid Running command pip subprocess to install build dependencies Collecting hatchling Obtaining dependency information for hatchling from https://files.pythonhosted.org/packages/76/56/8ccca673e2c896931722f876bf040c0b6a7d8c1a128be60516a8a55bb27a/hatchling-1.18.0-py3-none-any.whl.metadata Using cached hatchling-1.18.0-py3-none-any.whl.metadata (3.8 kB) Collecting jupyterlab~=3.0 Obtaining dependency information for jupyterlab~=3.0 from https://files.pythonhosted.org/packages/5f/d5/176f1cf19b87ede0001093c1008260cfa251d4b2e6c82fd294890462692a/jupyterlab-3.6.5-py3-none-any.whl.metadata Using cached jupyterlab-3.6.5-py3-none-any.whl.metadata (12 kB) Collecting editables>=0.3 (from hatchling) Obtaining dependency information for editables>=0.3 from https://files.pythonhosted.org/packages/6b/be/0f2f4a5e8adc114a02b63d92bf8edbfa24db6fc602fca83c885af2479e0e/editables-0.5-py3-none-any.whl.metadata Using cached editables-0.5-py3-none-any.whl.metadata (3.1 kB) Collecting packaging>=21.3 (from hatchling) Using cached packaging-23.1-py3-none-any.whl (48 kB) Collecting pathspec>=0.10.1 (from hatchling) Obtaining dependency information for pathspec>=0.10.1 from https://files.pythonhosted.org/packages/b4/2a/9b1be29146139ef459188f5e420a66e835dda921208db600b7037093891f/pathspec-0.11.2-py3-none-any.whl.metadata Using cached pathspec-0.11.2-py3-none-any.whl.metadata (19 kB) Collecting pluggy>=1.0.0 (from hatchling) Obtaining dependency information for pluggy>=1.0.0 from https://files.pythonhosted.org/packages/51/32/4a79112b8b87b21450b066e102d6608907f4c885ed7b04c3fdb085d4d6ae/pluggy-1.2.0-py3-none-any.whl.metadata Using cached pluggy-1.2.0-py3-none-any.whl.metadata (4.4 kB) Collecting trove-classifiers (from hatchling) Obtaining dependency information for trove-classifiers from https://files.pythonhosted.org/packages/14/c6/35e478a586e857c2a6d31fc7b1586d4ff965f729a290552b5c2eb7b9f807/trove_classifiers-2023.8.7-py3-none-any.whl.metadata Using cached trove_classifiers-2023.8.7-py3-none-any.whl.metadata (2.2 kB) Collecting ipython (from jupyterlab~=3.0) Obtaining dependency information for ipython from https://files.pythonhosted.org/packages/52/d1/f70cdafba20030cbc1412d7a7d6a89c5035071835cc50e47fc5ed8da553c/ipython-8.14.0-py3-none-any.whl.metadata Using cached ipython-8.14.0-py3-none-any.whl.metadata (5.8 kB) Collecting tornado>=6.1.0 (from jupyterlab~=3.0) Obtaining dependency information for tornado>=6.1.0 from https://files.pythonhosted.org/packages/66/a5/e6da56c03ff61200d5a43cfb75ab09316fc0836aa7ee26b4e9dcbfc3ae85/tornado-6.3.3-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata Using cached tornado-6.3.3-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.5 kB) Collecting jupyter-core (from jupyterlab~=3.0) Obtaining dependency information for jupyter-core from https://files.pythonhosted.org/packages/8c/e0/3f9061c5e99a03612510f892647b15a91f910c5275b7b77c6c72edae1494/jupyter_core-5.3.1-py3-none-any.whl.metadata Using cached jupyter_core-5.3.1-py3-none-any.whl.metadata (3.4 kB) Collecting jupyterlab-server~=2.19 (from jupyterlab~=3.0) Obtaining dependency information for jupyterlab-server~=2.19 from https://files.pythonhosted.org/packages/a7/0d/6d4eab0391bd4df1c43f308368d5e177b0fa8ac632267222a23b71317091/jupyterlab_server-2.24.0-py3-none-any.whl.metadata Using cached jupyterlab_server-2.24.0-py3-none-any.whl.metadata (5.8 kB) Collecting jupyter-server<3,>=1.16.0 (from jupyterlab~=3.0) Obtaining dependency information for jupyter-server<3,>=1.16.0 from https://files.pythonhosted.org/packages/28/d9/4bf2ab8410cdc37f54aadb6cae497b9bc8ae16720d97b762b9bfb7834022/jupyter_server-2.7.2-py3-none-any.whl.metadata Using cached jupyter_server-2.7.2-py3-none-any.whl.metadata (8.6 kB) Collecting jupyter-ydoc~=0.2.4 (from jupyterlab~=3.0) Obtaining dependency information for jupyter-ydoc~=0.2.4 from https://files.pythonhosted.org/packages/e1/36/66e6cb851a43c95f00f47b36d2cb3e17d37f862449dc8258b2c04f02544b/jupyter_ydoc-0.2.5-py3-none-any.whl.metadata Using cached jupyter_ydoc-0.2.5-py3-none-any.whl.metadata (2.2 kB) Collecting jupyter-server-ydoc~=0.8.0 (from jupyterlab~=3.0) Using cached jupyter_server_ydoc-0.8.0-py3-none-any.whl (11 kB) Collecting nbclassic (from jupyterlab~=3.0) Using cached nbclassic-1.0.0-py3-none-any.whl (10.0 MB) Collecting notebook<7 (from jupyterlab~=3.0) Obtaining dependency information for notebook<7 from https://files.pythonhosted.org/packages/d0/68/889706e46864e743e530e68f47c4a8b1682a1c62c761d4a57c00dc3c4626/notebook-6.5.5-py3-none-any.whl.metadata Using cached notebook-6.5.5-py3-none-any.whl.metadata (2.5 kB) Collecting jinja2>=2.1 (from jupyterlab~=3.0) Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB) Collecting MarkupSafe>=2.0 (from jinja2>=2.1->jupyterlab~=3.0) Obtaining dependency information for MarkupSafe>=2.0 from https://files.pythonhosted.org/packages/fe/21/2eff1de472ca6c99ec3993eab11308787b9879af9ca8bbceb4868cf4f2ca/MarkupSafe-2.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata Using cached MarkupSafe-2.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.0 kB) Collecting anyio>=3.1.0 (from jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Obtaining dependency information for anyio>=3.1.0 from https://files.pythonhosted.org/packages/19/24/44299477fe7dcc9cb58d0a57d5a7588d6af2ff403fdd2d47a246c91a3246/anyio-3.7.1-py3-none-any.whl.metadata Using cached anyio-3.7.1-py3-none-any.whl.metadata (4.7 kB) Collecting argon2-cffi (from jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Obtaining dependency information for argon2-cffi from https://files.pythonhosted.org/packages/a4/6a/e8a041599e78b6b3752da48000b14c8d1e8a04ded09c88c714ba047f34f5/argon2_cffi-23.1.0-py3-none-any.whl.metadata Using cached argon2_cffi-23.1.0-py3-none-any.whl.metadata (5.2 kB) Collecting jupyter-client>=7.4.4 (from jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Obtaining dependency information for jupyter-client>=7.4.4 from https://files.pythonhosted.org/packages/29/24/0491f7837cedf39ae0f96d9b3e4db2fae31cc4dd5eac00a98ab0db996c9b/jupyter_client-8.3.0-py3-none-any.whl.metadata Using cached jupyter_client-8.3.0-py3-none-any.whl.metadata (8.5 kB) Collecting jupyter-events>=0.6.0 (from jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Obtaining dependency information for jupyter-events>=0.6.0 from https://files.pythonhosted.org/packages/15/0d/3c67f6c432d8085a3cee250e1e235f27b764be90cc2d16fdcc0b1cee9572/jupyter_events-0.7.0-py3-none-any.whl.metadata Using cached jupyter_events-0.7.0-py3-none-any.whl.metadata (5.5 kB) Collecting jupyter-server-terminals (from jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached jupyter_server_terminals-0.4.4-py3-none-any.whl (13 kB) Collecting nbconvert>=6.4.4 (from jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Obtaining dependency information for nbconvert>=6.4.4 from https://files.pythonhosted.org/packages/80/ed/d883918ca3777f744f3373fc63d8af47b47237ca703450a451b3e885264a/nbconvert-7.7.4-py3-none-any.whl.metadata Using cached nbconvert-7.7.4-py3-none-any.whl.metadata (8.0 kB) Collecting nbformat>=5.3.0 (from jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Obtaining dependency information for nbformat>=5.3.0 from https://files.pythonhosted.org/packages/f4/e7/ef30a90b70eba39e675689b9eaaa92530a71d7435ab8f9cae520814e0caf/nbformat-5.9.2-py3-none-any.whl.metadata Using cached nbformat-5.9.2-py3-none-any.whl.metadata (3.4 kB) Collecting overrides (from jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Obtaining dependency information for overrides from https://files.pythonhosted.org/packages/da/28/3fa6ef8297302fc7b3844980b6c5dbc71cdbd4b61e9b2591234214d5ab39/overrides-7.4.0-py3-none-any.whl.metadata Using cached overrides-7.4.0-py3-none-any.whl.metadata (5.7 kB) Collecting prometheus-client (from jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Obtaining dependency information for prometheus-client from https://files.pythonhosted.org/packages/ad/b3/6e18c89bf6bd120590ea538a62cae16dc763ff2745b18377c4be5495c4aa/prometheus_client-0.17.1-py3-none-any.whl.metadata Using cached prometheus_client-0.17.1-py3-none-any.whl.metadata (24 kB) Collecting pyzmq>=24 (from jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Obtaining dependency information for pyzmq>=24 from https://files.pythonhosted.org/packages/46/d4/76a24bb79a2001082517499b311ec4960636bf5d4cbd619fef68f8ca8bce/pyzmq-25.1.1-cp311-cp311-manylinux_2_28_x86_64.whl.metadata Using cached pyzmq-25.1.1-cp311-cp311-manylinux_2_28_x86_64.whl.metadata (4.9 kB) Collecting send2trash>=1.8.2 (from jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached Send2Trash-1.8.2-py3-none-any.whl (18 kB) Collecting terminado>=0.8.3 (from jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached terminado-0.17.1-py3-none-any.whl (17 kB) Collecting traitlets>=5.6.0 (from jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached traitlets-5.9.0-py3-none-any.whl (117 kB) Collecting websocket-client (from jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Obtaining dependency information for websocket-client from https://files.pythonhosted.org/packages/d3/a3/63e9329c8cc9be6153e919e17d0ef5b60d537fed78564872951b95bcc17c/websocket_client-1.6.1-py3-none-any.whl.metadata Using cached websocket_client-1.6.1-py3-none-any.whl.metadata (7.6 kB) Collecting platformdirs>=2.5 (from jupyter-core->jupyterlab~=3.0) Obtaining dependency information for platformdirs>=2.5 from https://files.pythonhosted.org/packages/14/51/fe5a0d6ea589f0d4a1b97824fb518962ad48b27cd346dcdfa2405187997a/platformdirs-3.10.0-py3-none-any.whl.metadata Using cached platformdirs-3.10.0-py3-none-any.whl.metadata (11 kB) Collecting jupyter-server-fileid<1,>=0.6.0 (from jupyter-server-ydoc~=0.8.0->jupyterlab~=3.0) Using cached jupyter_server_fileid-0.9.0-py3-none-any.whl (15 kB) Collecting ypy-websocket<0.9.0,>=0.8.2 (from jupyter-server-ydoc~=0.8.0->jupyterlab~=3.0) Using cached ypy_websocket-0.8.4-py3-none-any.whl (10 kB) Collecting y-py<0.7.0,>=0.6.0 (from jupyter-ydoc~=0.2.4->jupyterlab~=3.0) Using cached y_py-0.6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB) Collecting babel>=2.10 (from jupyterlab-server~=2.19->jupyterlab~=3.0) Using cached Babel-2.12.1-py3-none-any.whl (10.1 MB) Collecting json5>=0.9.0 (from jupyterlab-server~=2.19->jupyterlab~=3.0) Obtaining dependency information for json5>=0.9.0 from https://files.pythonhosted.org/packages/70/ba/fa37123a86ae8287d6678535a944f9c3377d8165e536310ed6f6cb0f0c0e/json5-0.9.14-py2.py3-none-any.whl.metadata Using cached json5-0.9.14-py2.py3-none-any.whl.metadata (10 kB) Collecting jsonschema>=4.17.3 (from jupyterlab-server~=2.19->jupyterlab~=3.0) Obtaining dependency information for jsonschema>=4.17.3 from https://files.pythonhosted.org/packages/2b/ff/af59fd34bc4d7ac3e6e0cd1f3c10317d329b6c1aee179e8b24ad9a79fbac/jsonschema-4.19.0-py3-none-any.whl.metadata Using cached jsonschema-4.19.0-py3-none-any.whl.metadata (8.2 kB) Collecting requests>=2.28 (from jupyterlab-server~=2.19->jupyterlab~=3.0) Obtaining dependency information for requests>=2.28 from https://files.pythonhosted.org/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl.metadata Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB) Collecting pyzmq>=24 (from jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached pyzmq-24.0.1-cp311-cp311-manylinux_2_28_x86_64.whl (1.1 MB) Collecting jupyter-client>=7.4.4 (from jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached jupyter_client-7.4.9-py3-none-any.whl (133 kB) Collecting ipython-genutils (from notebook<7->jupyterlab~=3.0) Using cached ipython_genutils-0.2.0-py2.py3-none-any.whl (26 kB) Collecting nest-asyncio>=1.5 (from notebook<7->jupyterlab~=3.0) Obtaining dependency information for nest-asyncio>=1.5 from https://files.pythonhosted.org/packages/7e/dd/69a7a6e89bb1fe09f99bde22027154c487b1e8b6769e642d7f56f35696d3/nest_asyncio-1.5.7-py3-none-any.whl.metadata Using cached nest_asyncio-1.5.7-py3-none-any.whl.metadata (2.7 kB) Collecting ipykernel (from notebook<7->jupyterlab~=3.0) Obtaining dependency information for ipykernel from https://files.pythonhosted.org/packages/ca/ca/1089ddd8dd3ba03ea593bf20cdc2f7fe02526dcd7d966b7da47aa105e65b/ipykernel-6.25.1-py3-none-any.whl.metadata Using cached ipykernel-6.25.1-py3-none-any.whl.metadata (6.3 kB) Collecting notebook-shim>=0.2.3 (from nbclassic->jupyterlab~=3.0) Using cached notebook_shim-0.2.3-py3-none-any.whl (13 kB) Collecting backcall (from ipython->jupyterlab~=3.0) Using cached backcall-0.2.0-py2.py3-none-any.whl (11 kB) Collecting decorator (from ipython->jupyterlab~=3.0) Using cached decorator-5.1.1-py3-none-any.whl (9.1 kB) Collecting jedi>=0.16 (from ipython->jupyterlab~=3.0) Obtaining dependency information for jedi>=0.16 from https://files.pythonhosted.org/packages/8e/46/7e3ae3aa2dcfcffc5138c6cef5448523218658411c84a2000bf75c8d3ec1/jedi-0.19.0-py2.py3-none-any.whl.metadata Using cached jedi-0.19.0-py2.py3-none-any.whl.metadata (22 kB) Collecting matplotlib-inline (from ipython->jupyterlab~=3.0) Using cached matplotlib_inline-0.1.6-py3-none-any.whl (9.4 kB) Collecting pickleshare (from ipython->jupyterlab~=3.0) Using cached pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB) Collecting prompt-toolkit!=3.0.37,<3.1.0,>=3.0.30 (from ipython->jupyterlab~=3.0) Obtaining dependency information for prompt-toolkit!=3.0.37,<3.1.0,>=3.0.30 from https://files.pythonhosted.org/packages/a9/b4/ba77c84edf499877317225d7b7bc047a81f7c2eed9628eeb6bab0ac2e6c9/prompt_toolkit-3.0.39-py3-none-any.whl.metadata Using cached prompt_toolkit-3.0.39-py3-none-any.whl.metadata (6.4 kB) Collecting pygments>=2.4.0 (from ipython->jupyterlab~=3.0) Obtaining dependency information for pygments>=2.4.0 from https://files.pythonhosted.org/packages/43/88/29adf0b44ba6ac85045e63734ae0997d3c58d8b1a91c914d240828d0d73d/Pygments-2.16.1-py3-none-any.whl.metadata Using cached Pygments-2.16.1-py3-none-any.whl.metadata (2.5 kB) Collecting stack-data (from ipython->jupyterlab~=3.0) Using cached stack_data-0.6.2-py3-none-any.whl (24 kB) Collecting pexpect>4.3 (from ipython->jupyterlab~=3.0) Using cached pexpect-4.8.0-py2.py3-none-any.whl (59 kB) Collecting idna>=2.8 (from anyio>=3.1.0->jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached idna-3.4-py3-none-any.whl (61 kB) Collecting sniffio>=1.1 (from anyio>=3.1.0->jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached sniffio-1.3.0-py3-none-any.whl (10 kB) Collecting parso<0.9.0,>=0.8.3 (from jedi>=0.16->ipython->jupyterlab~=3.0) Using cached parso-0.8.3-py2.py3-none-any.whl (100 kB) Collecting attrs>=22.2.0 (from jsonschema>=4.17.3->jupyterlab-server~=2.19->jupyterlab~=3.0) Using cached attrs-23.1.0-py3-none-any.whl (61 kB) Collecting jsonschema-specifications>=2023.03.6 (from jsonschema>=4.17.3->jupyterlab-server~=2.19->jupyterlab~=3.0) Obtaining dependency information for jsonschema-specifications>=2023.03.6 from https://files.pythonhosted.org/packages/1c/24/83349ac2189cc2435e84da3f69ba3c97314d3c0622628e55171c6798ed80/jsonschema_specifications-2023.7.1-py3-none-any.whl.metadata Using cached jsonschema_specifications-2023.7.1-py3-none-any.whl.metadata (2.8 kB) Collecting referencing>=0.28.4 (from jsonschema>=4.17.3->jupyterlab-server~=2.19->jupyterlab~=3.0) Obtaining dependency information for referencing>=0.28.4 from https://files.pythonhosted.org/packages/be/8e/56d6f1e2d591f4d6cbcba446cac4a1b0dc4f584537e2071d9bcee8eeab6b/referencing-0.30.2-py3-none-any.whl.metadata Using cached referencing-0.30.2-py3-none-any.whl.metadata (2.6 kB) Collecting rpds-py>=0.7.1 (from jsonschema>=4.17.3->jupyterlab-server~=2.19->jupyterlab~=3.0) Obtaining dependency information for rpds-py>=0.7.1 from https://files.pythonhosted.org/packages/d3/65/bef74a9023a266ae3582f56eb2e78c4e92903c30a15810f42045c2d68cb9/rpds_py-0.9.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata Using cached rpds_py-0.9.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.7 kB) Collecting entrypoints (from jupyter-client>=7.4.4->jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached entrypoints-0.4-py3-none-any.whl (5.3 kB) Collecting python-dateutil>=2.8.2 (from jupyter-client>=7.4.4->jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB) Collecting python-json-logger>=2.0.4 (from jupyter-events>=0.6.0->jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached python_json_logger-2.0.7-py3-none-any.whl (8.1 kB) Collecting pyyaml>=5.3 (from jupyter-events>=0.6.0->jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Obtaining dependency information for pyyaml>=5.3 from https://files.pythonhosted.org/packages/7b/5e/efd033ab7199a0b2044dab3b9f7a4f6670e6a52c089de572e928d2873b06/PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata Using cached PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB) Collecting rfc3339-validator (from jupyter-events>=0.6.0->jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached rfc3339_validator-0.1.4-py2.py3-none-any.whl (3.5 kB) Collecting rfc3986-validator>=0.1.1 (from jupyter-events>=0.6.0->jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached rfc3986_validator-0.1.1-py2.py3-none-any.whl (4.2 kB) Collecting beautifulsoup4 (from nbconvert>=6.4.4->jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached beautifulsoup4-4.12.2-py3-none-any.whl (142 kB) Collecting bleach!=5.0.0 (from nbconvert>=6.4.4->jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached bleach-6.0.0-py3-none-any.whl (162 kB) Collecting defusedxml (from nbconvert>=6.4.4->jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached defusedxml-0.7.1-py2.py3-none-any.whl (25 kB) Collecting jupyterlab-pygments (from nbconvert>=6.4.4->jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached jupyterlab_pygments-0.2.2-py2.py3-none-any.whl (21 kB) Collecting mistune<4,>=2.0.3 (from nbconvert>=6.4.4->jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Obtaining dependency information for mistune<4,>=2.0.3 from https://files.pythonhosted.org/packages/cc/c0/ac9587149e37cde62ae338e9db8241ae2fdc79a84bde8c8ba7caea2c22d8/mistune-3.0.1-py3-none-any.whl.metadata Using cached mistune-3.0.1-py3-none-any.whl.metadata (1.7 kB) Collecting nbclient>=0.5.0 (from nbconvert>=6.4.4->jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Obtaining dependency information for nbclient>=0.5.0 from https://files.pythonhosted.org/packages/ac/5a/d670ca51e6c3d98574b9647599821590efcd811d71f58e9c89fc59a17685/nbclient-0.8.0-py3-none-any.whl.metadata Using cached nbclient-0.8.0-py3-none-any.whl.metadata (7.8 kB) Collecting pandocfilters>=1.4.1 (from nbconvert>=6.4.4->jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached pandocfilters-1.5.0-py2.py3-none-any.whl (8.7 kB) Collecting tinycss2 (from nbconvert>=6.4.4->jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached tinycss2-1.2.1-py3-none-any.whl (21 kB) Collecting fastjsonschema (from nbformat>=5.3.0->jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Obtaining dependency information for fastjsonschema from https://files.pythonhosted.org/packages/9d/93/a3ca3cdeb84065d7d8f8df4cb09ab44405f109183c1d2b915ec17574e6b1/fastjsonschema-2.18.0-py3-none-any.whl.metadata Using cached fastjsonschema-2.18.0-py3-none-any.whl.metadata (2.0 kB) Collecting ptyprocess>=0.5 (from pexpect>4.3->ipython->jupyterlab~=3.0) Using cached ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB) Collecting wcwidth (from prompt-toolkit!=3.0.37,<3.1.0,>=3.0.30->ipython->jupyterlab~=3.0) Using cached wcwidth-0.2.6-py2.py3-none-any.whl (29 kB) Collecting charset-normalizer<4,>=2 (from requests>=2.28->jupyterlab-server~=2.19->jupyterlab~=3.0) Obtaining dependency information for charset-normalizer<4,>=2 from https://files.pythonhosted.org/packages/bc/85/ef25d4ba14c7653c3020a1c6e1a7413e6791ef36a0ac177efa605fc2c737/charset_normalizer-3.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata Using cached charset_normalizer-3.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (31 kB) Collecting urllib3<3,>=1.21.1 (from requests>=2.28->jupyterlab-server~=2.19->jupyterlab~=3.0) Obtaining dependency information for urllib3<3,>=1.21.1 from https://files.pythonhosted.org/packages/9b/81/62fd61001fa4b9d0df6e31d47ff49cfa9de4af03adecf339c7bc30656b37/urllib3-2.0.4-py3-none-any.whl.metadata Using cached urllib3-2.0.4-py3-none-any.whl.metadata (6.6 kB) Collecting certifi>=2017.4.17 (from requests>=2.28->jupyterlab-server~=2.19->jupyterlab~=3.0) Obtaining dependency information for certifi>=2017.4.17 from https://files.pythonhosted.org/packages/4c/dd/2234eab22353ffc7d94e8d13177aaa050113286e93e7b40eae01fbf7c3d9/certifi-2023.7.22-py3-none-any.whl.metadata Using cached certifi-2023.7.22-py3-none-any.whl.metadata (2.2 kB) Collecting aiofiles<23,>=22.1.0 (from ypy-websocket<0.9.0,>=0.8.2->jupyter-server-ydoc~=0.8.0->jupyterlab~=3.0) Using cached aiofiles-22.1.0-py3-none-any.whl (14 kB) Collecting aiosqlite<1,>=0.17.0 (from ypy-websocket<0.9.0,>=0.8.2->jupyter-server-ydoc~=0.8.0->jupyterlab~=3.0) Using cached aiosqlite-0.19.0-py3-none-any.whl (15 kB) Collecting argon2-cffi-bindings (from argon2-cffi->jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached argon2_cffi_bindings-21.2.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (86 kB) Collecting comm>=0.1.1 (from ipykernel->notebook<7->jupyterlab~=3.0) Obtaining dependency information for comm>=0.1.1 from https://files.pythonhosted.org/packages/fe/47/0133ac1b7dc476ed77710715e98077119b3d9bae56b13f6f9055e7da1c53/comm-0.1.4-py3-none-any.whl.metadata Using cached comm-0.1.4-py3-none-any.whl.metadata (4.2 kB) Collecting debugpy>=1.6.5 (from ipykernel->notebook<7->jupyterlab~=3.0) Obtaining dependency information for debugpy>=1.6.5 from https://files.pythonhosted.org/packages/81/72/cb3a101717d81ab1f97ee38a409be9740e7256bc25074e48fd634055261f/debugpy-1.6.7.post1-py2.py3-none-any.whl.metadata Using cached debugpy-1.6.7.post1-py2.py3-none-any.whl.metadata (1.1 kB) Collecting psutil (from ipykernel->notebook<7->jupyterlab~=3.0) Using cached psutil-5.9.5-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (282 kB) Collecting executing>=1.2.0 (from stack-data->ipython->jupyterlab~=3.0) Using cached executing-1.2.0-py2.py3-none-any.whl (24 kB) Collecting asttokens>=2.1.0 (from stack-data->ipython->jupyterlab~=3.0) Using cached asttokens-2.2.1-py2.py3-none-any.whl (26 kB) Collecting pure-eval (from stack-data->ipython->jupyterlab~=3.0) Using cached pure_eval-0.2.2-py3-none-any.whl (11 kB) Collecting six (from asttokens>=2.1.0->stack-data->ipython->jupyterlab~=3.0) Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting webencodings (from bleach!=5.0.0->nbconvert>=6.4.4->jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached webencodings-0.5.1-py2.py3-none-any.whl (11 kB) Collecting fqdn (from jsonschema>=4.17.3->jupyterlab-server~=2.19->jupyterlab~=3.0) Using cached fqdn-1.5.1-py3-none-any.whl (9.1 kB) Collecting isoduration (from jsonschema>=4.17.3->jupyterlab-server~=2.19->jupyterlab~=3.0) Using cached isoduration-20.11.0-py3-none-any.whl (11 kB) Collecting jsonpointer>1.13 (from jsonschema>=4.17.3->jupyterlab-server~=2.19->jupyterlab~=3.0) Obtaining dependency information for jsonpointer>1.13 from https://files.pythonhosted.org/packages/12/f6/0232cc0c617e195f06f810534d00b74d2f348fe71b2118009ad8ad31f878/jsonpointer-2.4-py2.py3-none-any.whl.metadata Using cached jsonpointer-2.4-py2.py3-none-any.whl.metadata (2.5 kB) Collecting uri-template (from jsonschema>=4.17.3->jupyterlab-server~=2.19->jupyterlab~=3.0) Obtaining dependency information for uri-template from https://files.pythonhosted.org/packages/e7/00/3fca040d7cf8a32776d3d81a00c8ee7457e00f80c649f1e4a863c8321ae9/uri_template-1.3.0-py3-none-any.whl.metadata Using cached uri_template-1.3.0-py3-none-any.whl.metadata (8.8 kB) Collecting webcolors>=1.11 (from jsonschema>=4.17.3->jupyterlab-server~=2.19->jupyterlab~=3.0) Using cached webcolors-1.13-py3-none-any.whl (14 kB) Collecting cffi>=1.0.1 (from argon2-cffi-bindings->argon2-cffi->jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached cffi-1.15.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (462 kB) Collecting soupsieve>1.2 (from beautifulsoup4->nbconvert>=6.4.4->jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached soupsieve-2.4.1-py3-none-any.whl (36 kB) Collecting pycparser (from cffi>=1.0.1->argon2-cffi-bindings->argon2-cffi->jupyter-server<3,>=1.16.0->jupyterlab~=3.0) Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB) Collecting arrow>=0.15.0 (from isoduration->jsonschema>=4.17.3->jupyterlab-server~=2.19->jupyterlab~=3.0) Using cached arrow-1.2.3-py3-none-any.whl (66 kB) Using cached hatchling-1.18.0-py3-none-any.whl (75 kB) Using cached jupyterlab-3.6.5-py3-none-any.whl (8.9 MB) Using cached editables-0.5-py3-none-any.whl (5.1 kB) Using cached jupyter_server-2.7.2-py3-none-any.whl (375 kB) Using cached jupyter_core-5.3.1-py3-none-any.whl (93 kB) Using cached jupyter_ydoc-0.2.5-py3-none-any.whl (6.2 kB) Using cached jupyterlab_server-2.24.0-py3-none-any.whl (57 kB) Using cached notebook-6.5.5-py3-none-any.whl (529 kB) Using cached pathspec-0.11.2-py3-none-any.whl (29 kB) Using cached pluggy-1.2.0-py3-none-any.whl (17 kB) Using cached tornado-6.3.3-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (427 kB) Using cached ipython-8.14.0-py3-none-any.whl (798 kB) Using cached trove_classifiers-2023.8.7-py3-none-any.whl (13 kB) Using cached anyio-3.7.1-py3-none-any.whl (80 kB) Using cached jedi-0.19.0-py2.py3-none-any.whl (1.6 MB) Using cached json5-0.9.14-py2.py3-none-any.whl (19 kB) Using cached jsonschema-4.19.0-py3-none-any.whl (83 kB) Using cached jupyter_events-0.7.0-py3-none-any.whl (18 kB) Using cached MarkupSafe-2.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (28 kB) Using cached nbconvert-7.7.4-py3-none-any.whl (254 kB) Using cached nbformat-5.9.2-py3-none-any.whl (77 kB) Using cached nest_asyncio-1.5.7-py3-none-any.whl (5.3 kB) Using cached platformdirs-3.10.0-py3-none-any.whl (17 kB) Using cached prompt_toolkit-3.0.39-py3-none-any.whl (385 kB) Using cached Pygments-2.16.1-py3-none-any.whl (1.2 MB) Using cached requests-2.31.0-py3-none-any.whl (62 kB) Using cached argon2_cffi-23.1.0-py3-none-any.whl (15 kB) Using cached ipykernel-6.25.1-py3-none-any.whl (154 kB) Using cached overrides-7.4.0-py3-none-any.whl (17 kB) Using cached prometheus_client-0.17.1-py3-none-any.whl (60 kB) Using cached websocket_client-1.6.1-py3-none-any.whl (56 kB) Using cached certifi-2023.7.22-py3-none-any.whl (158 kB) Using cached charset_normalizer-3.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (199 kB) Using cached comm-0.1.4-py3-none-any.whl (6.6 kB) Using cached debugpy-1.6.7.post1-py2.py3-none-any.whl (4.9 MB) Using cached jsonschema_specifications-2023.7.1-py3-none-any.whl (17 kB) Using cached mistune-3.0.1-py3-none-any.whl (47 kB) Using cached nbclient-0.8.0-py3-none-any.whl (73 kB) Using cached PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (757 kB) Using cached referencing-0.30.2-py3-none-any.whl (25 kB) Using cached rpds_py-0.9.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB) Using cached urllib3-2.0.4-py3-none-any.whl (123 kB) Using cached fastjsonschema-2.18.0-py3-none-any.whl (23 kB) Using cached jsonpointer-2.4-py2.py3-none-any.whl (7.8 kB) Using cached uri_template-1.3.0-py3-none-any.whl (11 kB) Installing collected packages: y-py, webencodings, wcwidth, trove-classifiers, pure-eval, ptyprocess, pickleshare, json5, ipython-genutils, fastjsonschema, executing, backcall, websocket-client, webcolors, urllib3, uri-template, traitlets, tornado, tinycss2, soupsieve, sniffio, six, send2trash, rpds-py, rfc3986-validator, pyzmq, pyyaml, python-json-logger, pygments, pycparser, psutil, prompt-toolkit, prometheus-client, pluggy, platformdirs, pexpect, pathspec, parso, pandocfilters, packaging, overrides, nest-asyncio, mistune, MarkupSafe, jupyterlab-pygments, jupyter-ydoc, jsonpointer, idna, fqdn, entrypoints, editables, defusedxml, decorator, debugpy, charset-normalizer, certifi, babel, attrs, aiosqlite, aiofiles, ypy-websocket, terminado, rfc3339-validator, requests, referencing, python-dateutil, matplotlib-inline, jupyter-core, jinja2, jedi, hatchling, comm, cffi, bleach, beautifulsoup4, asttokens, anyio, stack-data, jupyter-server-terminals, jupyter-client, jsonschema-specifications, arrow, argon2-cffi-bindings, jsonschema, isoduration, ipython, argon2-cffi, nbformat, ipykernel, nbclient, jupyter-events, nbconvert, jupyter-server, notebook-shim, jupyterlab-server, jupyter-server-fileid, nbclassic, jupyter-server-ydoc, notebook, jupyterlab Successfully installed MarkupSafe-2.1.3 aiofiles-22.1.0 aiosqlite-0.19.0 anyio-3.7.1 argon2-cffi-23.1.0 argon2-cffi-bindings-21.2.0 arrow-1.2.3 asttokens-2.2.1 attrs-23.1.0 babel-2.12.1 backcall-0.2.0 beautifulsoup4-4.12.2 bleach-6.0.0 certifi-2023.7.22 cffi-1.15.1 charset-normalizer-3.2.0 comm-0.1.4 debugpy-1.6.7.post1 decorator-5.1.1 defusedxml-0.7.1 editables-0.5 entrypoints-0.4 executing-1.2.0 fastjsonschema-2.18.0 fqdn-1.5.1 hatchling-1.18.0 idna-3.4 ipykernel-6.25.1 ipython-8.14.0 ipython-genutils-0.2.0 isoduration-20.11.0 jedi-0.19.0 jinja2-3.1.2 json5-0.9.14 jsonpointer-2.4 jsonschema-4.19.0 jsonschema-specifications-2023.7.1 jupyter-client-7.4.9 jupyter-core-5.3.1 jupyter-events-0.7.0 jupyter-server-2.7.2 jupyter-server-fileid-0.9.0 jupyter-server-terminals-0.4.4 jupyter-server-ydoc-0.8.0 jupyter-ydoc-0.2.5 jupyterlab-3.6.5 jupyterlab-pygments-0.2.2 jupyterlab-server-2.24.0 matplotlib-inline-0.1.6 mistune-3.0.1 nbclassic-1.0.0 nbclient-0.8.0 nbconvert-7.7.4 nbformat-5.9.2 nest-asyncio-1.5.7 notebook-6.5.5 notebook-shim-0.2.3 overrides-7.4.0 packaging-23.1 pandocfilters-1.5.0 parso-0.8.3 pathspec-0.11.2 pexpect-4.8.0 pickleshare-0.7.5 platformdirs-3.10.0 pluggy-1.2.0 prometheus-client-0.17.1 prompt-toolkit-3.0.39 psutil-5.9.5 ptyprocess-0.7.0 pure-eval-0.2.2 pycparser-2.21 pygments-2.16.1 python-dateutil-2.8.2 python-json-logger-2.0.7 pyyaml-6.0.1 pyzmq-24.0.1 referencing-0.30.2 requests-2.31.0 rfc3339-validator-0.1.4 rfc3986-validator-0.1.1 rpds-py-0.9.2 send2trash-1.8.2 six-1.16.0 sniffio-1.3.0 soupsieve-2.4.1 stack-data-0.6.2 terminado-0.17.1 tinycss2-1.2.1 tornado-6.3.3 traitlets-5.9.0 trove-classifiers-2023.8.7 uri-template-1.3.0 urllib3-2.0.4 wcwidth-0.2.6 webcolors-1.13 webencodings-0.5.1 websocket-client-1.6.1 y-py-0.6.0 ypy-websocket-0.8.4 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 editable Getting requirements to build editable ... done Running command pip subprocess to install backend dependencies Collecting hatch-jupyter-builder>=0.8.1 Using cached hatch_jupyter_builder-0.8.3-py3-none-any.whl (17 kB) Collecting hatchling>=1.5 (from hatch-jupyter-builder>=0.8.1) Obtaining dependency information for hatchling>=1.5 from https://files.pythonhosted.org/packages/76/56/8ccca673e2c896931722f876bf040c0b6a7d8c1a128be60516a8a55bb27a/hatchling-1.18.0-py3-none-any.whl.metadata Using cached hatchling-1.18.0-py3-none-any.whl.metadata (3.8 kB) Collecting editables>=0.3 (from hatchling>=1.5->hatch-jupyter-builder>=0.8.1) Obtaining dependency information for editables>=0.3 from https://files.pythonhosted.org/packages/6b/be/0f2f4a5e8adc114a02b63d92bf8edbfa24db6fc602fca83c885af2479e0e/editables-0.5-py3-none-any.whl.metadata Using cached editables-0.5-py3-none-any.whl.metadata (3.1 kB) Collecting packaging>=21.3 (from hatchling>=1.5->hatch-jupyter-builder>=0.8.1) Using cached packaging-23.1-py3-none-any.whl (48 kB) Collecting pathspec>=0.10.1 (from hatchling>=1.5->hatch-jupyter-builder>=0.8.1) Obtaining dependency information for pathspec>=0.10.1 from https://files.pythonhosted.org/packages/b4/2a/9b1be29146139ef459188f5e420a66e835dda921208db600b7037093891f/pathspec-0.11.2-py3-none-any.whl.metadata Using cached pathspec-0.11.2-py3-none-any.whl.metadata (19 kB) Collecting pluggy>=1.0.0 (from hatchling>=1.5->hatch-jupyter-builder>=0.8.1) Obtaining dependency information for pluggy>=1.0.0 from https://files.pythonhosted.org/packages/51/32/4a79112b8b87b21450b066e102d6608907f4c885ed7b04c3fdb085d4d6ae/pluggy-1.2.0-py3-none-any.whl.metadata Using cached pluggy-1.2.0-py3-none-any.whl.metadata (4.4 kB) Collecting trove-classifiers (from hatchling>=1.5->hatch-jupyter-builder>=0.8.1) Obtaining dependency information for trove-classifiers from https://files.pythonhosted.org/packages/14/c6/35e478a586e857c2a6d31fc7b1586d4ff965f729a290552b5c2eb7b9f807/trove_classifiers-2023.8.7-py3-none-any.whl.metadata Using cached trove_classifiers-2023.8.7-py3-none-any.whl.metadata (2.2 kB) Using cached hatchling-1.18.0-py3-none-any.whl (75 kB) Using cached editables-0.5-py3-none-any.whl (5.1 kB) Using cached pathspec-0.11.2-py3-none-any.whl (29 kB) Using cached pluggy-1.2.0-py3-none-any.whl (17 kB) Using cached trove_classifiers-2023.8.7-py3-none-any.whl (13 kB) Installing collected packages: trove-classifiers, pluggy, pathspec, packaging, editables, hatchling, hatch-jupyter-builder Successfully installed editables-0.5 hatch-jupyter-builder-0.8.3 hatchling-1.18.0 packaging-23.1 pathspec-0.11.2 pluggy-1.2.0 trove-classifiers-2023.8.7 Installing backend dependencies ... done Running command Preparing editable metadata (pyproject.toml) INFO:hatch_jupyter_builder.utils:Running jupyter-builder INFO:hatch_jupyter_builder.utils:Building with hatch_jupyter_builder.npm_builder INFO:hatch_jupyter_builder.utils:With kwargs: {'path': '.', 'build_cmd': 'build', 'npm': ['jlpm']} INFO:hatch_jupyter_builder.utils:Installing build dependencies with npm. This may take a while... INFO:hatch_jupyter_builder.utils:> /tmp/pip-build-env-dt0qy6gp/overlay/bin/jlpm install Traceback (most recent call last): File "/tmp/pip-build-env-dt0qy6gp/overlay/bin/jlpm", line 8, in sys.exit(main()) ^^^^^^ File "/tmp/pip-build-env-dt0qy6gp/overlay/lib/python3.11/site-packages/jupyterlab/jlpmapp.py", line 44, in main execvp("node", ["node", YARN_PATH] + argv) File "/tmp/pip-build-env-dt0qy6gp/overlay/lib/python3.11/site-packages/jupyterlab/jlpmapp.py", line 25, in execvp cmd = which(cmd) ^^^^^^^^^^ File "/tmp/pip-build-env-dt0qy6gp/overlay/lib/python3.11/site-packages/jupyterlab_server/process.py", line 58, in which raise ValueError(msg) ValueError: Please install Node.js and npm before continuing installation. You may be able to install Node.js from your package manager, from conda, or directly from the Node.js website (https://nodejs.org). Traceback (most recent call last): File "/home/jovyan/mambaforge/envs/ipydatagrid-dev/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 167, in prepare_metadata_for_build_editable hook = backend.prepare_metadata_for_build_editable ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'hatchling.build' has no attribute 'prepare_metadata_for_build_editable' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/jovyan/mambaforge/envs/ipydatagrid-dev/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in main() File "/home/jovyan/mambaforge/envs/ipydatagrid-dev/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/jovyan/mambaforge/envs/ipydatagrid-dev/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 176, in prepare_metadata_for_build_editable whl_basename = build_hook(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-dt0qy6gp/overlay/lib/python3.11/site-packages/hatchling/build.py", line 78, in build_editable return os.path.basename(next(builder.build(wheel_directory, ['editable']))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-dt0qy6gp/overlay/lib/python3.11/site-packages/hatchling/builders/plugin/interface.py", line 150, in build build_hook.initialize(version, build_data) File "/tmp/pip-build-env-dt0qy6gp/normal/lib/python3.11/site-packages/hatch_jupyter_builder/plugin.py", line 87, in initialize raise e File "/tmp/pip-build-env-dt0qy6gp/normal/lib/python3.11/site-packages/hatch_jupyter_builder/plugin.py", line 82, in initialize build_func(self.target_name, version, **build_kwargs) File "/tmp/pip-build-env-dt0qy6gp/normal/lib/python3.11/site-packages/hatch_jupyter_builder/utils.py", line 113, in npm_builder run([*npm_cmd, "install"], cwd=str(abs_path)) File "/tmp/pip-build-env-dt0qy6gp/normal/lib/python3.11/site-packages/hatch_jupyter_builder/utils.py", line 229, in run return subprocess.check_call(cmd, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/jovyan/mambaforge/envs/ipydatagrid-dev/lib/python3.11/subprocess.py", line 413, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/tmp/pip-build-env-dt0qy6gp/overlay/bin/jlpm', 'install']' returned non-zero exit status 1. error: subprocess-exited-with-error × Preparing editable metadata (pyproject.toml) 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/jovyan/mambaforge/envs/ipydatagrid-dev/bin/python3.11 /home/jovyan/mambaforge/envs/ipydatagrid-dev/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py prepare_metadata_for_build_editable /tmp/tmpupcr6ks2 cwd: /home/jovyan/ipydatagrid Preparing editable metadata (pyproject.toml) ... error error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. ```
martinRenou commented 1 year ago

Can you try again and making sure nodejs and yarn are installed this time? Also you may need to make sure to use JupyterLab 3 in your dev setup while https://github.com/bloomberg/ipydatagrid/pull/417 is not finished

alphaparrot commented 1 year ago

I'm running into the same problem; yarn and nodejs are both installed with the most recent versions, and I'm using JupyterLab 3 in my dev setup. It's possible the root error is not related to hatchling (and is simply triggering this particular exception); I get a different error related to js/datagrid.ts and js/plugin.ts after upgrading nodejs to the most recent version:

  js/datagrid.ts(525,35): error TS2345: Argument of type 'FeatherGrid' is not assignable to parameter of type 'Widget'.
    The types of 'title.owner.layout' are incompatible between these types.
      Type 'import("/home/ubuntu/ipydatagrid-dev/node_modules/@lumino/widgets/types/layout").Layout | null' is not assignable to type 'import("/home/ubuntu/ipydatagrid-dev/node_modules/@jupyter-widgets/base/node_modules/@lumino/widgets/types/layout").Layout | null'.
        Property '[Symbol.iterator]' is missing in type 'import("/home/ubuntu/ipydatagrid-dev/node_modules/@lumino/widgets/types/layout").Layout' but required in type 'import("/home/ubuntu/ipydatagrid-dev/node_modules/@jupyter-widgets/base/node_modules/@lumino/widgets/types/layout").Layout'.
  js/plugin.ts(23,14): error TS2322: Type 'Token<IJupyterWidgetRegistry>' is not assignable to type 'Token<any>'.
    Types have separate declarations of a private property '_tokenStructuralPropertyT'.
  Traceback (most recent call last):
    File "/home/ubuntu/ipydatagrid-dev/ipydg-env/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 167, in prepare_metadata_for_build_editable
      hook = backend.prepare_metadata_for_build_editable
  AttributeError: module 'hatchling.build' has no attribute 'prepare_metadata_for_build_editable'
alphaparrot commented 1 year ago

Another possible clue: it may be that some of the nodejs dependencies are incorrect:

  ➤ YN0000: ┌ Resolution step
  ➤ YN0002: │ @jupyterlab/apputils@npm:3.6.5 doesn't provide crypto (p168f6), requested by @lumino/coreutils
  ➤ YN0002: │ @jupyterlab/coreutils@npm:5.6.5 doesn't provide crypto (p5981e), requested by @lumino/coreutils
  ➤ YN0002: │ @jupyterlab/nbformat@npm:3.6.5 doesn't provide crypto (p9afaf), requested by @lumino/coreutils
  ➤ YN0002: │ @jupyterlab/observables@npm:4.6.5 doesn't provide crypto (p81572), requested by @lumino/coreutils
  ➤ YN0002: │ @jupyterlab/services@npm:6.6.5 doesn't provide crypto (p86c12), requested by @lumino/coreutils
  ➤ YN0002: │ @jupyterlab/services@npm:7.0.5 doesn't provide react (p4d970), requested by @jupyterlab/settingregistry
  ➤ YN0002: │ @jupyterlab/settingregistry@npm:3.6.5 doesn't provide crypto (p29a2a), requested by @lumino/coreutils
  ➤ YN0002: │ @jupyterlab/statedb@npm:3.6.5 doesn't provide crypto (p76c48), requested by @lumino/coreutils
  ➤ YN0002: │ @jupyterlab/translation@npm:3.6.5 doesn't provide crypto (pedca7), requested by @lumino/coreutils
  ➤ YN0002: │ @jupyterlab/ui-components@npm:3.6.5 [225ad] doesn't provide crypto (p99620), requested by @lumino/coreutils
  ➤ YN0002: │ @lumino/application@npm:1.31.4 doesn't provide crypto (pb2012), requested by @lumino/coreutils
  ➤ YN0002: │ @lumino/commands@npm:1.21.1 doesn't provide crypto (pa4fb2), requested by @lumino/coreutils
  ➤ YN0002: │ @lumino/datagrid@npm:0.36.9 doesn't provide crypto (pba09e), requested by @lumino/coreutils
  ➤ YN0002: │ @lumino/dragdrop@npm:1.14.5 doesn't provide crypto (p0bd32), requested by @lumino/coreutils
  ➤ YN0002: │ @lumino/polling@npm:1.11.4 doesn't provide crypto (pf3e88), requested by @lumino/coreutils
  ➤ YN0002: │ @lumino/widgets@npm:1.37.2 doesn't provide crypto (p092fb), requested by @lumino/coreutils
  ➤ YN0002: │ ipydatagrid@workspace:. doesn't provide crypto (p6d0e9), requested by @lumino/coreutils
  ➤ YN0060: │ ipydatagrid@workspace:. provides typescript (pde841) with version 4.2.4, which doesn't satisfy what ts-jest requests
  ➤ YN0002: │ svg-url-loader@npm:3.0.3 doesn't provide webpack (p260b6), requested by file-loader
  ➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
  ➤ YN0000: └ Completed in 0s 380ms
  ➤ YN0000: ┌ Fetch step
  ➤ YN0000: └ Completed in 0s 547ms
  ➤ YN0000: ┌ Link step
  ➤ YN0000: └ Completed in 0s 670ms
  ➤ YN0000: Done with warnings in 1s 705ms

crypto as far as I'm aware ought to be a built-in now

martinRenou commented 1 year ago

I believe this is fixed by #417

jgunstone commented 1 year ago

just tried this again with a new env and got the same error -

image

AttributeError: module 'hatchling.build' has no attribute 'prepare_metadata_for_build_editable'

@ollyhensby also tried and got the same error

ollyhensby commented 1 year ago

Looks like it fails when it tries to run jlpm install.

For me it is returning:

internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module 'worker_threads'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at /home/jovyan/mambaforge/envs/ipydatagrid-dev/lib/python3.11/site-packages/jupyterlab/staging/yarn.js:423:2576
    at Object.<anonymous> (/home/jovyan/mambaforge/envs/ipydatagrid-dev/lib/python3.11/site-packages/jupyterlab/staging/yarn.js:743:8770)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

I've tried updating nodejs and npm but still no luck.

nodejs version: v10.19.0 npm version: 6.14.4

martinRenou commented 1 year ago

I've tried updating nodejs and npm but still no luck

Which nodejs version have you tried when trying to update. v10 for nodejs looks quite old, I personally use v18 on my dev setup for ipydatagrid.

ollyhensby commented 1 year ago

I've tried updating nodejs and npm but still no luck

Which nodejs version have you tried when trying to update. v10 for nodejs looks quite old, I personally use v18 on my dev setup for ipydatagrid.

Hi Martin, yeah it looks like an issue with nodejs. sudo apt upgrade nodejs seems to only go up to v10.19. I will see how to upgrade to a later version and try the dev install again.

ollyhensby commented 1 year ago

I followed https://github.com/nodesource/distributions#installation-instructions and have upgraded nodejs to v20.7.0.

jlpm install runs successfully now.

martinRenou commented 1 year ago

Nice! Alternatively, note that you can also install nodejs from conda-forge with mamba/conda/micromamba install -c conda-forge nodejs

ollyhensby commented 1 year ago

Nice! Alternatively, note that you can also install nodejs from conda-forge with mamba/conda/micromamba install -c conda-forge nodejs

Great! Thank you for the help

jgunstone commented 1 year ago

mamba create -n ipydatagrid-dev ipywidgets=8 jupyterlab nodejs worked

i guess it failed here: mamba create -n ipydatagrid-dev ipywidgets=8 jupyterlab because it defaulted to an old node version on my os

thanks both