paulocoutinhox / pdfium-lib

PDFium - Project to compile PDFium library to multiple platforms.
https://pdfviewer.github.io/
MIT License
927 stars 89 forks source link

WASM: TypeError: Expected maxsize to be an integer or None #109

Open DmitriyValetov opened 8 months ago

DmitriyValetov commented 8 months ago

Describe the bug

I have an error while building wasm: TypeError: Expected maxsize to be an integer or None

To Reproduce

I'm going through https://github.com/paulocoutinhox/pdfium-lib/blob/master/docs/BUILD_WASM.md with your Dockerfile https://github.com/paulocoutinhox/pdfium-lib/blob/master/docker/wasm/Dockerfile

  1. git clone https://github.com/paulocoutinhox/pdfium-lib.git
  2. cd pdfium-lib
  3. docker build -f ./docker/wasm/Dockerfile -t pdfium_wasm ./docker
  4. docker run --rm -it -p 8000:8000 -v $(pwd):/app pdfium_wasm bash
  5. python3 -m pip install -r requirements.txt
  6. python3 make.py build-depot-tools
  7. export PATH=$PATH:$PWD/build/depot-tools
  8. python3 make.py build-emsdk
  9. source "/app/build/emsdk/emsdk_env.sh"
  10. python3 make.py build-pdfium-wasm
  11. python3 make.py patch-wasm
  12. ./build/wasm32/pdfium/build/install-build-deps.sh
  13. python3 make.py build-wasm

and "TypeError: Expected maxsize to be an integer or None" happens

image

Additional context If I remove all "@functools.lru_cache" from gclient_paths.py - this error vanishes, like this way "sed -i 's/@functools.lru_cache/#@functools.lru_cache/' /opt/depot-tools/gclient_paths.py".

paulocoutinhox commented 3 months ago

Hi,

Project was updated to latest version and docker files too.

If your problem was solved, can you close the issue pls?

Thanks.