question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`jupyter notebook` fails to create the exchange directory

See original GitHub issue

Just running jupyter notebook after quickstart attempts to create the exchange directory. In my case, this fails because I do not have permissions in the /srv directory.

[C 09:01:08.652 NotebookApp] Unwritable directory, please contact your instructor: /srv/nbgrader/exchange
[E 09:01:08.654 NotebookApp] Traceback (most recent call last):
      File "/home/kenny/miniconda3/envs/nbgrader/lib/python3.6/site-packages/nbgrader/server_extensions/assignment_list/handlers.py", line 63, in list_released_assignments
        assignments = lister.start()
      File "/home/kenny/miniconda3/envs/nbgrader/lib/python3.6/site-packages/nbgrader/exchange/list.py", line 129, in start
        super(ExchangeList, self).start()
      File "/home/kenny/miniconda3/envs/nbgrader/lib/python3.6/site-packages/nbgrader/exchange/exchange.py", line 122, in start
        self.ensure_root()
      File "/home/kenny/miniconda3/envs/nbgrader/lib/python3.6/site-packages/nbgrader/exchange/exchange.py", line 100, in ensure_root
        self.fail("Unwritable directory, please contact your instructor: {}".format(self.root))
      File "/home/kenny/miniconda3/envs/nbgrader/lib/python3.6/site-packages/nbgrader/exchange/exchange.py", line 78, in fail
        raise ExchangeError(msg)
    nbgrader.exchange.exchange.ExchangeError: Unwritable directory, please contact your instructor: /srv/nbgrader/exchange

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jhamrickcommented, Jun 30, 2019

There is documentation for setting up the exchange here: https://nbgrader.readthedocs.io/en/stable/user_guide/managing_assignment_files.html#setting-up-the-exchange

I think an example in the docs where you say where Jupyter is installed (for example /home/administrator/Jupyter)

I’m a bit hesitant to list specific directories like that just because it will be different on every system, and in my experience having specifics like that in the documentation can actually create more confusion 😕 However, I think it wouldn’t hurt to include a link on the installation page pointing to the documentation on setting up the exchange, so that it’s clearer that is a required step in the setup process.

On Sun, Jun 30, 2019 at 5:21 PM Yenthe V.G notifications@github.com wrote:

Hmm I see. Could you perhaps slightly expand the documentation though? I think an example in the docs where you say where Jupyter is installed (for example /home/administrator/Jupyter) along with in which directory the extra directories should be created would be a neat clarification. To me it’s unclear in which path nbgrader actually expects the new folder to be created.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jupyter/nbgrader/issues/820?email_source=notifications&email_token=AAAUL5AAWOYDJQQ4XUBH33LP5DMPJA5CNFSM4DTEGZR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY4PILI#issuecomment-507049005, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAUL5CAWHQISPYTD7N2WPLP5DMPJANCNFSM4DTEGZRQ .

0reactions
Yenthe666commented, Jun 30, 2019

Hmm I see. Could you perhaps slightly expand the documentation though? I think an example in the docs where you say where Jupyter is installed (for example /home/administrator/Jupyter) along with in which directory the extra directories should be created would be a neat clarification. To me it’s unclear in which path nbgrader actually expects the new folder to be created.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating Folder Failed on jupyter notebook - Stack Overflow
The reason you cannot create a folder is because you do not have permission. This could be that you are not a on...
Read more >
Run Jupyter notebooks in your workspace - Azure
Learn how run a Jupyter notebook without leaving your workspace in Azure Machine Learning studio.
Read more >
Exchanging assignment files — nbgrader 0.8.1 documentation
This page describes the built-in implementation of an exchange directory coupled with instructor and student interfaces - both integrated in the Jupyter ......
Read more >
Jupyter Notebook fails to launch in ArcGIS Pro 2.8
When I'm going to give up, I tried to reboot the computer and it worked. You should really try this. Let me know...
Read more >
Jupyter: An error occurred while creating a new notebook
2 Answers 2 · Close all Jupyter Notebook tabs on the web browser. · Terminate all Jupyter processes in the terminal. · Open...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found