500 Serverfehler bei Verwendung des IPython-Notebooks unter Windows

1991
blokeley

Ich habe gerade eine Neuinstallation des IPython-Notebooks unter Windows 7 Professional 64 Bit durchgeführt.

Die Schritte, die ich unternahm, waren:

  1. Installieren Sie Python 3.4.1 von python.org
  2. pip install ipython [Notizbuch]

  3. pip install pywin numpy pygments nodeenv

Ich kann ein Notizbuch gut öffnen. Jedoch wenn ich auswähle File > Print Previewoder File > Download as HTMLerhalte ich einen 500 Serverfehler.

Der Stack-Trace lautet:

2014-08-07 09:44:25.431 [NotebookApp] Loaded template full.tpl C:\Python34\lib\site-packages\IPython\nbconvert\filters\markdown.py:78: UserWarning: Node.js 0.9.12 or later wasn't found. Nbconvert will try to use Pandoc instead. "Nbconvert will try to use Pandoc instead.") WARNING:tornado.general:500 GET /nbconvert/html/Users/Tom%20Oakley/Documents/IPython%20test.ipynb?download=false (::1): nbconvert failed: you need to have pywin32 installed for this to work ERROR:tornado.access:{ "Dnt": "1", "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36", "Referer": "http://localhost:8888/notebooks/Users/Tom%20Oakley/Documents/IPython%20test.ipynb", "Host": "localhost:8888", "Connection": "keep-alive", "Accept-Language": "en-US,en;q=0.8,en-GB;q=0.6", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8", "Accept-Encoding": "gzip,deflate,sdch" } ERROR:tornado.access:500 GET /nbconvert/html/Users/Tom%20Oakley/Documents/IPython%20test.ipynb?download=false (::1) 156.01ms referer=http://localhost:8888/notebooks/Users/Tom%20Oakley/Documents/IPython%20test.ipynb WARNING:tornado.access:404 GET /favicon.ico (::1) 1.00ms referer=None 

Ich dachte, nodeenvdas wäre node.js

Überlegungen, wie Sie diesen Fehler beheben können?

1

1 Antwort auf die Frage

0
blokeley

Das funktioniert:

  1. Klicken Sie mit der rechten Maustaste Command Promptim Startmenü auf.
  2. Auswählen Run as administrator.
  3. Wählen Sie Yesim Dialogfeld Benutzerkontensteuerung.
  4. Führen Sie ipython notebookim daraufhin angezeigten Eingabeaufforderungsfenster aus.

Grundsätzlich muss es aus irgendeinem Grund als Administrator ausgeführt werden.