Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF-generator plugins fail in "Deploy docs" step #169

Open
thieleju opened this issue May 10, 2022 · 2 comments
Open

PDF-generator plugins fail in "Deploy docs" step #169

thieleju opened this issue May 10, 2022 · 2 comments

Comments

@thieleju
Copy link

thieleju commented May 10, 2022

My goal is to generate a pdf from my mkdocs. Docs are working great, but I am unable to use "generate pdf" plugins.

Trying to get with-pdf to work, but without success.

Configuration

mkdocs.yml

...
plugins:
  - search
  - with-pdf

requirements.txt

mkdocs-with-pdf

workflow.yml

jobs:
  build:
    name: Deploy docs
    runs-on: ubuntu-latest
    steps:
      - name: Checkout main
        uses: actions/checkout@v2

      - name: Deploy docs
        uses: mhausenblas/mkdocs-deploy-gh-pages@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          CONFIG_FILE: docs/mkdocs.yml
          REQUIREMENTS: docs/requirements.txt
Workflow error output

✅ Setup job
✅ Build mhausenblas/mkdocs-deploy-gh-pages@master
✅ Checkout main
❌ Deploy docs:

Run mhausenblas/mkdocs-deploy-gh-pages@master
  env:
    GITHUB_TOKEN: ***
    CONFIG_FILE: docs/mkdocs.yml
    REQUIREMENTS: docs/requirements.txt
/usr/bin/docker run --name de33c73e5c6604e18908064f031ae1b5b_8afbe9 --label 08450d --workdir /github/workspace --rm -e GITHUB_TOKEN -e CONFIG_FILE -e REQUIREMENTS -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e GITHUB_STEP_SUMMARY -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/ATM/ATM":"/github/workspace" 08450d:e33c73e5c6604e18908064f031ae1b5b
WARNING: The directory '/github/home/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting mkdocs-with-pdf
  Downloading mkdocs_with_pdf-0.9.3-py3-none-any.whl (46 kB)
