Conda package 0.4.4 is broken
See original GitHub issueI got a fresh install of both jupyter notebook, conda, and ipycanvas. ipycanvas, however, doesn’t work:
404 GET /static/ipycanvas.js?v=20200328182705
Related JS output:
The resource from “http://localhost:8888/static/ipycanvas.js?v=20200328182705” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
Untitled.ipynb
Loading failed for the <script> with source “http://localhost:8888/static/ipycanvas.js?v=20200328182705”. Untitled.ipynb:1:1
Could not instantiate widget manager-base.js:273
Error: "Could not create a model."
v utils.js:119
utils.js:119
Couldn't process kernel message Error: "Script error for "ipycanvas"
http://requirejs.org/docs/errors.html#scripterror"
makeError http://localhost:8888/static/components/requirejs/require.js?v=951f856e81496aaeec2e71a1c2c0d51f:168
onScriptError http://localhost:8888/static/components/requirejs/require.js?v=951f856e81496aaeec2e71a1c2c0d51f:1735
main.min.js:48686:42
Error: Script error for "ipycanvas"
http://requirejs.org/docs/errors.html#scripterror 2 require.js:168:17
Source map error: Error: request failed with status 404
Resource URL: http://localhost:8888/static/notebook/js/main.min.js?v=fd76f62c63dfcfdb33c73b0d15290316
Source Map URL: main.min.js.map
(presumably related to ipycanvas’ JS file not existing)
My last runs were against examples copied straight from the docs, to eliminate coding errors on my side, before I noticed the 404 on the JS file. The python class itself imports fine though, so it looks like it’s just a rendering issue.
I’m assuming there’s a config/install error on my part, but I’m not sure where. I followed the docs, but it doesn’t properly install it. If relevant, I also installed ipywidgets after ipycanvas (I reinstalled ipycanvas afterwards just to see if that was relevant, but after testing), but ipywidgets works as expected (and the widgets actually appear). ipycanvas is still broken, and I’m not sure why.
I’m also not sure what info is needed to debug this, so if you need anything else, just tell me and I’ll grab it. Running Linux Mint 19.3 x64 with the latest versions I can get my hands on of all the packages.
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (11 by maintainers)
Top GitHub Comments
I am not sure yet where the issue comes from. The PyPi package looks fine, only the conda package is broken.
https://github.com/conda-forge/ipycanvas-feedstock/pull/16
Thanks a lot for reporting this. This is really helpful. It’s been almost a month since it’s broken and I did not see it.
Let’s keep this issue open until 0.4.4 is fixed.