emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Json readable error
@ 2018-07-21 15:39 Doyley, Marvin M.
  2018-07-21 18:31 ` Xu Chunyang
  0 siblings, 1 reply; 3+ messages in thread
From: Doyley, Marvin M. @ 2018-07-21 15:39 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Json readable error
  2018-07-21 15:39 Json readable error Doyley, Marvin M.
@ 2018-07-21 18:31 ` Xu Chunyang
  2018-07-21 21:06   ` Doyley, Marvin M.
  0 siblings, 1 reply; 3+ messages in thread
From: Xu Chunyang @ 2018-07-21 18:31 UTC (permalink / raw)
  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 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Json readable error
  2018-07-21 18:31 ` Xu Chunyang
@ 2018-07-21 21:06   ` Doyley, Marvin M.
  0 siblings, 0 replies; 3+ messages in thread
From: Doyley, Marvin M. @ 2018-07-21 21:06 UTC (permalink / raw)
  To: Xu Chunyang; +Cc: emacs-orgmode@gnu.org, Doyley, Marvin M.

Thanks,

I will do the same, since I really use ipython in emacs.

Cheers,
M

> On Jul 21, 2018, at 2:31 PM, Xu Chunyang <mail@xuchunyang.me> wrote:
> 
> 
> 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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-07-21 21:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-21 15:39 Json readable error Doyley, Marvin M.
2018-07-21 18:31 ` Xu Chunyang
2018-07-21 21:06   ` Doyley, Marvin M.

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).