From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xu Chunyang Subject: Re: Json readable error Date: Sun, 22 Jul 2018 02:31:21 +0800 Message-ID: References: <488B245C-BDE9-40A1-A7F9-CF2D0E9506A0@ur.rochester.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgwfK-00007m-BR for emacs-orgmode@gnu.org; Sat, 21 Jul 2018 14:31:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fgwfH-0002e6-6e for emacs-orgmode@gnu.org; Sat, 21 Jul 2018 14:31:38 -0400 Received: from forward102o.mail.yandex.net ([37.140.190.182]:54166) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fgwfG-0002bO-P3 for emacs-orgmode@gnu.org; Sat, 21 Jul 2018 14:31:35 -0400 In-reply-to: <488B245C-BDE9-40A1-A7F9-CF2D0E9506A0@ur.rochester.edu> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Doyley, Marvin M." Cc: "emacs-orgmode@gnu.org" Doyley, Marvin M. writes: > Hi there, > > For some strange reason whenever I switch to org-mode (M-x org-mode), I g= et json readtable error: 84, which I have been trying to resolve without mu= ch success. > > Have anyone encountered this before or know how to resolve it? This prob= lem could be due to recent change that I have made to my default python (ch= anged from anaconda 3.4 to intel=E2=80=99s python 3.4), but I am not sure w= hy doing this would cause a problem. > > Best Wishes, > M > > Here is the backtrace. > > Debugger entered--Lisp error: (json-readtable-error 84) > signal(json-readtable-error (84)) > json-read() > json-read-array() > json-read() > json-read-from-string("[TerminalIPythonApp] WARNING | Subcommand `ipyth= on kernelspec` is deprecated and will be removed in future versions.\n[Term= inalIPythonApp] WARNING | You likely want to use `jupyter kernelspec` in th= e future\n{\n \"kernelspecs\": {\n \"python3\": {\n \"resource_dir= \": \"/anaconda/share/jupyter/kernels/python3\",\n \"spec\": {\n = \"argv\": [\n \"/anaconda/bin/python\",\n \"-m\",\n = \"ipykernel_launcher\",\n \"-f\",\n \"{connection_f= ile}\"\n ],\n \"env\": {},\n \"display_name\": \"Pytho= n 3\",\n \"language\": \"python\",\n \"interrupt_mode\": \"si= gnal\",\n \"metadata\": {}\n }\n }\n }\n}\n") > ob-ipython--get-kernels() > ob-ipython-auto-configure-kernels() > run-hooks(change-major-mode-after-body-hook text-mode-hook outline-mode= -hook org-mode-hook) > apply(run-hooks (change-major-mode-after-body-hook text-mode-hook outli= ne-mode-hook org-mode-hook)) > run-mode-hooks(org-mode-hook) > org-mode() > funcall-interactively(org-mode) > call-interactively(org-mode record nil) > command-execute(org-mode record) > helm-M-x(nil #("org-mode" 0 8 (match-part "org-mode"))) > funcall-interactively(helm-M-x nil #("org-mode" 0 8 (match-part "org-mo= de"))) > call-interactively(helm-M-x nil nil) > command-execute(helm-M-x) I encountered the same issue a few days ago, it is due to python version upgrade (jupyter no longer worked) and ob-ipython.el doesn't handle error very well, and ob-ipython.el also installs some code on org-mode-hook unconditionally. I simply delete ob-ipython.el and delete configuration of it in the init.el, then restart Emacs, since I've not used ob-ipython.el for a long time.