[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Json readable error

From: Xu Chunyang
Subject: Re: [O] Json readable error
Date: Sun, 22 Jul 2018 02:31:21 +0800
User-agent: mu4e 1.1.0; emacs 26.1

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 via email to

[Prev in Thread] Current Thread [Next in Thread]