jckantor / nbpages

Command line tool to maintain a repository of Jupyter notebooks.
https://jckantor.github.io/nbpages/
MIT License
1 stars 4 forks source link

Error with missing modules, template directory #60

Open adowling2 opened 3 years ago

adowling2 commented 3 years ago

@jckantor I just updated my laptop to the master branch and tried to run nbpages. nbpages works okay for this repo on another computer. Here are the errors:

[NbConvertApp] WARNING | Config option `template_path` not recognized by `HTMLExporter`.  Did you mean one of: `extra_template_paths, template_name, template_paths`?
Traceback (most recent call last):
  File "/Users/adowling/anaconda3/envs/spring2021/bin/jupyter-nbconvert", line 11, in <module>
    sys.exit(main())
  File "/Users/adowling/anaconda3/envs/spring2021/lib/python3.8/site-packages/jupyter_core/application.py", line 254, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/Users/adowling/anaconda3/envs/spring2021/lib/python3.8/site-packages/traitlets/config/application.py", line 845, in launch_instance
    app.start()
  File "/Users/adowling/anaconda3/envs/spring2021/lib/python3.8/site-packages/nbconvert/nbconvertapp.py", line 350, in start
    self.convert_notebooks()
  File "/Users/adowling/anaconda3/envs/spring2021/lib/python3.8/site-packages/nbconvert/nbconvertapp.py", line 519, in convert_notebooks
    self.exporter = cls(config=self.config)
  File "/Users/adowling/anaconda3/envs/spring2021/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 325, in __init__
    super().__init__(config=config, **kw)
  File "/Users/adowling/anaconda3/envs/spring2021/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 114, in __init__
    self._init_preprocessors()
  File "/Users/adowling/anaconda3/envs/spring2021/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 490, in _init_preprocessors
    super()._init_preprocessors()
  File "/Users/adowling/anaconda3/envs/spring2021/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 266, in _init_preprocessors
    self.register_preprocessor(preprocessor, enabled=True)
  File "/Users/adowling/anaconda3/envs/spring2021/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 227, in register_preprocessor
    preprocessor_cls = import_item(preprocessor)
  File "/Users/adowling/anaconda3/envs/spring2021/lib/python3.8/site-packages/traitlets/utils/importstring.py", line 30, in import_item
    module = __import__(package, fromlist=[obj])
ModuleNotFoundError: No module named 'jupyter_contrib_nbextensions'
- writing python index
[NbConvertApp] WARNING | Config option `template_path` not recognized by `HTMLExporter`.  Did you mean one of: `extra_template_paths, template_name, template_paths`?
Traceback (most recent call last):
  File "/Users/adowling/anaconda3/envs/spring2021/bin/jupyter-nbconvert", line 11, in <module>
    sys.exit(main())
  File "/Users/adowling/anaconda3/envs/spring2021/lib/python3.8/site-packages/jupyter_core/application.py", line 254, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/Users/adowling/anaconda3/envs/spring2021/lib/python3.8/site-packages/traitlets/config/application.py", line 845, in launch_instance
    app.start()
  File "/Users/adowling/anaconda3/envs/spring2021/lib/python3.8/site-packages/nbconvert/nbconvertapp.py", line 350, in start
    self.convert_notebooks()
  File "/Users/adowling/anaconda3/envs/spring2021/lib/python3.8/site-packages/nbconvert/nbconvertapp.py", line 519, in convert_notebooks
    self.exporter = cls(config=self.config)
  File "/Users/adowling/anaconda3/envs/spring2021/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 325, in __init__
    super().__init__(config=config, **kw)
  File "/Users/adowling/anaconda3/envs/spring2021/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 114, in __init__
    self._init_preprocessors()
  File "/Users/adowling/anaconda3/envs/spring2021/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 490, in _init_preprocessors
    super()._init_preprocessors()
  File "/Users/adowling/anaconda3/envs/spring2021/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 266, in _init_preprocessors
    self.register_preprocessor(preprocessor, enabled=True)
  File "/Users/adowling/anaconda3/envs/spring2021/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 227, in register_preprocessor
    preprocessor_cls = import_item(preprocessor)
  File "/Users/adowling/anaconda3/envs/spring2021/lib/python3.8/site-packages/traitlets/utils/importstring.py", line 30, in import_item
    module = __import__(package, fromlist=[obj])
ModuleNotFoundError: No module named 'jupyter_contrib_nbextensions'