Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pandas and OrTools #6

Open
GregoryWullimann opened this issue Jul 4, 2024 · 1 comment
Open

Pandas and OrTools #6

GregoryWullimann opened this issue Jul 4, 2024 · 1 comment

Comments

@GregoryWullimann
Copy link

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'.

@ayush3890
Copy link

@GregoryWullimann any success on this issue. I am facing similar issue with requests library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants