Skip to content

jupyter-drive nbconfig conflict, either nbgrader or existing jupyter-drive config - not clear #129

@jdfreder

Description

@jdfreder

I installed nbgrader before installing jupyter-drive and I received this error message:

WARNING:root:Unrecognized JSON config file version, assuming version 1
Traceback (most recent call last):
  File "/Users/jon/anaconda/lib/python3.4/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/Users/jon/anaconda/lib/python3.4/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/jon/jupyter-drive/jupyterdrive/__main__.py", line 2, in <module>
    jupyterdrive.main()
  File "/Users/jon/jupyter-drive/jupyterdrive/__init__.py", line 161, in main
    verbose=args.verbose
  File "/Users/jon/jupyter-drive/jupyterdrive/__init__.py", line 46, in install
    activate(profile, mixed=mixed)
  File "/Users/jon/jupyter-drive/jupyterdrive/__init__.py", line 89, in activate
    return _activate(profile, mixed)
  File "/Users/jon/jupyter-drive/jupyterdrive/__init__.py", line 99, in _activate
    raise ValueError('You already got some configuration that will conflict with google drive. Bailin out')
ValueError: You already got some configuration that will conflict with google drive. Bailin out

My config looked like this:

{
  "format": 1,
  "NotebookApp": {
    "server_extensions": [
      "nbgrader.nbextensions.assignment_list"
    ],
    "contents_manager_class": "jupyterdrive.clientsidenbmanager.ClientSideContentsManager",
    "tornado_settings": {
      "contents_js_source": "nbextensions/gdrive/drive-contents"
    }
  }
}

Maybe it's actually the existing jupyter-drive config, from an earlier failed attempt, that is causing the conflict. If so, maybe we should try to recognize the existing content.

The workaround was to erase the troublesome content from my config so that my config looked like this:

{

}

Which lead to:

WARNING:root:Unrecognized JSON config file version, assuming version 1
INFO:jupyterdrive:Activating Google Drive integration

And a successful config file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions