ashutoshvarma / pyxpdf

Fast and memory-efficient Python PDF Parser based on xpdf sources
https://pyxpdf.readthedocs.io/
Other
40 stars 16 forks source link

Python 3.10 and 3.11 Compatibility #45

Closed mush42 closed 1 year ago

mush42 commented 1 year ago

Hello @ashutoshvarma

What is the maintenance status of pyxpdf? It seams that the library is effectively unmaintained!

When trying to install (or build) pyxpdf for Python 3.10 or 3.11 a large number of errors occur, and the build is terminated.

Please try to update this package to work with latest python versions.

Best Musharraf

mush42 commented 1 year ago

As a side note, pyxpdf is the only thing that prevents me from upgrading Bookworm to the latest Python release.

ReMiOS commented 1 year ago

I've managed to build pyxpdf for Python v3.9 and don't expect much issues building a wheel for v3.10 or 3.11 ( i currently don't have a v3.9+ environment )

I would like to see the xpdf update to v4.04 but don't have a clue on how to generate the pxd headers (tried pxdgen and autopxd2)

mush42 commented 1 year ago

@ReMiOS Please outline the steps you used to build pyxpdf.

ReMiOS commented 1 year ago

the get from url method is broken in the get_libxpdf.py Just download the files manually and edit the file to load the files locally and build the wheel using setup.py

mush42 commented 1 year ago

@ReMiOS I tried to build pyxpdf using the steps outlined in the build instructions. I constantly face the following error:

Building pyxpdf version 0.2.3.
Building without Cython.
Building against libxpdf in the following directory: lib64\libxpdf\lib
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\pyxpdf
copying src\pyxpdf\__init__.py -> build\lib.win-amd64-cpython-310\pyxpdf
creating build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\AcroForm.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\Annot.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\Array.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\BitmapOutputDev.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\Catalog.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\CharCodeToUnicode.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\CharTypes.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\CMap.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\Decrypt.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\defs.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\Dict.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\DisplayState.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\FoFi.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\Form.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\Function.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\Gfx.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\GfxFont.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\GfxState.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\GlobalParams.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\HTMLGen.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\ImageOutputDev.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\Lexer.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\Link.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\native.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\Object.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\OptionalContent.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\Outline.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\OutputDev.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\Page.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\PDFCore.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\PDFDoc.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\SplashOutputDev.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\Stream.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\TextOutputDev.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\TextString.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\UnicodeMap.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\UnicodeRemapping.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\xpdf_error.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\xpdf_types.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\XRef.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\__init__.pxd -> build\lib.win-amd64-cpython-310\pyxpdf\includes
copying src\pyxpdf\includes\pyxpdf_defs.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes
creating build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\aconf.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\aconf2.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\AcroForm.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\Annot.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\Array.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\BuiltinFont.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\BuiltinFontTables.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\Catalog.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\CharCodeToUnicode.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\CharTypes.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\CMap.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\CompactFontTables.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\config.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\Decrypt.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\Dict.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\DisplayState.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\Error.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\ErrorCodes.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\FixedPoint.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\FoFiBase.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\FoFiEncodings.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\FoFiIdentifier.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\FoFiTrueType.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\FoFiType1.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\FoFiType1C.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\FontEncodingTables.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\Form.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\Function.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\gfile.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\Gfx.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\GfxFont.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\GfxState.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\GHash.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\GList.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\GlobalParams.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\gmem.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\gmempp.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\GMutex.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\GString.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\gtypes.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\HTMLGen.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\ImageOutputDev.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\JArithmeticDecoder.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\JBIG2Stream.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\JPXStream.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\Lexer.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\Link.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\NameToCharCode.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\NameToUnicodeTable.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\Object.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\OptionalContent.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\Outline.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\OutputDev.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\Page.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\parseargs.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\Parser.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\PDF417Barcode.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\PDFCore.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\PDFDoc.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\PDFDocEncoding.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\PreScanOutputDev.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\PSOutputDev.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\PSTokenizer.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\SecurityHandler.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\Splash.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\SplashBitmap.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\SplashClip.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\SplashErrorCodes.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\SplashFont.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\SplashFontEngine.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\SplashFontFile.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\SplashFontFileID.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\SplashFTFont.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\SplashFTFontEngine.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\SplashFTFontFile.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\SplashGlyphBitmap.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\SplashMath.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\SplashOutputDev.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\SplashPath.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\SplashPattern.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\SplashScreen.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\SplashState.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\SplashTypes.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\SplashXPath.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\SplashXPathScanner.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\Stream-CCITT.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\Stream.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\TextOutputDev.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\TextString.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\TileCache.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\TileCompositor.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\TileMap.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\UnicodeMap.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\UnicodeMapTables.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\UnicodeRemapping.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\UnicodeTypeTable.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\UTF8.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\WebFont.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\XFAForm.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\XRef.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\lib64\libxpdf\include\Zoox.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\libxpdf
creating build\lib.win-amd64-cpython-310\pyxpdf\includes\cpp
copying D:\projects\pyxpdf_build\pyxpdf-0.2.3\src\pyxpdf\cpp\BitmapOutputDev.h -> build\lib.win-amd64-cpython-310\pyxpdf\includes\cpp
running build_ext
building 'pyxpdf.xpdf' extension
creating build\temp.win-amd64-cpython-310
creating build\temp.win-amd64-cpython-310\Release
creating build\temp.win-amd64-cpython-310\Release\src
creating build\temp.win-amd64-cpython-310\Release\src\pyxpdf
creating build\temp.win-amd64-cpython-310\Release\src\pyxpdf\cpp
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DCYTHON_CLINE_IN_TRACEBACK=0 -Ilib64\libxpdf\include -Isrc -Isrc\pyxpdf\includes -Isrc\pyxpdf\cpp -ID:\projects\pyxpdf_build\pyxpdf-0.2.3\.venv64\include -IC:\Python310\include -IC:\Python310\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" /EHsc /Tpsrc\pyxpdf\cpp\BitmapOutputDev.cc /Fobuild\temp.win-amd64-cpython-310\Release\src\pyxpdf\cpp\BitmapOutputDev.obj -w /Zc:__cplusplus
cl : Command line warning D9025 : overriding '/W3' with '/w'
BitmapOutputDev.cc
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DCYTHON_CLINE_IN_TRACEBACK=0 -Ilib64\libxpdf\include -Isrc -Isrc\pyxpdf\includes -Isrc\pyxpdf\cpp -ID:\projects\pyxpdf_build\pyxpdf-0.2.3\.venv64\include -IC:\Python310\include -IC:\Python310\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" /EHsc /Tpsrc\pyxpdf\xpdf.cpp /Fobuild\temp.win-amd64-cpython-310\Release\src\pyxpdf\xpdf.obj -w /Zc:__cplusplus
cl : Command line warning D9025 : overriding '/W3' with '/w'
xpdf.cpp
src\pyxpdf\xpdf.cpp(1953): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(1959): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(4163): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(4522): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(4546): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(4617): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(4641): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(4712): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(4737): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(4865): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(4888): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(4923): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(4948): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(5027): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(5049): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(5086): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(5109): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(5141): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(5168): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(5236): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(5268): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(5388): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(5419): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(5591): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(5614): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(5660): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(5681): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(5712): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(5735): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(5818): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(5895): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(5954): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(5997): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(6197): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(6234): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(6263): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(6354): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(6562): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(6605): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(6805): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(6842): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(6871): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(6914): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(7114): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(7151): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(7180): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(7223): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(7423): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(7460): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(7489): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(7532): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(7732): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(7769): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(7798): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(7841): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(8041): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(8078): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(8107): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(8150): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(8350): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(8387): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(8416): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(8459): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(8659): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(8696): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(8725): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(8746): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(8774): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(8804): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(8973): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(9060): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(9220): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(9260): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(9308): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(9348): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(9421): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(9452): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(9487): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(9525): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(9562): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(9656): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(9745): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(9780): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(9812): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(9848): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(9884): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(9924): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(9965): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(10000): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(10032): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(10079): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(10106): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(10141): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(10173): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(10220): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(10247): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(10282): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(10314): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(10351): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(10387): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(10422): error C2039: 'use_tracing': is not a member of '_ts'
C:\Python310\include\cpython/pystate.h(60): note: see declaration of '_ts'
src\pyxpdf\xpdf.cpp(10422): fatal error C1003: error count exceeds 100; stopping compilation
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.32.31326\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
ReMiOS commented 1 year ago

i don't know why a normal build fails, but this will probably fix your error: setup.py bdist_wheel --with-cython

Obviously you'll need Cython installed (did not need this option with Python v3.9)

Python 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

import pyxpdf print(pyxpdf.__version__) 0.2.3

mush42 commented 1 year ago

Thanks @ReMiOS ! It builds successfully now.

For future reference here are the two issues that caused the build failure:

  1. Python 3.10 has some breaking changes for the C extension API. Therefore, you need to re-generate the cython sources of pyxpdf.
  2. You need to remove the directory ./src/pyxpdf.egg-info before attempting to build. This fixes some path issues.

Thanks again

ReMiOS commented 1 year ago

For future reference here are the two issues that caused the build failure:

  1. You need to remove the directory ./src/pyxpdf.egg-info before attempting to build. This fixes some path issues.

You're welcome

Removing the ./src/pyxpdf.egg-info is not needed when you rebuild the libxpdf properly But it works ( and you can also point to the correct header files in the SOURCES.txt )