Requirement already satisfied: mkdocs>=1.1 in /usr/local/lib/python3.9/site-packages (from mkdocs-with-pdf->-r /github/workspace/docs/requirements.txt (line 1)) (1.[2](https://github.com/thieleju/ATM/runs/6377608802?check_suite_focus=true#step:4:2).[3](https://github.com/thieleju/ATM/runs/6377608802?check_suite_focus=true#step:4:3))
Collecting beautifulsoup[4](https://github.com/thieleju/ATM/runs/6377608802?check_suite_focus=true#step:4:4)>=4.6.3
  Downloading beautifulsoup4-4.11.1-py3-none-any.whl (128 kB)
Collecting libsass>=0.1[5](https://github.com/thieleju/ATM/runs/6377608802?check_suite_focus=true#step:4:5)
  Downloading libsass-0.21.0.tar.gz (317 kB)
Collecting weasyprint>=0.44
  Downloading weasyprint-54.3-py3-none-any.whl (247 kB)
Collecting soupsieve>1.2
  Downloading soupsieve-2.3.2.post1-py3-none-any.whl (37 kB)
Requirement already satisfied: six in /usr/local/lib/python3.9/site-packages (from libsass>=0.15->mkdocs-with-pdf->-r /github/workspace/docs/requirements.txt (line 1)) (1.1[6](https://github.com/thieleju/ATM/runs/6377608802?check_suite_focus=true#step:4:6).0)
Requirement already satisfied: pyyaml-env-tag>=0.1 in /usr/local/lib/python3.9/site-packages (from mkdocs>=1.1->mkdocs-with-pdf->-r /github/workspace/docs/requirements.txt (line 1)) (0.1)
Requirement already satisfied: mergedeep>=1.3.4 in /usr/local/lib/python3.9/site-packages (from mkdocs>=1.1->mkdocs-with-pdf->-r /github/workspace/docs/requirements.txt (line 1)) (1.3.4)
Requirement already satisfied: click>=3.3 in /usr/local/lib/python3.9/site-packages (from mkdocs>=1.1->mkdocs-with-pdf->-r /github/workspace/docs/requirements.txt (line 1)) (8.0.4)
Requirement already satisfied: ghp-import>=1.0 in /usr/local/lib/python3.9/site-packages (from mkdocs>=1.1->mkdocs-with-pdf->-r /github/workspace/docs/requirements.txt (line 1)) (2.0.2)
Requirement already satisfied: PyYAML>=3.10 in /usr/local/lib/python3.9/site-packages (from mkdocs>=1.1->mkdocs-with-pdf->-r /github/workspace/docs/requirements.txt (line 1)) (6.0)
Requirement already satisfied: importlib-metadata>=3.10 in /usr/local/lib/python3.9/site-packages (from mkdocs>=1.1->mkdocs-with-pdf->-r /github/workspace/docs/requirements.txt (line 1)) (4.11.3)
Requirement already satisfied: Markdown>=3.2.1 in /usr/local/lib/python3.9/site-packages (from mkdocs>=1.1->mkdocs-with-pdf->-r /github/workspace/docs/requirements.txt (line 1)) (3.3.6)
Requirement already satisfied: Jinja2>=2.10.1 in /usr/local/lib/python3.9/site-packages (from mkdocs>=1.1->mkdocs-with-pdf->-r /github/workspace/docs/requirements.txt (line 1)) (3.0.3)
Requirement already satisfied: watchdog>=2.0 in /usr/local/lib/python3.9/site-packages (from mkdocs>=1.1->mkdocs-with-pdf->-r /github/workspace/docs/requirements.txt (line 1)) (2.1.6)
Requirement already satisfied: packaging>=20.5 in /usr/local/lib/python3.9/site-packages (from mkdocs>=1.1->mkdocs-with-pdf->-r /github/workspace/docs/requirements.txt (line 1)) (21.3)
Requirement already satisfied: python-dateutil>=2.8.1 in /usr/local/lib/python3.9/site-packages (from ghp-import>=1.0->mkdocs>=1.1->mkdocs-with-pdf->-r /github/workspace/docs/requirements.txt (line 1)) (2.8.2)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.9/site-packages (from importlib-metadata>=3.10->mkdocs>=1.1->mkdocs-with-pdf->-r /github/workspace/docs/requirements.txt (line 1)) (3.[7](https://github.com/thieleju/ATM/runs/6377608802?check_suite_focus=true#step:4:7).0)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.9/site-packages (from Jinja2>=2.10.1->mkdocs>=1.1->mkdocs-with-pdf->-r /github/workspace/docs/requirements.txt (line 1)) (2.1.1)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /usr/local/lib/python3.9/site-packages (from packaging>=20.5->mkdocs>=1.1->mkdocs-with-pdf->-r /github/workspace/docs/requirements.txt (line 1)) (3.0.7)
Collecting tinycss2>=1.0.0
  Downloading tinycss2-1.1.1-py3-none-any.whl (21 kB)
Collecting cssselect2>=0.1
  Downloading cssselect2-0.6.0-py3-none-any.whl (15 kB)
Collecting html5lib>=1.1
  Downloading html5lib-1.1-py2.py3-none-any.whl (112 kB)
Collecting Pyphen>=0.9.1
  Downloading pyphen-0.12.0-py3-none-any.whl (2.0 MB)
Collecting fonttools[woff]>=4.0.0
  Downloading fonttools-4.33.3-py3-none-any.whl (930 kB)
Collecting pydyf>=0.0.3
  Downloading pydyf-0.1.2-py3-none-any.whl (6.4 kB)
Collecting cffi>=0.6
  Downloading cffi-1.15.0.tar.gz (4[8](https://github.com/thieleju/ATM/runs/6377608802?check_suite_focus=true#step:4:8)4 kB)
Collecting Pillow>=4.0.0
  Downloading Pillow-[9](https://github.com/thieleju/ATM/runs/6377608802?check_suite_focus=true#step:4:9).1.0.tar.gz (49.8 MB)
Collecting pycparser
  Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
Collecting webencodings
  Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting zopfli>=0.1.4
  Downloading zopfli-0.2.1.zip (205 kB)
Collecting brotli>=1.0.1
  Downloading Brotli-1.0.9.zip (5[10](https://github.com/thieleju/ATM/runs/6377608802?check_suite_focus=true#step:4:10) kB)
Building wheels for collected packages: libsass, cffi, brotli, Pillow, zopfli
  Building wheel for libsass (setup.py): started
  ERROR: Command errored out with exit status 1:
  Building wheel for libsass (setup.py): finished with status 'error'
   command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rtn5scon/libsass_5651f465d8c744159fbd302a236b64cc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rtn5scon/libsass_5651f465d8c744159fbd302a236b64cc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-57n79z1a
       cwd: /tmp/pip-install-rtn5scon/libsass_5651f465d8c744159fbd302a236b64cc/
  Complete output (25 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.9
  copying pysassc.py -> build/lib.linux-x86_64-3.9
  copying sass.py -> build/lib.linux-x86_64-3.9
  copying sassc.py -> build/lib.linux-x86_64-3.9
  copying sasstests.py -> build/lib.linux-x86_64-3.9
  creating build/lib.linux-x86_64-3.9/sassutils
  copying sassutils/builder.py -> build/lib.linux-x86_64-3.9/sassutils
  copying sassutils/wsgi.py -> build/lib.linux-x86_64-3.9/sassutils
  copying sassutils/_compat.py -> build/lib.linux-x86_64-3.9/sassutils
  copying sassutils/distutils.py -> build/lib.linux-x86_64-3.9/sassutils
  copying sassutils/__init__.py -> build/lib.linux-x86_64-3.9/sassutils
  warning: build_py: byte-compiling is disabled, skipping.
  
  running build_ext
  building '_sass' extension
  creating build/temp.linux-x86_64-3.9
  creating build/temp.linux-x86_64-3.9/libsass
  creating build/temp.linux-x86_64-3.9/libsass/src
  creating build/temp.linux-x86_64-3.9/libsass/src/memory
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -DPy_LIMITED_API -I./libsass/include -I/usr/local/include/python3.9 -c _sass.c -o build/temp.linux-x86_64-3.9/_sass.o -fPIC -std=gnu++0x -Wall -Wno-parentheses -Werror=switch -DLIBSASS_VERSION="3.6.5"
  error: command 'gcc' failed: No such file or directory
  ----------------------------------------
  ERROR: Failed building wheel for libsass
  Running setup.py clean for libsass
  Building wheel for cffi (setup.py): started
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rtn5scon/cffi_a589070255a6409fb53f08[11](https://github.com/thieleju/ATM/runs/6377608802?check_suite_focus=true#step:4:11)3552dd27/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rtn5scon/cffi_a589070255a6409fb53f081[13](https://github.com/thieleju/ATM/runs/6377608802?check_suite_focus=true#step:4:13)552dd27/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-a_kfng6r
       cwd: /tmp/pip-install-rtn5scon/cffi_a589070255a6409fb53f08113552dd27/
  Complete output (47 lines):
  
      No working compiler found, or bogus compiler options passed to
      the compiler from Python's standard "distutils" module.  See
      the error messages above.  Likely, the problem is not related
      to CFFI but generic to the setup.py of any Python package that
      tries to compile C code.  (Hints: on OS/X 10.8, for errors about
      -mno-fused-madd see http://stackoverflow.com/questions/22313407/
      Otherwise, see https://wiki.python.org/moin/CompLangPython or
      the IRC channel #python on irc.libera.chat.)
  
      Trying to continue anyway.  If you are trying to install CFFI from
      a build done in a different context, you can ignore this warning.
  
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.9
  creating build/lib.linux-x86_64-3.9/cffi
  copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.9/cffi
  copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.9/cffi
  copying cffi/pkgconfig.py -> build/lib.linux-x86_64-3.9/cffi
  copying cffi/error.py -> build/lib.linux-x86_64-3.9/cffi
  copying cffi/recompiler.py -> build/lib.linux-x86_64-3.9/cffi
  copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.9/cffi
  copying cffi/commontypes.py -> build/lib.linux-x86_64-3.9/cffi
  copying cffi/model.py -> build/lib.linux-x86_64-3.9/cffi
  copying cffi/api.py -> build/lib.linux-x86_64-3.9/cffi
  copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.9/cffi
  copying cffi/cparser.py -> build/lib.linux-x86_64-3.9/cffi
  copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.9/cffi
  copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.9/cffi
  copying cffi/verifier.py -> build/lib.linux-x86_64-3.9/cffi
  copying cffi/lock.py -> build/lib.linux-x86_64-3.9/cffi
  copying cffi/__init__.py -> build/lib.linux-x86_64-3.9/cffi
  copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.9/cffi
  copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.9/cffi
  copying cffi/_embedding.h -> build/lib.linux-x86_64-3.9/cffi
  copying cffi/_cffi_errors.h -> build/lib.linux-x86_64-3.9/cffi
  warning: build_py: byte-compiling is disabled, skipping.
  
  running build_ext
  building '_cffi_backend' extension
  creating build/temp.linux-x86_64-3.9
  creating build/temp.linux-x86_64-3.9/c
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.9 -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.9/c/_cffi_backend.o
  error: command 'gcc' failed: No such file or directory
  ----------------------------------------
  ERROR: Failed building wheel for cffi
  Building wheel for cffi (setup.py): finished with status 'error'
  Running setup.py clean for cffi
  Building wheel for brotli (setup.py): started
  Building wheel for brotli (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rtn5scon/brotli_a8e2764ea09f43f5b38a508dcb888f66/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rtn5scon/brotli_a8e2764ea09f43f5b38a508dcb888f66/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-87v30vx3
       cwd: /tmp/pip-install-rtn5scon/brotli_a8e2764ea09f43f5b38a508dcb888f66/
  Complete output (19 lines):
  /usr/local/lib/python3.9/site-packages/setuptools/dist.py:642: UserWarning: Usage of dash-separated 'build-base' will not be supported in future versions. Please use the underscore name 'build_base' instead
    warnings.warn(
  running bdist_wheel
  running build
  running build_py
  creating bin
  creating bin/lib.linux-x86_64-3.9
  copying python/brotli.py -> bin/lib.linux-x86_64-3.9
  warning: build_py: byte-compiling is disabled, skipping.
  
  running build_ext
  building '_brotli' extension
  creating bin/temp.linux-x86_64-3.9
  creating bin/temp.linux-x86_64-3.9/c
  creating bin/temp.linux-x86_64-3.9/c/common
  creating bin/temp.linux-x86_64-3.9/c/dec
  creating bin/temp.linux-x86_64-3.9/c/enc
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.9 -c c/common/constants.c -o bin/temp.linux-x86_64-3.9/c/common/constants.o
  error: command 'gcc' failed: No such file or directory
  ----------------------------------------
  ERROR: Failed building wheel for brotli
  Running setup.py clean for brotli
  Building wheel for Pillow (setup.py): started
  Building wheel for Pillow (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
  Running setup.py clean for Pillow
   command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rtn5scon/pillow_b505fe6f35e6401ab1f358ff5170e8e0/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rtn5scon/pillow_b505fe6f35e6401ab1f358ff5170e8e0/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-47a1ni25
       cwd: /tmp/pip-install-rtn5scon/pillow_b505fe6f35e6401ab1f358ff5170e8e0/
  Complete output (178 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.9
  creating build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/MpegImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/PcdImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/PdfImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/DdsImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/CurImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/GimpGradientFile.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/GifImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImageFilter.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/MspImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ContainerIO.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/McIdasImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/PcfFontFile.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/TarIO.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImageShow.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImageMath.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/WmfImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/FtexImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/PalmImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/GbrImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImageMode.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/PyAccess.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/TiffTags.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImageQt.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImtImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImageDraw.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/PpmImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImageWin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/_binary.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/_version.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/MpoImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/FitsStubImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImageTk.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/DcxImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/__main__.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/IcoImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/PSDraw.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/XpmImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/FontFile.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImagePath.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImageStat.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/EpsImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/BdfFontFile.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/PsdImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImageColor.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/GimpPaletteFile.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/SunImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/BufrStubImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImageCms.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImageTransform.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImageOps.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/features.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImageSequence.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/PdfParser.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/MicImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/TiffImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/IptcImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/BmpImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/IcnsImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/JpegPresets.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImageFile.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImageGrab.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/FitsImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImageEnhance.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/TgaImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/JpegImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/BlpImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/_util.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/PaletteFile.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/SgiImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/PixarImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImageMorph.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/WebPImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImageFont.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/PngImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImagePalette.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/XbmImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ExifTags.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/__init__.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImageChops.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/GdImageFile.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/ImageDraw2.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/Image.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/GribStubImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/WalImageFile.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/PcxImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/SpiderImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/_tkinter_finder.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/FpxImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/XVThumbImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  copying src/PIL/FliImagePlugin.py -> build/lib.linux-x86_64-3.9/PIL
  running egg_info
  writing src/Pillow.egg-info/PKG-INFO
  writing dependency_links to src/Pillow.egg-info/dependency_links.txt
  writing requirements to src/Pillow.egg-info/requires.txt
  writing top-level names to src/Pillow.egg-info/top_level.txt
  reading manifest file 'src/Pillow.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no files found matching '*.c'
  warning: no files found matching '*.h'
  warning: no files found matching '*.sh'
  warning: no files found matching '*.txt'
  warning: no previously-included files found matching '.appveyor.yml'
  warning: no previously-included files found matching '.clang-format'
  warning: no previously-included files found matching '.coveragerc'
  warning: no previously-included files found matching '.editorconfig'
  warning: no previously-included files found matching '.readthedocs.yml'
  warning: no previously-included files found matching 'codecov.yml'
  warning: no previously-included files matching '.git*' found anywhere in distribution
  warning: no previously-included files matching '*.pyc' found anywhere in distribution
  warning: no previously-included files matching '*.so' found anywhere in distribution
  no previously-included directories found matching '.ci'
  writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
  warning: build_py: byte-compiling is disabled, skipping.
  
  running build_ext
  
  
  The headers or library files could not be found for zlib,
  a required dependency when compiling Pillow from source.
  
  Please see the install instructions at:
     https://pillow.readthedocs.io/en/latest/installation.html
  
  Traceback (most recent call last):
    File "/tmp/pip-install-rtn5scon/pillow_b505fe6f35e6401ab1f358ff5170e8e0/setup.py", line 989, in <module>
      setup(
    File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
      return distutils.core.setup(**attrs)
    File "/usr/local/lib/python3.9/distutils/core.py", line [14](https://github.com/thieleju/ATM/runs/6377608802?check_suite_focus=true#step:4:14)8, in setup
      dist.run_commands()
    File "/usr/local/lib/python3.9/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/usr/local/lib/python3.9/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/usr/local/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 299, in run
      self.run_command('build')
    File "/usr/local/lib/python3.9/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/local/lib/python3.9/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/usr/local/lib/python3.9/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/usr/local/lib/python3.9/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/local/lib/python3.9/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/usr/local/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 79, in run
      _build_ext.run(self)
    File "/usr/local/lib/python3.9/distutils/command/build_ext.py", line 340, in run
      self.build_extensions()
    File "/tmp/pip-install-rtn5scon/pillow_b505fe6f35e6401ab1f358ff5170e8e0/setup.py", line 804, in build_extensions
      raise RequiredDependencyException(f)
  __main__.RequiredDependencyException: zlib
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-rtn5scon/pillow_b505fe6f35e6401ab1f358ff5170e8e0/setup.py", line 1009, in <module>
      raise RequiredDependencyException(msg)
  __main__.RequiredDependencyException:
  
  The headers or library files could not be found for zlib,
  a required dependency when compiling Pillow from source.
  
  Please see the install instructions at:
     https://pillow.readthedocs.io/en/latest/installation.html
  
  
  ----------------------------------------
  ERROR: Failed building wheel for Pillow
  Building wheel for zopfli (setup.py): started
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rtn5scon/zopfli_696afc5f3ab6475983ecd697869[15](https://github.com/thieleju/ATM/runs/6377608802?check_suite_focus=true#step:4:15)3db/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rtn5scon/zopfli_696afc5f3ab6475983ecd697869153db/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-e4y61ztz
  Building wheel for zopfli (setup.py): finished with status 'error'
       cwd: /tmp/pip-install-rtn5scon/zopfli_696afc5f3ab6475983ecd697869153db/
  Complete output (33 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.9
  creating build/lib.linux-x86_64-3.9/zopfli
  copying src/zopfli/png.py -> build/lib.linux-x86_64-3.9/zopfli
  copying src/zopfli/_version.py -> build/lib.linux-x86_64-3.9/zopfli
  copying src/zopfli/__init__.py -> build/lib.linux-x86_64-3.9/zopfli
  copying src/zopfli/zlib.py -> build/lib.linux-x86_64-3.9/zopfli
  copying src/zopfli/gzip.py -> build/lib.linux-x86_64-3.9/zopfli
  running egg_info
  writing src/zopfli.egg-info/PKG-INFO
  writing dependency_links to src/zopfli.egg-info/dependency_links.txt
  writing requirements to src/zopfli.egg-info/requires.txt
  writing top-level names to src/zopfli.egg-info/top_level.txt
  listing git files failed - pretending there aren't any
  reading manifest file 'src/zopfli.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file 'src/zopfli.egg-info/SOURCES.txt'
  warning: build_py: byte-compiling is disabled, skipping.
  
  running build_ext
  building 'zopfli.zopfli' extension
  creating build/temp.linux-x86_64-3.9
  creating build/temp.linux-x86_64-3.9/src
  creating build/temp.linux-x86_64-3.9/zopfli
  creating build/temp.linux-x86_64-3.9/zopfli/src
  creating build/temp.linux-x86_64-3.9/zopfli/src/zopfli
  creating build/temp.linux-x86_64-3.9/zopfli/src/zopflipng
  creating build/temp.linux-x86_64-3.9/zopfli/src/zopflipng/lodepng
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/local/include/python3.9 -c src/zopflimodule.c -o build/temp.linux-x86_64-3.9/src/zopflimodule.o
  error: command 'gcc' failed: No such file or directory
  ----------------------------------------
  ERROR: Failed building wheel for zopfli
  Running setup.py clean for zopfli
Failed to build libsass cffi brotli Pillow zopfli
Installing collected packages: webencodings, zopfli, tinycss2, pycparser, fonttools, brotli, soupsieve, Pyphen, pydyf, Pillow, html5lib, cssselect2, cffi, weasyprint, libsass, beautifulsoup4, mkdocs-with-pdf
    Running setup.py install for zopfli: started
    ERROR: Command errored out with exit status 1:
    Running setup.py install for zopfli: finished with status 'error'
     command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rtn5scon/zopfli_696afc5f3ab6475983ecd697869153db/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rtn5scon/zopfli_696afc5f3ab6475983ecd697869153db/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-vfpfal0_/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/zopfli
         cwd: /tmp/pip-install-rtn5scon/zopfli_696afc5f3ab6475983ecd697869153db/
    Complete output (33 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.9
    creating build/lib.linux-x86_64-3.9/zopfli
    copying src/zopfli/png.py -> build/lib.linux-x86_64-3.9/zopfli
    copying src/zopfli/_version.py -> build/lib.linux-x86_64-3.9/zopfli
    copying src/zopfli/__init__.py -> build/lib.linux-x86_64-3.9/zopfli
    copying src/zopfli/zlib.py -> build/lib.linux-x86_64-3.9/zopfli
    copying src/zopfli/gzip.py -> build/lib.linux-x86_64-3.9/zopfli
    running egg_info
    writing src/zopfli.egg-info/PKG-INFO
    writing dependency_links to src/zopfli.egg-info/dependency_links.txt
    writing requirements to src/zopfli.egg-info/requires.txt
    writing top-level names to src/zopfli.egg-info/top_level.txt
    listing git files failed - pretending there aren't any
    reading manifest file 'src/zopfli.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'src/zopfli.egg-info/SOURCES.txt'
    warning: build_py: byte-compiling is disabled, skipping.
    
    running build_ext
    building 'zopfli.zopfli' extension
    creating build/temp.linux-x86_64-3.9
    creating build/temp.linux-x86_64-3.9/src
    creating build/temp.linux-x86_64-3.9/zopfli
    creating build/temp.linux-x86_64-3.9/zopfli/src
    creating build/temp.linux-x86_64-3.9/zopfli/src/zopfli
    creating build/temp.linux-x86_64-3.9/zopfli/src/zopflipng
    creating build/temp.linux-x86_64-3.9/zopfli/src/zopflipng/lodepng
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/local/include/python3.9 -c src/zopflimodule.c -o build/temp.linux-x86_64-3.9/src/zopflimodule.o
    error: command 'gcc' failed: No such file or directory
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rtn5scon/zopfli_696afc5f3ab6475983ecd697869153db/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rtn5scon/zopfli_696afc5f3ab6475983ecd697869153db/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-vfpfal0_/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/zopfli Check the logs for full command output.
WARNING: You are using pip version [21](https://github.com/thieleju/ATM/runs/6377608802?check_suite_focus=true#step:4:21).0.1; however, version [22](https://github.com/thieleju/ATM/runs/6377608802?check_suite_focus=true#step:4:22).0.4 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.

I even tried different pdf-creator plugins, but it always fails here in the deploy docs job.

...
Building wheel for libsass (setup.py): started
ERROR: Command errored out with exit status 1:
...

Does this mean that "pdf-creator" plugins are currently not supported because of something underlying or am I missing packages?

@thieleju
Copy link
Author

I got it working without this plugin, so if anyone is curious:

Show workflow.yml
name: Publish MkDocs via GitHub Pages
on:
  push:
    branches:
      - main

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
        with:
          fetch-depth: 0

      - name: Setup Python
        uses: actions/setup-python@v2

      - name: Install Dependencies
        run: |
          pip install --upgrade pip 
          pip install mkdocs
          pip install mkdocs-gen-files
          pip install mkdocs-material
          pip install mkdocs-with-pdf

      - name: Setup Git Config
        run: |
          git config user.name 'mkdocs-deploy' 
          git config user.email '[email protected]'

      - name: Deploy docs to gh-pages branch
        run: mkdocs gh-deploy --config-file docs/mkdocs.yml

@logoff
Copy link

logoff commented Jan 15, 2023

Probably you need to install gcc compiler, like in the README example, adding var EXTRA_PACKAGES: build-base.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants