[Python-modules-team] Bug#849879: jupyter-nbextension-jupyter-js-widgets: fails to remove (python error)

Ximin Luo infinity0 at debian.org
Fri Jan 6 18:19:00 UTC 2017


Hi alberto,

Did you previously have jupyter-notebook version 4.2.3-2 installed? If so, then this is the same as:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=847917

and all you need to do is remove any empty *.json files in /etc/jupyter/nbconfig. Please also let me know, so that I can close this bug.

If it is not the same as the above linked issue, please send me the output of `ls -la /etc/jupyter/nbconfig` (and ideally the full contents) so that I can try to debug the problem.

X

On Sun, 01 Jan 2017 23:04:49 +0100 alberto <alberto at krsna.bo.isac.cnr.it> wrote:
> Package: jupyter-nbextension-jupyter-js-widgets
> Version: 5.2.2-2
> Severity: minor
> 
> Dear Maintainer,
> 
> I recently installed notebook and some related packages but had problems.
> Then I decided to purge all the packages but
> jupyter-nbextension-jupyter-js-widgets
> fails with the fillowing error message:
> 
> (Reading database ... 605526 files and directories currently installed.)
> Removing jupyter-nbextension-jupyter-js-widgets (5.2.2-2) ...
> /usr/lib/python3.5/runpy.py:125: RuntimeWarning: 'notebook.nbextensions' found in sys.modules after import of package 'notebook', but prior to execution of 'notebook.nbextensions'; this may result in unpredictable behaviour
>   warn(RuntimeWarning(msg))
> Disabling notebook extension jupyter-js-widgets/extension...
> Traceback (most recent call last):
>   File "/usr/lib/python3.5/runpy.py", line 193, in _run_module_as_main
>     "__main__", mod_spec)
>   File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
>     exec(code, run_globals)
>   File "/usr/lib/python3/dist-packages/notebook/nbextensions.py", line 1176, in <module>
>     main()
>   File "/usr/lib/python3/dist-packages/jupyter_core/application.py", line 267, in launch_instance
>     return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
>   File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 658, in launch_instance
>     app.start()
>   File "/usr/lib/python3/dist-packages/notebook/nbextensions.py", line 961, in start
>     super(NBExtensionApp, self).start()
>   File "/usr/lib/python3/dist-packages/jupyter_core/application.py", line 256, in start
>     self.subapp.start()
>   File "/usr/lib/python3/dist-packages/notebook/nbextensions.py", line 871, in start
>     self.toggle_nbextension(self.extra_args[0])
>   File "/usr/lib/python3/dist-packages/notebook/nbextensions.py", line 861, in toggle_nbextension
>     logger=self.log)
>   File "/usr/lib/python3/dist-packages/notebook/nbextensions.py", line 434, in disable_nbextension
>     logger=logger)
>   File "/usr/lib/python3/dist-packages/notebook/nbextensions.py", line 345, in _set_nbextension_state
>     cm.update(section, {"load_extensions": {require: state}})
>   File "/usr/lib/python3/dist-packages/traitlets/config/manager.py", line 85, in update
>     data = self.get(section_name)
>   File "/usr/lib/python3/dist-packages/traitlets/config/manager.py", line 63, in get
>     return json.load(f)
>   File "/usr/lib/python3.5/json/__init__.py", line 268, in load
>     parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
>   File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
>     return _default_decoder.decode(s)
>   File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
>     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
>   File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
>     raise JSONDecodeError("Expecting value", s, err.value) from None
> json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
> dpkg: error processing package jupyter-nbextension-jupyter-js-widgets (--remove):
>  subprocess installed pre-removal script returned error exit status 1
> Errors were encountered while processing:
>  jupyter-nbextension-jupyter-js-widgets
> 
> 
> -- System Information:
> Debian Release: stretch/sid

-- 
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
https://github.com/infinity0/pubkeys.git



More information about the Python-modules-team mailing list