cpcloud commented on PR #37822:
URL: https://github.com/apache/arrow/pull/37822#issuecomment-2066776793

   @joemarshall Thanks for powering through this odyssey.
   
   Building the wheel from your PR, I loaded this `index.html` into Brave:
   
   ```html
   <html>
     <head>
       <meta charset="utf-8" />
     </head>
     <body>
       <script type="text/javascript" 
src="https://cdn.jsdelivr.net/pyodide/v0.25.1/full/pyodide.js";></script>
       <script type="text/javascript">
         async function main() {
           let pyodide = await loadPyodide();
           await pyodide.loadPackage("micropip");
           const micropip = pyodide.pyimport("micropip");
           await micropip.install([
             
"http://localhost:8001/pyarrow-16.0.0.dev2661+g9bddb87fd-cp311-cp311-emscripten_3_1_46_wasm32.whl";
           ])
           await pyodide.runPython(`import pyarrow as pa`);
         }
         main();
       </script>
     </body>
   </html>
   ```
   
   And I get this error:
   
   
![image](https://github.com/apache/arrow/assets/417981/6e9b0216-b021-4678-af42-fdcd8160a466)
   
   <details>
   <summary>Build script</summary>
   
   ```bash
   #!/usr/bin/env bash
   
   set -euo pipefail
   
   apt update -y
   apt upgrade -y
   apt install -y software-properties-common build-essential git curl cmake 
ninja-build
   add-apt-repository -y ppa:deadsnakes/ppa
   apt update -y
   
   DEBIAN_FRONTEND=noninteractive TZ=America/New_York apt install -y python3.11 
python3.11-dev python3.11-venv
   
   rm -rf .venv* .pyodide*
   
   python3.11 -m venv /scripts/.venv
   
   source /scripts/.venv/bin/activate
   
   pip install 'pyodide-build==0.25.1' 'pydantic<2'
   
   rm -rf /scripts/emsdk /scripts/duckdb /scripts/arrow
   
   git clone https://github.com/emscripten-core/emsdk.git /scripts/emsdk
   
   pushd /scripts/emsdk
   
   PYODIDE_EMSCRIPTEN_VERSION="$(pyodide config get emscripten_version)"
   ./emsdk install "${PYODIDE_EMSCRIPTEN_VERSION}"
   ./emsdk activate "${PYODIDE_EMSCRIPTEN_VERSION}"
   source /scripts/emsdk/emsdk_env.sh
   
   popd
   
   git clone https://github.com/joemarshall/arrow.git
   
   pushd /scripts/arrow/cpp
   
   git checkout "${1:-emscripten_python_changes}"
   
   emcmake cmake --preset ninja-release-emscripten
   ninja install
   
   popd
   
   pushd /scripts/arrow/python
   
   pyodide build --exports=whole_archive
   
   popd
   ```
   
   I also tried running without `--exports=whole_archive` but I get the same 
error.
   
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to