[Debian-science-sagemath] Help needed to backport jupyter-notebook (Was: Help needed for backporting node-esprima (Was: Backporting sagemath))

Gordon Ball gordon at chronitis.net
Sat Mar 25 14:07:18 UTC 2017


On 23/03/17 13:05, Andreas Tille wrote:
> Hi,
> 
> On Fri, Mar 17, 2017 at 02:34:59PM +0000, Tobias Hansen wrote:
>> I guess that means it requires nodejs >= 4. At least it's something you
>> could try.
> 
> I confirm that using nodejs >=4 solved the issue in node-esprima.
>  
>> On 03/08/2017 02:49 PM, Andreas Tille wrote:
>>> in my sagemath backporting effort im struck with one leaf of the
>>> dependency tree which is
>>>
>>>    python-sagenb-export
>>>     -> jupyter-notebook
> 
> Now I'm down here.  The build fails with:
> 
> ...
> running jsdeps
> bower dependencies up to date
>> lessc --source-map --source-map-basepath=/build/jupyter-notebook-4.2.3 --include-path=/build/jupyter-notebook-4.2.3/notebook/static /build/jupyter-notebook-4.2.3/notebook/static/style/ipython.less notebook/static/style/ipython.min.css
> FileError: '../../components/codemirror/lib/codemirror.css' wasn't found in /build/jupyter-notebook-4.2.3/notebook/static/notebook/less/highlight-refs.less on line 5, column 1:
> 4 */
> 5 @import (less) "../../components/codemirror/lib/codemirror.css";
> 6 
> 

Have you backported libjs-codemirror? There is a big version mismatch
between jessie and stretch (2.3 vs 5.4).

Unfortunately, since the build involves reconstructing the javascript
package tree upstream expects to get from npm, and that the directory
structures in /usr/share/javascript don't necessarily match the layout
you get from npm, lots of symlinks are needed and it's probably
non-robust against different versions.

The dependency in this case isn't versioned because the version
available in stretch is any case not technically new enough for the
package (5.4 available vs 5.8 requested), but it *appears* to work.

> rebuilding js and css failed. The following required files are missing: ['notebook/static/notebook/js/main.min.js', 'notebook/static/tree/js/main.min.js', 'notebook/static/edit/js/main.min.js', 'notebook/static/terminal/js/main.min.js', 'notebook/static/auth/js/main.min.js', 'notebook/static/style/ipython.min.css', 'notebook/static/style/style.min.css']
> Traceback (most recent call last):
>   File "setup.py", line 200, in <module>
>     main()
>   File "setup.py", line 197, in main
>     setup(**setup_args)
>   File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
>     dist.run_commands()
>   File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
>     self.run_command(cmd)
>   File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
>     cmd_obj.run()
>   File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
>     self.run_command(cmd_name)
>   File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
>     self.distribution.run_command(command)
>   File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
>     cmd_obj.run()
>   File "/build/jupyter-notebook-4.2.3/setupbase.py", line 549, in run
>     raise e
> subprocess.CalledProcessError: Command '['lessc', '--source-map', '--source-map-basepath=/build/jupyter-notebook-4.2.3', '--include-path=/build/jupyter-notebook-4.2.3/notebook/static', '/build/jupyter-notebook-4.2.3/notebook/static/style/ipython.less', 'notebook/static/style/ipython.min.css']' returned non-zero exit status 1
> E: pybuild pybuild:283: build: plugin distutils failed with: exit code=1: /usr/bin/python setup.py build 
> dh_auto_build: pybuild --build --test-nose -i python{version} -p 2.7 returned exit code 13
> 
> 
>>> I admit I do not have the slightest idea how to fix this and thus any
>>> help is welcome.
> 
> Same as before.  Any idea how to get the minimized versions of the
> existing files ... or rather why it builds in stretch but not in Jessie.
> 
> Most of its Build-Depends are just in backports.  prompt-toolkit is
> missing yet since I was trapped by finding a wrong pristine-tar inside
> the Git archive.  Since this was happening from time to time I really
> wonder how that can happen more frequently than I expected ...
> 
> Kind regards
> 
>       Andreas.
> 




More information about the Debian-science-sagemath mailing list