[Debian-science-sagemath] Help needed to backport jupyter-notebook (Was: Help needed for backporting node-esprima (Was: Backporting sagemath))
Ximin Luo
infinity0 at debian.org
Fri Apr 7 14:56:00 UTC 2017
Andreas Tille:
> Hi Ximin,
>
> On Tue, Apr 04, 2017 at 07:24:00PM +0000, Ximin Luo wrote:
>
>> If you run that command manually,
>>
>> nodejs ../../fakewebpack-postprocess.js ./node_modules/font-awesome/css/font-awesome.css ../../fakewebpack/docs.modules
>>
>> is there a javascript backtrace?
>
>
> /build/ipywidgets-5.2.2/debian/fakewebpack-unpacked/node-libs-browser# nodejs ../../fakewebpack-postprocess.js ./node_modules/font-awesome/css/font-awesome.css ../../fakewebpack/docs.modules
> /build/ipywidgets-5.2.2/debian/fakewebpack-postprocess.js:64
> throw new Error("can't find module index for: " + key);
> ^
>
> Error: can't find module index for: ../fonts/fontawesome-webfont.eot?v=4.2.0
> at getModuleIndex (/build/ipywidgets-5.2.2/debian/fakewebpack-postprocess.js:64:19)
> at Context.types.visit.visitCallExpression (/build/ipywidgets-5.2.2/debian/fakewebpack-postprocess.js:106:27)
> at Context.invokeVisitorMethod (/usr/lib/nodejs/ast-types/lib/path-visitor.js:344:49)
> at Visitor.PVp.visitWithoutReset (/usr/lib/nodejs/ast-types/lib/path-visitor.js:196:32)
> at visitChildren (/usr/lib/nodejs/ast-types/lib/path-visitor.js:246:25)
> at Visitor.PVp.visitWithoutReset (/usr/lib/nodejs/ast-types/lib/path-visitor.js:204:20)
> at visitChildren (/usr/lib/nodejs/ast-types/lib/path-visitor.js:246:25)
> at Visitor.PVp.visitWithoutReset (/usr/lib/nodejs/ast-types/lib/path-visitor.js:204:20)
> at visitChildren (/usr/lib/nodejs/ast-types/lib/path-visitor.js:246:25)
> at Visitor.PVp.visitWithoutReset (/usr/lib/nodejs/ast-types/lib/path-visitor.js:204:20)
>
>
> Hope this helps. BTW, this should be easily reproducible since all
> preconditions are now in backports.
>
Hey,
Try editing debian/fakewebpack/docs.modules to say "4.2.0" instead of "4.7.0" in various places.
When it says "can't find module index for: XXX" it is looking for a line containing XXX, and will replace that with the matching line number.
This is how my "fakewebpack" hack works, I know it is a bit stupid and not sustainable and I'll try to think of something that is easier to maintain soon, when I revisit ipywidgets for the next version 6.0.0.
X
--
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
https://github.com/infinity0/pubkeys.git
More information about the Debian-science-sagemath
mailing list