emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Xu Chunyang <mail@xuchunyang.me>
To: "Doyley, Marvin M." <m.doyley@rochester.edu>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Json readable error
Date: Sun, 22 Jul 2018 02:31:21 +0800	[thread overview]
Message-ID: <m2y3e4785i.fsf@xuchunyang.me> (raw)
In-Reply-To: <488B245C-BDE9-40A1-A7F9-CF2D0E9506A0@ur.rochester.edu>


Doyley, Marvin M. writes:

> Hi there,
>
> For some strange reason whenever I switch to org-mode (M-x org-mode), I get json readtable error: 84, which I have been trying to resolve without much success.
>
> Have anyone encountered this before or know how to resolve it?  This problem could be due to recent change that I have made to my default python (changed from anaconda 3.4 to intel’s python 3.4), but I am not sure why 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 `ipython kernelspec` is deprecated and will be removed in future versions.\n[TerminalIPythonApp] WARNING | You likely want to use `jupyter kernelspec` in the 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_file}\"\n        ],\n        \"env\": {},\n        \"display_name\": \"Python 3\",\n        \"language\": \"python\",\n        \"interrupt_mode\": \"signal\",\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 outline-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-mode")))
>   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.

  reply	other threads:[~2018-07-21 18:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-21 15:39 Json readable error Doyley, Marvin M.
2018-07-21 18:31 ` Xu Chunyang [this message]
2018-07-21 21:06   ` Doyley, Marvin M.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2y3e4785i.fsf@xuchunyang.me \
    --to=mail@xuchunyang.me \
    --cc=emacs-orgmode@gnu.org \
    --cc=m.doyley@rochester.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).