ansible / ansible-jupyter-kernel

Jupyter Notebook Kernel for running Ansible Tasks and Playbooks
Other
534 stars 62 forks source link

pip install fails on python3.12 #97

Open erentar opened 8 months ago

erentar commented 8 months ago

$ pip3 install ansible-kernel

Defaulting to user installation because normal site-packages is not writeable
Collecting ansible-kernel
  Using cached ansible-kernel-1.0.0.tar.gz (98 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Requirement already satisfied: ansible in /home/user/.local/lib/python3.12/site-packages (from ansible-kernel) (9.1.0)
Collecting ansible-runner>=1.1.0 (from ansible-kernel)
  Using cached ansible_runner-2.3.4-py3-none-any.whl.metadata (3.5 kB)
Requirement already satisfied: PyYAML in /home/user/.local/lib/python3.12/site-packages (from ansible-kernel) (6.0.1)
Requirement already satisfied: psutil in /usr/lib64/python3.12/site-packages (from ansible-kernel) (5.9.5)
Collecting jupyter (from ansible-kernel)
  Using cached jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)
Collecting tqdm (from ansible-kernel)
  Using cached tqdm-4.66.2-py3-none-any.whl.metadata (57 kB)
Collecting docopt (from ansible-kernel)
  Using cached docopt-0.6.2-py2.py3-none-any.whl
Requirement already satisfied: six in /usr/lib/python3.12/site-packages (from ansible-kernel) (1.16.0)
Collecting ipywidgets (from ansible-kernel)
  Using cached ipywidgets-8.1.2-py3-none-any.whl.metadata (2.4 kB)
Requirement already satisfied: pexpect>=4.5 in /usr/lib/python3.12/site-packages (from ansible-runner>=1.1.0->ansible-kernel) (4.8.0)
Requirement already satisfied: packaging in /usr/lib/python3.12/site-packages (from ansible-runner>=1.1.0->ansible-kernel) (23.1)
Collecting python-daemon (from ansible-runner>=1.1.0->ansible-kernel)
  Using cached python_daemon-3.0.1-py3-none-any.whl (31 kB)
Requirement already satisfied: ansible-core~=2.16.1 in /home/user/.local/lib/python3.12/site-packages (from ansible->ansible-kernel) (2.16.2)
Requirement already satisfied: comm>=0.1.3 in /home/user/.local/lib/python3.12/site-packages (from ipywidgets->ansible-kernel) (0.2.0)
Requirement already satisfied: ipython>=6.1.0 in /usr/lib/python3.12/site-packages (from ipywidgets->ansible-kernel) (8.14.0)
Requirement already satisfied: traitlets>=4.3.1 in /usr/lib/python3.12/site-packages (from ipywidgets->ansible-kernel) (5.9.0)
Collecting widgetsnbextension~=4.0.10 (from ipywidgets->ansible-kernel)
  Using cached widgetsnbextension-4.0.10-py3-none-any.whl.metadata (1.6 kB)
Collecting jupyterlab-widgets~=3.0.10 (from ipywidgets->ansible-kernel)
  Using cached jupyterlab_widgets-3.0.10-py3-none-any.whl.metadata (4.1 kB)
Collecting notebook (from jupyter->ansible-kernel)
  Using cached notebook-7.0.8-py3-none-any.whl.metadata (10 kB)
Collecting qtconsole (from jupyter->ansible-kernel)
  Using cached qtconsole-5.5.1-py3-none-any.whl.metadata (5.1 kB)
Collecting jupyter-console (from jupyter->ansible-kernel)
  Using cached jupyter_console-6.6.3-py3-none-any.whl (24 kB)
