Comfy UI Playbook Installation Error

I get this error when installing the ComfyUI requirements.txt

Please assist!

Building wheels for collected packages: PyOpenGL-accelerate
Building wheel for PyOpenGL-accelerate (pyproject.toml) … error
error: subprocess-exited-with-error

× Building wheel for PyOpenGL-accelerate (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [72 lines of output]
/tmp/pip-build-env-s145l_6x/overlay/lib/python3.12/site-packages/setuptools/_distutils/extension.py:150: UserWarning: Unknown Extension options: ‘compiler_directives’
warnings.warn(msg)
/tmp/pip-build-env-s145l_6x/overlay/lib/python3.12/site-packages/setuptools/_distutils/extension.py:150: UserWarning: Unknown Extension options: ‘compiler_directives’
warnings.warn(msg)
/tmp/pip-build-env-s145l_6x/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py:287: UserWarning: Unknown distribution option: ‘build_requires’
warnings.warn(msg)
/tmp/pip-build-env-s145l_6x/overlay/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: project.license as a TOML table is deprecated
!!

          ********************************************************************************
          Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).

          By 2027-Feb-18, you need to update your project and remove deprecated calls
          or your builds will no longer be supported.

          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************

  !!
    corresp(dist, value, root_dir)
  /tmp/pip-build-env-s145l_6x/overlay/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated.
  !!

          ********************************************************************************
          Please consider removing the following classifiers in favor of a SPDX license expression:

          License :: OSI Approved :: BSD License

          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************

  !!
    dist._finalize_license_expression()
  /tmp/pip-build-env-s145l_6x/overlay/lib/python3.12/site-packages/setuptools/dist.py:765: SetuptoolsDeprecationWarning: License classifiers are deprecated.
  !!

          ********************************************************************************
          Please consider removing the following classifiers in favor of a SPDX license expression:

          License :: OSI Approved :: BSD License

          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************

  !!
    self._finalize_license_expression()
  running bdist_wheel
  running build
  running build_py
  creating build/lib.linux-aarch64-cpython-312/OpenGL_accelerate
  copying OpenGL_accelerate/__init__.py -> build/lib.linux-aarch64-cpython-312/OpenGL_accelerate
  running egg_info
  writing PyOpenGL_accelerate.egg-info/PKG-INFO
  writing dependency_links to PyOpenGL_accelerate.egg-info/dependency_links.txt
  writing top-level names to PyOpenGL_accelerate.egg-info/top_level.txt
  reading manifest file 'PyOpenGL_accelerate.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no files found matching 'src/*.c'
  writing manifest file 'PyOpenGL_accelerate.egg-info/SOURCES.txt'
  copying OpenGL_accelerate/formathandler.pxd -> build/lib.linux-aarch64-cpython-312/OpenGL_accelerate
  copying OpenGL_accelerate/wrapper.pxd -> build/lib.linux-aarch64-cpython-312/OpenGL_accelerate
  running build_ext
  Compiling src/wrapper.pyx because it changed.
  [1/1] Cythonizing src/wrapper.pyx
  building 'OpenGL_accelerate.wrapper' extension
  creating build/temp.linux-aarch64-cpython-312/src
  aarch64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/tmp/pip-install-7sorcfps/pyopengl-accelerate_5efb924e1dda40d8aa8c02f4170a506b/src -I/tmp/pip-install-7sorcfps/pyopengl-accelerate_5efb924e1dda40d8aa8c02f4170a506b -I/home/admin/comfyui-env/include -I/usr/include/python3.12 -c src/wrapper.c -o build/temp.linux-aarch64-cpython-312/src/wrapper.o
  src/wrapper.c:42:10: fatal error: Python.h: No such file or directory
     42 | #include "Python.h"
        |          ^~~~~~~~~~
  compilation terminated.
  error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for PyOpenGL-accelerate
Failed to build PyOpenGL-accelerate
ERROR: Could not build wheels for PyOpenGL-accelerate, which is required to install pyproject.toml-based projects
(comfyui-env) admin@spark-f914:~/ComfyUI$

Hi johnross,

The error here:

suggests that you do not have the necessary header and static files for Python development.

Can you try:
deactivate

sudo apt-get update
sudo apt-get install -y python3-dev

After that, can you try reactivating your virtual environment and installing the requirements again?