GithubHelp home page GithubHelp logo

Comments (5)

38 avatar 38 commented on July 25, 2024

Thanks for reporting. I will try this on Windows and figure out why.

Error: BackendError(DrawingError(IoError(Os { code: 3, kind: NotFound, message: "The system cannot find the path specified." })))

This error should be caused by the output directory not found. So the fix should be as easy as changing the path used by the BitMapBackend.

Also could you please provide more details how you run the WASM demo on your side?
Basically, you cannot open the demo directly because browser security restrictions. So you need serve the content with a HTTP server on your local.There's an script in that folder, which you should be able to run that. But I haven't a chance to make sure it work for windows yet.

from plotters.

aeroaks avatar aeroaks commented on July 25, 2024

For the WASM demo, I ran the start-server.sh script from the examples directory. It fails on the last line where python is used. Since it was python 2 based http server. I changed it locally to http.server which is in python3 and ran the server. I can go to the link with that fix but do not see anything. Opening the console shows error in loading pkg/wasm-demo.js.

from plotters.

38 avatar 38 commented on July 25, 2024

That's odd, could you please share the modified script ?
I tried with python 3.3, it loads correctly.

Also, there should be a wasm-bindgen generated js file at www/pkg/wasm-demo.js.

from plotters.

aeroaks avatar aeroaks commented on July 25, 2024

I am using Python 3.7.

After running the start-server.sh script with the following change in the last line
python -m http.server

I get the following error in the browser console in Firefox and Chrome.

Loading module from “http://localhost:8000/pkg/wasm_demo.js” was blocked because of a disallowed MIME type (“text/plain”).
localhost:8000
Loading failed for the module with source “http://localhost:8000/pkg/wasm_demo.js”.

from plotters.

38 avatar 38 commented on July 25, 2024

Hi,

I have finally got a chance to use a Window machine. And I made the change, now it works on Windows.

You can also use a batch file to start the server. start-server.bat

Closing the issue, feel free to reopen it if there's still some problem!

Thanks,

from plotters.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.