Requirement already satisfied: nbconvert in /home/user/.local/lib/python3.12/site-packages (from jupyter->ansible-kernel) (7.11.0)
Requirement already satisfied: ipykernel in /home/user/.local/lib/python3.12/site-packages (from jupyter->ansible-kernel) (6.26.0)
Requirement already satisfied: jinja2>=3.0.0 in /home/user/.local/lib/python3.12/site-packages (from ansible-core~=2.16.1->ansible->ansible-kernel) (3.1.2)
Requirement already satisfied: cryptography in /home/user/.local/lib/python3.12/site-packages (from ansible-core~=2.16.1->ansible->ansible-kernel) (41.0.5)
Requirement already satisfied: resolvelib<1.1.0,>=0.5.3 in /home/user/.local/lib/python3.12/site-packages (from ansible-core~=2.16.1->ansible->ansible-kernel) (1.0.1)
Requirement already satisfied: backcall in /usr/lib/python3.12/site-packages (from ipython>=6.1.0->ipywidgets->ansible-kernel) (0.1.0)
Requirement already satisfied: decorator in /usr/lib/python3.12/site-packages (from ipython>=6.1.0->ipywidgets->ansible-kernel) (5.1.1)
Requirement already satisfied: jedi>=0.16 in /usr/lib/python3.12/site-packages (from ipython>=6.1.0->ipywidgets->ansible-kernel) (0.19.0)
Requirement already satisfied: matplotlib-inline in /usr/lib/python3.12/site-packages (from ipython>=6.1.0->ipywidgets->ansible-kernel) (0.1.6)
Requirement already satisfied: pickleshare in /usr/lib/python3.12/site-packages (from ipython>=6.1.0->ipywidgets->ansible-kernel) (0.7.5)
Requirement already satisfied: prompt_toolkit!=3.0.37,<3.1.0,>=3.0.30 in /usr/lib/python3.12/site-packages (from ipython>=6.1.0->ipywidgets->ansible-kernel) (3.0.38)
Requirement already satisfied: pygments>=2.4.0 in /usr/lib/python3.12/site-packages (from ipython>=6.1.0->ipywidgets->ansible-kernel) (2.15.1)
Requirement already satisfied: stack_data in /usr/lib/python3.12/site-packages (from ipython>=6.1.0->ipywidgets->ansible-kernel) (0.6.2)
Requirement already satisfied: ptyprocess>=0.5 in /usr/lib/python3.12/site-packages (from pexpect>=4.5->ansible-runner>=1.1.0->ansible-kernel) (0.7.0)
Requirement already satisfied: debugpy>=1.6.5 in /home/user/.local/lib/python3.12/site-packages (from ipykernel->jupyter->ansible-kernel) (1.8.0)
Requirement already satisfied: jupyter-client>=6.1.12 in /home/user/.local/lib/python3.12/site-packages (from ipykernel->jupyter->ansible-kernel) (8.6.0)
Requirement already satisfied: jupyter-core!=5.0.*,>=4.12 in /home/user/.local/lib/python3.12/site-packages (from ipykernel->jupyter->ansible-kernel) (5.5.0)
Requirement already satisfied: nest-asyncio in /home/user/.local/lib/python3.12/site-packages (from ipykernel->jupyter->ansible-kernel) (1.5.8)
Requirement already satisfied: pyzmq>=20 in /home/user/.local/lib/python3.12/site-packages (from ipykernel->jupyter->ansible-kernel) (25.1.1)
Requirement already satisfied: tornado>=6.1 in /home/user/.local/lib/python3.12/site-packages (from ipykernel->jupyter->ansible-kernel) (6.3.3)
Requirement already satisfied: beautifulsoup4 in /home/user/.local/lib/python3.12/site-packages (from nbconvert->jupyter->ansible-kernel) (4.12.2)
Requirement already satisfied: bleach!=5.0.0 in /home/user/.local/lib/python3.12/site-packages (from nbconvert->jupyter->ansible-kernel) (6.1.0)
Requirement already satisfied: defusedxml in /home/user/.local/lib/python3.12/site-packages (from nbconvert->jupyter->ansible-kernel) (0.7.1)
Requirement already satisfied: jupyterlab-pygments in /home/user/.local/lib/python3.12/site-packages (from nbconvert->jupyter->ansible-kernel) (0.2.2)
Requirement already satisfied: markupsafe>=2.0 in /home/user/.local/lib/python3.12/site-packages (from nbconvert->jupyter->ansible-kernel) (2.1.3)
Requirement already satisfied: mistune<4,>=2.0.3 in /home/user/.local/lib/python3.12/site-packages (from nbconvert->jupyter->ansible-kernel) (3.0.2)
Requirement already satisfied: nbclient>=0.5.0 in /home/user/.local/lib/python3.12/site-packages (from nbconvert->jupyter->ansible-kernel) (0.9.0)
Requirement already satisfied: nbformat>=5.7 in /home/user/.local/lib/python3.12/site-packages (from nbconvert->jupyter->ansible-kernel) (5.9.2)
Requirement already satisfied: pandocfilters>=1.4.1 in /home/user/.local/lib/python3.12/site-packages (from nbconvert->jupyter->ansible-kernel) (1.5.0)
Requirement already satisfied: tinycss2 in /home/user/.local/lib/python3.12/site-packages (from nbconvert->jupyter->ansible-kernel) (1.2.1)
Requirement already satisfied: jupyter-server<3,>=2.4.0 in /home/user/.local/lib/python3.12/site-packages (from notebook->jupyter->ansible-kernel) (2.10.1)
Requirement already satisfied: jupyterlab-server<3,>=2.22.1 in /home/user/.local/lib/python3.12/site-packages (from notebook->jupyter->ansible-kernel) (2.25.1)
Requirement already satisfied: jupyterlab<4.1,>=4.0.2 in /home/user/.local/lib/python3.12/site-packages (from notebook->jupyter->ansible-kernel) (4.0.10)
Requirement already satisfied: notebook-shim<0.3,>=0.2 in /home/user/.local/lib/python3.12/site-packages (from notebook->jupyter->ansible-kernel) (0.2.3)
Collecting docutils (from python-daemon->ansible-runner>=1.1.0->ansible-kernel)
  Using cached docutils-0.20.1-py3-none-any.whl.metadata (2.8 kB)
Requirement already satisfied: lockfile>=0.10 in /usr/lib/python3.12/site-packages (from python-daemon->ansible-runner>=1.1.0->ansible-kernel) (0.12.2)
Requirement already satisfied: setuptools>=62.4.0 in /usr/lib/python3.12/site-packages (from python-daemon->ansible-runner>=1.1.0->ansible-kernel) (67.7.2)
Collecting qtpy>=2.4.0 (from qtconsole->jupyter->ansible-kernel)
  Using cached QtPy-2.4.1-py3-none-any.whl.metadata (12 kB)
Requirement already satisfied: webencodings in /home/user/.local/lib/python3.12/site-packages (from bleach!=5.0.0->nbconvert->jupyter->ansible-kernel) (0.5.1)
Requirement already satisfied: parso<0.9.0,>=0.8.3 in /usr/lib/python3.12/site-packages (from jedi>=0.16->ipython>=6.1.0->ipywidgets->ansible-kernel) (0.8.3)
Requirement already satisfied: python-dateutil>=2.8.2 in /usr/lib/python3.12/site-packages (from jupyter-client>=6.1.12->ipykernel->jupyter->ansible-kernel) (2.8.2)
Requirement already satisfied: platformdirs>=2.5 in /usr/lib/python3.12/site-packages (from jupyter-core!=5.0.*,>=4.12->ipykernel->jupyter->ansible-kernel) (3.9.1)
Requirement already satisfied: anyio>=3.1.0 in /home/user/.local/lib/python3.12/site-packages (from jupyter-server<3,>=2.4.0->notebook->jupyter->ansible-kernel) (4.0.0)
Requirement already satisfied: argon2-cffi in /home/user/.local/lib/python3.12/site-packages (from jupyter-server<3,>=2.4.0->notebook->jupyter->ansible-kernel) (23.1.0)
Requirement already satisfied: jupyter-events>=0.9.0 in /home/user/.local/lib/python3.12/site-packages (from jupyter-server<3,>=2.4.0->notebook->jupyter->ansible-kernel) (0.9.0)
Requirement already satisfied: jupyter-server-terminals in /home/user/.local/lib/python3.12/site-packages (from jupyter-server<3,>=2.4.0->notebook->jupyter->ansible-kernel) (0.4.4)
Requirement already satisfied: overrides in /home/user/.local/lib/python3.12/site-packages (from jupyter-server<3,>=2.4.0->notebook->jupyter->ansible-kernel) (7.4.0)
Requirement already satisfied: prometheus-client in /home/user/.local/lib/python3.12/site-packages (from jupyter-server<3,>=2.4.0->notebook->jupyter->ansible-kernel) (0.18.0)
Requirement already satisfied: send2trash>=1.8.2 in /home/user/.local/lib/python3.12/site-packages (from jupyter-server<3,>=2.4.0->notebook->jupyter->ansible-kernel) (1.8.2)
Requirement already satisfied: terminado>=0.8.3 in /home/user/.local/lib/python3.12/site-packages (from jupyter-server<3,>=2.4.0->notebook->jupyter->ansible-kernel) (0.18.0)
Requirement already satisfied: websocket-client in /home/user/.local/lib/python3.12/site-packages (from jupyter-server<3,>=2.4.0->notebook->jupyter->ansible-kernel) (1.6.4)
Requirement already satisfied: async-lru>=1.0.0 in /home/user/.local/lib/python3.12/site-packages (from jupyterlab<4.1,>=4.0.2->notebook->jupyter->ansible-kernel) (2.0.4)
Requirement already satisfied: jupyter-lsp>=2.0.0 in /home/user/.local/lib/python3.12/site-packages (from jupyterlab<4.1,>=4.0.2->notebook->jupyter->ansible-kernel) (2.2.0)
Requirement already satisfied: babel>=2.10 in /home/user/.local/lib/python3.12/site-packages (from jupyterlab-server<3,>=2.22.1->notebook->jupyter->ansible-kernel) (2.13.1)
Requirement already satisfied: json5>=0.9.0 in /home/user/.local/lib/python3.12/site-packages (from jupyterlab-server<3,>=2.22.1->notebook->jupyter->ansible-kernel) (0.9.14)
Requirement already satisfied: jsonschema>=4.18.0 in /home/user/.local/lib/python3.12/site-packages (from jupyterlab-server<3,>=2.22.1->notebook->jupyter->ansible-kernel) (4.20.0)
Requirement already satisfied: requests>=2.31 in /home/user/.local/lib/python3.12/site-packages (from jupyterlab-server<3,>=2.22.1->notebook->jupyter->ansible-kernel) (2.31.0)
Requirement already satisfied: fastjsonschema in /home/user/.local/lib/python3.12/site-packages (from nbformat>=5.7->nbconvert->jupyter->ansible-kernel) (2.19.0)
Requirement already satisfied: wcwidth in /usr/lib/python3.12/site-packages (from prompt_toolkit!=3.0.37,<3.1.0,>=3.0.30->ipython>=6.1.0->ipywidgets->ansible-kernel) (0.2.5)
Requirement already satisfied: soupsieve>1.2 in /home/user/.local/lib/python3.12/site-packages (from beautifulsoup4->nbconvert->jupyter->ansible-kernel) (2.5)
Requirement already satisfied: cffi>=1.12 in /home/user/.local/lib/python3.12/site-packages (from cryptography->ansible-core~=2.16.1->ansible->ansible-kernel) (1.16.0)
Requirement already satisfied: executing>=1.2.0 in /usr/lib/python3.12/site-packages (from stack_data->ipython>=6.1.0->ipywidgets->ansible-kernel) (1.2.0)
Requirement already satisfied: asttokens>=2.1.0 in /usr/lib/python3.12/site-packages (from stack_data->ipython>=6.1.0->ipywidgets->ansible-kernel) (2.4.1)
Requirement already satisfied: pure-eval in /usr/lib/python3.12/site-packages (from stack_data->ipython>=6.1.0->ipywidgets->ansible-kernel) (0.2.2)
Requirement already satisfied: idna>=2.8 in /usr/lib/python3.12/site-packages (from anyio>=3.1.0->jupyter-server<3,>=2.4.0->notebook->jupyter->ansible-kernel) (3.4)
Requirement already satisfied: sniffio>=1.1 in /home/user/.local/lib/python3.12/site-packages (from anyio>=3.1.0->jupyter-server<3,>=2.4.0->notebook->jupyter->ansible-kernel) (1.3.0)
Requirement already satisfied: pycparser in /home/user/.local/lib/python3.12/site-packages (from cffi>=1.12->cryptography->ansible-core~=2.16.1->ansible->ansible-kernel) (2.21)
Requirement already satisfied: attrs>=22.2.0 in /home/user/.local/lib/python3.12/site-packages (from jsonschema>=4.18.0->jupyterlab-server<3,>=2.22.1->notebook->jupyter->ansible-kernel) (23.1.0)
Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /home/user/.local/lib/python3.12/site-packages (from jsonschema>=4.18.0->jupyterlab-server<3,>=2.22.1->notebook->jupyter->ansible-kernel) (2023.11.1)
Requirement already satisfied: referencing>=0.28.4 in /home/user/.local/lib/python3.12/site-packages (from jsonschema>=4.18.0->jupyterlab-server<3,>=2.22.1->notebook->jupyter->ansible-kernel) (0.31.0)
Requirement already satisfied: rpds-py>=0.7.1 in /home/user/.local/lib/python3.12/site-packages (from jsonschema>=4.18.0->jupyterlab-server<3,>=2.22.1->notebook->jupyter->ansible-kernel) (0.13.0)
Requirement already satisfied: python-json-logger>=2.0.4 in /home/user/.local/lib/python3.12/site-packages (from jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter->ansible-kernel) (2.0.7)
Requirement already satisfied: rfc3339-validator in /home/user/.local/lib/python3.12/site-packages (from jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter->ansible-kernel) (0.1.4)
Requirement already satisfied: rfc3986-validator>=0.1.1 in /home/user/.local/lib/python3.12/site-packages (from jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter->ansible-kernel) (0.1.1)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/lib/python3.12/site-packages (from requests>=2.31->jupyterlab-server<3,>=2.22.1->notebook->jupyter->ansible-kernel) (3.2.0)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/lib/python3.12/site-packages (from requests>=2.31->jupyterlab-server<3,>=2.22.1->notebook->jupyter->ansible-kernel) (1.26.18)
Requirement already satisfied: certifi>=2017.4.17 in /home/user/.local/lib/python3.12/site-packages (from requests>=2.31->jupyterlab-server<3,>=2.22.1->notebook->jupyter->ansible-kernel) (2023.7.22)
Requirement already satisfied: argon2-cffi-bindings in /home/user/.local/lib/python3.12/site-packages (from argon2-cffi->jupyter-server<3,>=2.4.0->notebook->jupyter->ansible-kernel) (21.2.0)
Requirement already satisfied: fqdn in /home/user/.local/lib/python3.12/site-packages (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter->ansible-kernel) (1.5.1)
Requirement already satisfied: isoduration in /home/user/.local/lib/python3.12/site-packages (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter->ansible-kernel) (20.11.0)
Requirement already satisfied: jsonpointer>1.13 in /home/user/.local/lib/python3.12/site-packages (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter->ansible-kernel) (2.4)
Requirement already satisfied: uri-template in /home/user/.local/lib/python3.12/site-packages (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter->ansible-kernel) (1.3.0)
Requirement already satisfied: webcolors>=1.11 in /home/user/.local/lib/python3.12/site-packages (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter->ansible-kernel) (1.13)
Requirement already satisfied: arrow>=0.15.0 in /home/user/.local/lib/python3.12/site-packages (from isoduration->jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter->ansible-kernel) (1.3.0)
Requirement already satisfied: types-python-dateutil>=2.8.10 in /home/user/.local/lib/python3.12/site-packages (from arrow>=0.15.0->isoduration->jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter->ansible-kernel) (2.8.19.14)
Using cached ansible_runner-2.3.4-py3-none-any.whl (81 kB)
Using cached ipywidgets-8.1.2-py3-none-any.whl (139 kB)
Using cached tqdm-4.66.2-py3-none-any.whl (78 kB)
Using cached jupyterlab_widgets-3.0.10-py3-none-any.whl (215 kB)
Using cached widgetsnbextension-4.0.10-py3-none-any.whl (2.3 MB)
Using cached notebook-7.0.8-py3-none-any.whl (4.0 MB)
Using cached qtconsole-5.5.1-py3-none-any.whl (123 kB)
Using cached QtPy-2.4.1-py3-none-any.whl (93 kB)
Using cached docutils-0.20.1-py3-none-any.whl (572 kB)
Building wheels for collected packages: ansible-kernel
  Building wheel for ansible-kernel (pyproject.toml): started
  Building wheel for ansible-kernel (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error

  × Building wheel for ansible-kernel (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [156 lines of output]
      /tmp/pip-build-env-p908b0re/overlay/lib/python3.12/site-packages/setuptools/dist.py:472: SetuptoolsDeprecationWarning: Invalid dash-separated options
      !!

              ********************************************************************************
              Usage of dash-separated 'description-file' will not be supported in future
              versions. Please use the underscore name 'description_file' instead.

              By 2024-Sep-26, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.

              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************

      !!
        opt = self.warn_dash_deprecation(opt, section)
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib
      creating build/lib/ansible_kernel
      copying ansible_kernel/widgets.py -> build/lib/ansible_kernel
      copying ansible_kernel/update_module_cache.py -> build/lib/ansible_kernel
      copying ansible_kernel/task_args.py -> build/lib/ansible_kernel
      copying ansible_kernel/play_args.py -> build/lib/ansible_kernel
      copying ansible_kernel/modules.py -> build/lib/ansible_kernel
      copying ansible_kernel/module_args.py -> build/lib/ansible_kernel
      copying ansible_kernel/kernel.py -> build/lib/ansible_kernel
      copying ansible_kernel/install.py -> build/lib/ansible_kernel
      copying ansible_kernel/convert_playbook.py -> build/lib/ansible_kernel
      copying ansible_kernel/__main__.py -> build/lib/ansible_kernel
      copying ansible_kernel/__init__.py -> build/lib/ansible_kernel
      creating build/lib/ansible_kernel/roles
      copying ansible_kernel/roles/__init__.py -> build/lib/ansible_kernel/roles
      creating build/lib/ansible_kernel/plugins
      copying ansible_kernel/plugins/__init__.py -> build/lib/ansible_kernel/plugins
      creating build/lib/ansible_kernel/exporters
      copying ansible_kernel/exporters/ansible_zip.py -> build/lib/ansible_kernel/exporters
      copying ansible_kernel/exporters/ansible_tasks.py -> build/lib/ansible_kernel/exporters
      copying ansible_kernel/exporters/ansible_playbook.py -> build/lib/ansible_kernel/exporters
      copying ansible_kernel/exporters/__init__.py -> build/lib/ansible_kernel/exporters
      creating build/lib/ansible_kernel/roles/ansible_kernel_helpers
      copying ansible_kernel/roles/ansible_kernel_helpers/__init__.py -> build/lib/ansible_kernel/roles/ansible_kernel_helpers
      creating build/lib/ansible_kernel/roles/ansible_kernel_helpers/library
      copying ansible_kernel/roles/ansible_kernel_helpers/library/pause_for_kernel.py -> build/lib/ansible_kernel/roles/ansible_kernel_helpers/library
      copying ansible_kernel/roles/ansible_kernel_helpers/library/__init__.py -> build/lib/ansible_kernel/roles/ansible_kernel_helpers/library
      creating build/lib/ansible_kernel/roles/ansible_kernel_helpers/action_plugins
      copying ansible_kernel/roles/ansible_kernel_helpers/action_plugins/pause_for_kernel.py -> build/lib/ansible_kernel/roles/ansible_kernel_helpers/action_plugins
      copying ansible_kernel/roles/ansible_kernel_helpers/action_plugins/__init__.py -> build/lib/ansible_kernel/roles/ansible_kernel_helpers/action_plugins
      creating build/lib/ansible_kernel/plugins/callback
      copying ansible_kernel/plugins/callback/ansible_kernel_helper.py -> build/lib/ansible_kernel/plugins/callback
      copying ansible_kernel/plugins/callback/__init__.py -> build/lib/ansible_kernel/plugins/callback
      creating build/lib/ansible_kernel/templates
      copying ansible_kernel/templates/ansible_playbook.tpl -> build/lib/ansible_kernel/templates
      copying ansible_kernel/templates/ansible_tasks.tpl -> build/lib/ansible_kernel/templates
      copying ansible_kernel/modules.yml -> build/lib/ansible_kernel
      copying ansible_kernel/module_args.yml -> build/lib/ansible_kernel
      installing to build/bdist.linux-x86_64/wheel
      running install
      running install_lib
      creating build/bdist.linux-x86_64
      creating build/bdist.linux-x86_64/wheel
      creating build/bdist.linux-x86_64/wheel/ansible_kernel
      copying build/lib/ansible_kernel/module_args.yml -> build/bdist.linux-x86_64/wheel/ansible_kernel
      copying build/lib/ansible_kernel/modules.yml -> build/bdist.linux-x86_64/wheel/ansible_kernel
      creating build/bdist.linux-x86_64/wheel/ansible_kernel/templates
      copying build/lib/ansible_kernel/templates/ansible_tasks.tpl -> build/bdist.linux-x86_64/wheel/ansible_kernel/templates
      copying build/lib/ansible_kernel/templates/ansible_playbook.tpl -> build/bdist.linux-x86_64/wheel/ansible_kernel/templates
      creating build/bdist.linux-x86_64/wheel/ansible_kernel/exporters
      copying build/lib/ansible_kernel/exporters/__init__.py -> build/bdist.linux-x86_64/wheel/ansible_kernel/exporters
      copying build/lib/ansible_kernel/exporters/ansible_playbook.py -> build/bdist.linux-x86_64/wheel/ansible_kernel/exporters
      copying build/lib/ansible_kernel/exporters/ansible_tasks.py -> build/bdist.linux-x86_64/wheel/ansible_kernel/exporters
      copying build/lib/ansible_kernel/exporters/ansible_zip.py -> build/bdist.linux-x86_64/wheel/ansible_kernel/exporters
      creating build/bdist.linux-x86_64/wheel/ansible_kernel/plugins
      creating build/bdist.linux-x86_64/wheel/ansible_kernel/plugins/callback
      copying build/lib/ansible_kernel/plugins/callback/__init__.py -> build/bdist.linux-x86_64/wheel/ansible_kernel/plugins/callback
      copying build/lib/ansible_kernel/plugins/callback/ansible_kernel_helper.py -> build/bdist.linux-x86_64/wheel/ansible_kernel/plugins/callback
      copying build/lib/ansible_kernel/plugins/__init__.py -> build/bdist.linux-x86_64/wheel/ansible_kernel/plugins
      creating build/bdist.linux-x86_64/wheel/ansible_kernel/roles
      creating build/bdist.linux-x86_64/wheel/ansible_kernel/roles/ansible_kernel_helpers
      creating build/bdist.linux-x86_64/wheel/ansible_kernel/roles/ansible_kernel_helpers/action_plugins
      copying build/lib/ansible_kernel/roles/ansible_kernel_helpers/action_plugins/__init__.py -> build/bdist.linux-x86_64/wheel/ansible_kernel/roles/ansible_kernel_helpers/action_plugins
      copying build/lib/ansible_kernel/roles/ansible_kernel_helpers/action_plugins/pause_for_kernel.py -> build/bdist.linux-x86_64/wheel/ansible_kernel/roles/ansible_kernel_helpers/action_plugins
      creating build/bdist.linux-x86_64/wheel/ansible_kernel/roles/ansible_kernel_helpers/library
      copying build/lib/ansible_kernel/roles/ansible_kernel_helpers/library/__init__.py -> build/bdist.linux-x86_64/wheel/ansible_kernel/roles/ansible_kernel_helpers/library
      copying build/lib/ansible_kernel/roles/ansible_kernel_helpers/library/pause_for_kernel.py -> build/bdist.linux-x86_64/wheel/ansible_kernel/roles/ansible_kernel_helpers/library
      copying build/lib/ansible_kernel/roles/ansible_kernel_helpers/__init__.py -> build/bdist.linux-x86_64/wheel/ansible_kernel/roles/ansible_kernel_helpers
      copying build/lib/ansible_kernel/roles/__init__.py -> build/bdist.linux-x86_64/wheel/ansible_kernel/roles
      copying build/lib/ansible_kernel/__init__.py -> build/bdist.linux-x86_64/wheel/ansible_kernel
      copying build/lib/ansible_kernel/__main__.py -> build/bdist.linux-x86_64/wheel/ansible_kernel
      copying build/lib/ansible_kernel/convert_playbook.py -> build/bdist.linux-x86_64/wheel/ansible_kernel
      copying build/lib/ansible_kernel/install.py -> build/bdist.linux-x86_64/wheel/ansible_kernel
      copying build/lib/ansible_kernel/kernel.py -> build/bdist.linux-x86_64/wheel/ansible_kernel
      copying build/lib/ansible_kernel/module_args.py -> build/bdist.linux-x86_64/wheel/ansible_kernel
      copying build/lib/ansible_kernel/modules.py -> build/bdist.linux-x86_64/wheel/ansible_kernel
      copying build/lib/ansible_kernel/play_args.py -> build/bdist.linux-x86_64/wheel/ansible_kernel
      copying build/lib/ansible_kernel/task_args.py -> build/bdist.linux-x86_64/wheel/ansible_kernel
      copying build/lib/ansible_kernel/update_module_cache.py -> build/bdist.linux-x86_64/wheel/ansible_kernel
      copying build/lib/ansible_kernel/widgets.py -> build/bdist.linux-x86_64/wheel/ansible_kernel
      running install_egg_info
      running egg_info
      writing ansible_kernel.egg-info/PKG-INFO
      writing dependency_links to ansible_kernel.egg-info/dependency_links.txt
      writing entry points to ansible_kernel.egg-info/entry_points.txt
      writing requirements to ansible_kernel.egg-info/requires.txt
      writing top-level names to ansible_kernel.egg-info/top_level.txt
      reading manifest file 'ansible_kernel.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      adding license file 'LICENSE.md'
      writing manifest file 'ansible_kernel.egg-info/SOURCES.txt'
      Copying ansible_kernel.egg-info to build/bdist.linux-x86_64/wheel/ansible_kernel-1.0.0-py3.12.egg-info
      running install_scripts
      Installing Ansible Kernel kernelspec
      Traceback (most recent call last):
        File "/home/user/.local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/home/user/.local/lib/python3.12/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/user/.local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-p908b0re/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 404, in build_wheel
          return self._build_with_temp_dir(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-p908b0re/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 389, in _build_with_temp_dir
          self.run_setup()
        File "/tmp/pip-build-env-p908b0re/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 480, in run_setup
          super().run_setup(setup_script=setup_script)
        File "/tmp/pip-build-env-p908b0re/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 30, in <module>
        File "/tmp/pip-build-env-p908b0re/overlay/lib/python3.12/site-packages/setuptools/__init__.py", line 103, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-p908b0re/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-p908b0re/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/tmp/pip-build-env-p908b0re/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/tmp/pip-build-env-p908b0re/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 963, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-p908b0re/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-p908b0re/normal/lib/python3.12/site-packages/wheel/bdist_wheel.py", line 403, in run
          self.run_command("install")
        File "/tmp/pip-build-env-p908b0re/overlay/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-p908b0re/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 963, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-p908b0re/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "<string>", line 14, in run
      ModuleNotFoundError: No module named 'jupyter_client'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for ansible-kernel
Failed to build ansible-kernel
ERROR: Could not build wheels for ansible-kernel, which is required to install pyproject.toml-based projects
anernest commented 5 months ago

I've hit the same issue. Curious if you came across a workaround?

zed commented 2 months ago

@anernest , to workaround:

      ModuleNotFoundError: No module named 'jupyter_client'

try, pip install jupyter first. It is mentioned in the install_requires but it is unavailable during pip install (on purpose) https://github.com/pypa/pip/issues/6193