tkf / emacs-ipython-notebook

IPython notebook client in Emacs
tkf.github.com/emacs-ipython-notebook/
GNU General Public License v3.0
548 stars 51 forks source link

Error running timer `ein:query-ajax-timeout-callback': (json-readtable-error) while opening notebook list at any server #158

Open jrzaurin opened 9 years ago

jrzaurin commented 9 years ago

Description of the problem you have

when I run ein:notebooklist-open I get the error messages

Contacting host: 127.0.0.1:8961 ein: [error] QUERY-AJAX--PARSE-DATA: error from parser ein:json-read error in process filter: eq: JSON readtable error error in process filter: JSON readtable error ein: [error] QUERY-AJAX--PARSE-DATA: error from parser ein:json-read Error running timerein:query-ajax-timeout-callback': (json-readtable-error)`

This is independent to the port number or even URL for that matter

Steps to reproduce the problem

  1. start ipython server
  2. M-x ein:notebooklist-open

    Expected output

Given the port, or the URL, I would have expected to see my notebook in a format similar to that of the screenshots here https://github.com/tkf/emacs-ipython-notebook/wiki/Screenshots

Based on the System Info below, I am guessing that my problem is related to the request settings, since I can see websocket, popup, etc...but not request. However, at this stage I do not what to do.

Your EIN configuration (in .emacs.d/init.el or somewhere else)

I have tried unnumbered configurations, but this is how the relevant section of my .emacs file looks (surely, half of it is irrelevant).

;;Ipython Notebook (add-to-list 'load-path "/Users/javier/.emacs.d/elpa/request-0.2.0/") (require 'request) (add-to-list 'load-path "/Users/javier/.emacs.d/elpa/helm-1.6.7/") (require 'helm) (add-to-list 'load-path "/Users/javier/.emacs.d/elpa/company-0.8.9/") (autoload 'company-mode "company" nil t) (add-to-list 'load-path "/Users/javier/.emacs.d/elpa/popup-0.5.2/") (require 'popup) (add-to-list 'load-path "/Users/javier/.emacs.d/elpa/websocket-1.3/") (require 'websocket) (add-to-list 'load-path "/Users/javier/.emacs.d/elpa/ein-0.2.0/") (require 'ein) (require 'cc-mode) ;;(setq ein:use-auto-complete t) ;; Or, to enable "superpack" (a little bit hacky improvements): (setq ein:use-auto-complete-superpack t) `(setq ein:use-smartrep t)``

Your IPython configuration

  1. What is your IPython version? (run ipython --version):

2.2.0

  1. How do you start IPython? (e.g., ipython notebook --port 9999):

ipython notebook

  1. What is your IPython notebook port number or URL?:

http://localhost:8961/notebooks/pnb01.ipynb

Additional information (if any)

I have installed request using elpa, not from here https://github.com/tkf/emacs-request .

This should not matter, right(?)

System info:

("EIN system info"
 :emacs-version
 "GNU Emacs 24.4.1 (x86_64-apple-darwin13.2.0, NS apple-appkit-1265.20)
 of 2014-10-22 on tennine-slave.macports.org"
 :emacs-bzr-version nil
 :window-system ns
 :emacs-variant nil
 :os
 (:uname
  "Darwin javiers-mbp.home 13.4.0 Darwin Kernel Version 13.4.0: Wed Dec 17 19:05:52 PST 2014; root:xnu-2422.115.10~1/RELEASE_X86_64 x86_64
"
  :lsb-release nil)
 :image-types
 (png gif tiff jpeg xpm xbm pbm)
 :image-types-available
 (png gif tiff jpeg xpm xbm pbm)
 :ein
 (:version "0.2.0"
       :source-dir "/Users/javier/.emacs.d/elpa/ein-0.2.0/")
 :lib
 ((:name "websocket"
     :path "~/.emacs.d/elpa/websocket-1.3/websocket.elc"
     :featurep t
     :version-var websocket-version
     :version "1.3")
  (:name "auto-complete"
     :path "~/.emacs.d/elpa/auto-complete-1.4.0/auto-complete.elc"
     :featurep t
     :version-var nil
     :version nil)
  (:name "auto-complete"
     :path "~/.emacs.d/elpa/auto-complete-1.4.0/auto-complete.elc"
     :featurep t
     :version-var nil
     :version nil)
  (:name "popup"
     :path "~/.emacs.d/elpa/popup-0.5.2/popup.elc"
     :featurep t
     :version-var popup-version
     :version "0.5.2")
  (:name "python"
     :path "/Applications/MacPorts/Emacs.app/Contents/Resources/lisp/progmodes/python.elc"
     :featurep nil
     :version-var nil
     :version nil)
  (:name "python-mode"
     :path "~/.emacs.d/elpa/python-mode-6.1.3/python-mode.elc"
     :featurep t
     :version-var nil
     :version nil)
  (:name "smartrep"
     :path "~/.emacs.d/elpa/smartrep-0.0.3/smartrep.elc"
     :featurep t
     :version-var nil
     :version nil)
  (:name "helm"
     :path "~/.emacs.d/elpa/helm-1.6.7/helm.elc"
     :featurep t
     :version-var nil
     :version nil)))
millejoh commented 9 years ago

Have you tried updating EIN from melpa? It looks like you have @tkf version on your system, which is incompatible with IPython 2.x and beyond.