docker run --rm -it -p 8000:8000 -v $(pwd):/app pdfium_wasm bash
python3 -m pip install -r requirements.txt
python3 make.py build-depot-tools
export PATH=$PATH:$PWD/build/depot-tools
python3 make.py build-emsdk
source "/app/build/emsdk/emsdk_env.sh"
python3 make.py build-pdfium-wasm
python3 make.py patch-wasm
./build/wasm32/pdfium/build/install-build-deps.sh
python3 make.py build-wasm
and "TypeError: Expected maxsize to be an integer or None" happens
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".
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
and "TypeError: Expected maxsize to be an integer or None" happens
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".