Skip to content

Building on macOS fails #1012

@jayvdb

Description

@jayvdb

I have brew package mupdf installed

brew ls mupdf
/usr/local/Cellar/mupdf/1.18.0_1/bin/mudraw
/usr/local/Cellar/mupdf/1.18.0_1/bin/mupdf-gl
/usr/local/Cellar/mupdf/1.18.0_1/bin/muraster
/usr/local/Cellar/mupdf/1.18.0_1/bin/mutool
/usr/local/Cellar/mupdf/1.18.0_1/include/mupdf/ (67 files)
/usr/local/Cellar/mupdf/1.18.0_1/lib/ (2 files)
/usr/local/Cellar/mupdf/1.18.0_1/share/doc/ (41 files)
/usr/local/Cellar/mupdf/1.18.0_1/share/man/ (3 files)
 error: command 'swig' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for PyMuPDF
  Running setup.py clean for PyMuPDF
Failed to build PyMuPDF
Installing collected packages: PyMuPDF
    Running setup.py install for PyMuPDF: started
    Running setup.py install for PyMuPDF: finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /Users/john.vandenberg/python/PyMuPDF/.tox/py38/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/hz/tflgsmps1g95cdq5hdptdhc00000gp/T/pip-req-build-hgk8h4xg/setup.py'"'"'; __file__='"'"'/private/var/folders/hz/tflgsmps1g95cdq5hdptdhc00000gp/T/pip-req-build-hgk8h4xg/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/hz/tflgsmps1g95cdq5hdptdhc00000gp/T/pip-record-x_dvb7o9/install-record.txt --single-version-externally-managed --compile --install-headers /Users/john.vandenberg/python/PyMuPDF/.tox/py38/include/site/python3.8/PyMuPDF
         cwd: /private/var/folders/hz/tflgsmps1g95cdq5hdptdhc00000gp/T/pip-req-build-hgk8h4xg/
    Complete output (25 lines):
    running install
    running build
    running build_py
    running build_ext
    building 'fitz._fitz' extension
    swigging fitz/fitz.i to fitz/fitz_wrap.c
    swig -python -o fitz/fitz_wrap.c fitz/fitz.i
    fitz/fitz.i:254: Error: Unable to find 'version.i'
    fitz/fitz.i:255: Error: Unable to find 'helper-defines.i'
    fitz/fitz.i:256: Error: Unable to find 'helper-geo-c.i'
    fitz/fitz.i:257: Error: Unable to find 'helper-other.i'
    fitz/fitz.i:258: Error: Unable to find 'helper-pixmap.i'
    fitz/fitz.i:259: Error: Unable to find 'helper-geo-py.i'
    fitz/fitz.i:260: Error: Unable to find 'helper-annot.i'
    fitz/fitz.i:261: Error: Unable to find 'helper-stext.i'
    fitz/fitz.i:262: Error: Unable to find 'helper-fields.i'
    fitz/fitz.i:263: Error: Unable to find 'helper-python.i'
    fitz/fitz.i:264: Error: Unable to find 'helper-portfolio.i'
    fitz/fitz.i:265: Error: Unable to find 'helper-select.i'
    fitz/fitz.i:266: Error: Unable to find 'helper-xobject.i'
    fitz/fitz.i:267: Error: Unable to find 'helper-pdfinfo.i'
    fitz/fitz.i:268: Error: Unable to find 'helper-convert.i'
    fitz/fitz.i:269: Error: Unable to find 'helper-trace.i'
    fitz/fitz.i:270: Error: Unable to find 'helper-fileobj.i'
    error: command 'swig' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/john.vandenberg/python/PyMuPDF/.tox/py38/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/hz/tflgsmps1g95cdq5hdptdhc00000gp/T/pip-req-build-hgk8h4xg/setup.py'"'"'; __file__='"'"'/private/var/folders/hz/tflgsmps1g95cdq5hdptdhc00000gp/T/pip-req-build-hgk8h4xg/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/hz/tflgsmps1g95cdq5hdptdhc00000gp/T/pip-record-x_dvb7o9/install-record.txt --single-version-externally-managed --compile --install-headers /Users/john.vandenberg/python/PyMuPDF/.tox/py38/include/site/python3.8/PyMuPDF Check the logs for full command output.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions