Skip to content

Pandas and OrTools #6

Open
Open
@GregoryWullimann

Description

@GregoryWullimann

Hi!

I'm new to this kind of stuff so sorry if these are dumb questions.

I have a project that uses Pandas and OrTools (https://pypi.org/project/ortools/), I would like to convert it to WASM and use it on the web.

Is py2wasm the right tool for it?

Just by trying to run py2wasm on a simple file with import I run into issues.

Code:

import pandas as pd
df = pd.read_csv("my.csv", index_col = False)

py2wasm main.py -o main.wasm

py2wasm: Using wasi-sdk from /usr/local/lib/python3.11/site-packages/nuitka/wasi-sdk/21/sdk-Darwin
Nuitka-Options: Used command line options: main.py --standalone --static-libpython=yes --disable-ccache --lto=yes
Nuitka-Options: --output-dir=/usr/local/lib/python3.11/site-packages/nuitka/__py2wasm --output-filename=output.wasm --remove-output
Nuitka: Starting Python compilation with Nuitka '2.6.3' on Python '3.11' commercial grade 'not installed'.
FATAL: options-nanny: Error, package 'Foundation' requires '--macos-create-app-bundle' to be used or else it cannot work.
Nuitka-Reports: Compilation crash report written to file 'nuitka-crash-report.xml'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions