Coder Social home page Coder Social logo

Unable to checkout repo about pyodide-demo HOT 8 OPEN

scopatz avatar scopatz commented on June 29, 2024
Unable to checkout repo

from pyodide-demo.

Comments (8)

mdboom avatar mdboom commented on June 29, 2024 1

It does work, but unfortunately some of the package files exceed the file size limit for Github pages at this point, which is why we moved to Netlify for hosting.

from pyodide-demo.

scopatz avatar scopatz commented on June 29, 2024

pinging @mdboom

from pyodide-demo.

rth avatar rth commented on June 29, 2024

Latest pyodide releases should be under https://github.com/iodide-project/pyodide/releases in the pyodide-build*.tar.bz2. I don't think this repo is still used (unless it changed lately).

from pyodide-demo.

scopatz avatar scopatz commented on June 29, 2024

Ahh ok, I am really looking to get the terminal demo up and running. How can I get that working?

from pyodide-demo.

mdboom avatar mdboom commented on June 29, 2024

from pyodide-demo.

scopatz avatar scopatz commented on June 29, 2024

Ahh OK, when I download the release tarball and run python -m http.server in the extracted directory, and then navigate to http://localhost:8000/console.html, I see the following on both firefox and chrome

Uncaught (in promise) TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.

from pyodide-demo.

scopatz avatar scopatz commented on June 29, 2024

Actually here is a little Python server that works:

import http.server
import socketserver
PORT = 8000
Handler = http.server.SimpleHTTPRequestHandler
Handler.extensions_map['.wasm'] = 'application/wasm'
with socketserver.TCPServer(("", PORT), Handler) as httpd:
    print("serving at port", PORT)
    httpd.serve_forever()

from pyodide-demo.

scopatz avatar scopatz commented on June 29, 2024

So I guess my question is, if I want to deploy a static website that uses pyodide (say to github pages), will this work? It seems like this would work given that wasm is in https://github.com/jshttp/mime-db according to this. Have either of you tried this?

from pyodide-demo.

Related Issues (4)

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.