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

Using bokeh - halts on missing yaml module #23

Open
larstuff opened this issue May 10, 2023 · 3 comments
Open

Using bokeh - halts on missing yaml module #23

larstuff opened this issue May 10, 2023 · 3 comments

Comments

@larstuff
Copy link

larstuff commented May 10, 2023

Hi. I see that both numpy and bokeh are in the wasm, but when I try using bokeh, pygbag halts with the error:

1202: want='yaml' found : False
PKG NOT FOUND : want='yaml', resume=<function at 0x1864780>, ex=ModuleNotFoundError("No module named 'yaml'")

Bokeh script works ok after I alter the script to go 'pygbagging', and shows a html file immediately in the browser. Script is simple:

`import numpy as np
import yaml
from bokeh.plotting import figure, show
import asyncio

async def main():
x = np.arange(0, 10, 1)
y1 = x ** 2
y2 = x ** 3
y3 = x ** 4

p = figure(title="Simple line charts", x_axis_label="x", y_axis_label="y")

p.line(x, y1, legend_label="x2", line_width=2, color="red")
p.line(x, y2, legend_label="x3", line_width=2, color="green")
p.line(x, y3, legend_label="x4", line_width=2, color="blue")

show(p)
await asyncio.sleep(0)

asyncio.run(main())`

@larstuff
Copy link
Author

The script does have the correct indentation, but pasting it into github messed it a little bit up. Is there any chance yaml will be added?

@pmp-p
Copy link
Member

pmp-p commented Aug 22, 2023

transfering issue to https://github.com/pygame-web/pkg-porting-wasm
i guess yaml is binary and rely on libYaml

@pmp-p pmp-p transferred this issue from pygame-web/pygbag Aug 22, 2023
@pmp-p
Copy link
Member

pmp-p commented Aug 22, 2023

a pyyaml wheel ( in pure python mode ) has been added for testing
use --git option on pygbag cmdline

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

No branches or pull requests

2 participants