Creating Notebook Failed

114 views
Skip to first unread message

jerry.ki...@gmail.com

unread,
Aug 15, 2017, 10:00:15 PM8/15/17
to Anaconda - Public
After installing Anaconda and running "jupyter notebook", the browser does open a new tab. That's fine but when I tried to create a new notebook, I got the following error,
An error occurred while creating a new notebook. The error message is "Unexpected error while saving file: Untitled22.ipynb attempt to write a readonly database".
Followings are the error messages occurred in the backend. 

[I 20:49:39.626 NotebookApp] Creating new notebook in
[E 20:49:41.037 NotebookApp] Error while saving file: Untitled22.ipynb attempt t
o write a readonly database
    Traceback (most recent call last):
      File "C:\Users\Owner\Anaconda3\lib\site-packages\notebook\services\content
s\filemanager.py", line 421, in save
        self.check_and_sign(nb, path)
      File "C:\Users\Owner\Anaconda3\lib\site-packages\notebook\services\content
s\manager.py", line 440, in check_and_sign
        self.notary.sign(nb)
      File "C:\Users\Owner\Anaconda3\lib\site-packages\nbformat\sign.py", line 4
47, in sign
        self.store.store_signature(signature, self.algorithm)
      File "C:\Users\Owner\Anaconda3\lib\site-packages\nbformat\sign.py", line 2
09, in store_signature
        (algorithm, digest, datetime.utcnow())
    sqlite3.OperationalError: attempt to write a readonly database
[W 20:49:41.051 NotebookApp] Unexpected error while saving file: Untitled22.ipyn
b attempt to write a readonly database
[E 20:49:41.055 NotebookApp] {
      "Host": "localhost:8888",
      "Connection": "keep-alive",
      "Content-Length": "19",
      "Accept": "application/json, text/javascript, */*; q=0.01",
      "Origin": "http://localhost:8888",
      "X-Requested-With": "XMLHttpRequest",
      "X-Xsrftoken": "2|0b4559d2|d01ce0a237f15c5d3125392a16473bd8|1502839716",
      "User-Agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36
 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36",
      "Content-Type": "application/json",
      "Referer": "http://localhost:8888/tree",
      "Accept-Encoding": "gzip, deflate, br",
      "Accept-Language": "en-US,en;q=0.8,ja;q=0.6",
      "Cookie": "_xsrf=2|0b4559d2|d01ce0a237f15c5d3125392a16473bd8|1502839716; u
sername-localhost-8888=\"2|1:0|10:1502844573|23:username-localhost-8888|44:MTYzZ
jlhOTE5NjI5NGZhODljZjE2NzAxNmZjMTllNWQ=|3b76d4e756f8b8fa9568da2550ece3fe77d8e1f6
573e082d1dd88bc5dce0aa91\""
    }
[E 20:49:41.067 NotebookApp] 500 POST /api/contents (::1) 1429.05ms referer=http
://localhost:8888/tree

I uninstalled and reinstalled Anaconda but still has this error even I changed the installation folder.
Looks like the uninstallation didn't remove all files completely. I used native uninstallation of Anaconda and from the program uninstall from windows.
My OS is windows 7.
Any helps or suggestions to be appreciated!

Ian Stokes Rees

unread,
Aug 15, 2017, 10:26:46 PM8/15/17
to anac...@continuum.io
Try starting Jupyter from the command line but with this option added in:

jupyter notebook --NotebookNotary.db_file=':memory:'

and see if that solves the problem.  If it does then the issue is write permissions to your home directory, probably due to the way Windows 7 installs.

Regards,

Ian
--
Anaconda Community Support Group Brought to you by Continuum Analytics
---
You received this message because you are subscribed to the Google Groups "Anaconda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anaconda+u...@continuum.io.
To post to this group, send email to anac...@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/anaconda/.

--

Ian Stokes-Rees, PhD
Computational Scientist
1.617.942.0218
ijst...@continuum.io
@ContinuumIO @ijstokes

Anaconda Powered By Continuum Analytics
Reply all
Reply to author
Forward
0 new messages