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

Unable to checkout repo #5

Open
scopatz opened this issue Oct 15, 2019 · 8 comments
Open

Unable to checkout repo #5

scopatz opened this issue Oct 15, 2019 · 8 comments

Comments

@scopatz
Copy link

scopatz commented Oct 15, 2019

This repo seems to require both git-lfs and then a username and password to https://1fd8fb2d-3267-4664-afca-dae42e7e5b64.netlify.com If you ignore this the data files aren't fetched and they don't seem to work.

@scopatz
Copy link
Author

scopatz commented Oct 23, 2019

pinging @mdboom

@rth
Copy link

rth commented Oct 23, 2019

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

@scopatz
Copy link
Author

scopatz commented Oct 23, 2019

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

@mdboom
Copy link
Contributor

mdboom commented Oct 24, 2019 via email

@scopatz
Copy link
Author

scopatz commented Oct 25, 2019

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

@scopatz
Copy link
Author

scopatz commented Oct 25, 2019

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()

@scopatz
Copy link
Author

scopatz commented Oct 25, 2019

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?

@mdboom
Copy link
Contributor

mdboom commented Nov 3, 2019

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.

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

3 participants