emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: after installing python3.6 on Ubuntu 16.04, org files open with errors
Date: Fri, 12 Nov 2021 23:15:12 +0100	[thread overview]
Message-ID: <878rxtkolr.fsf@mat.ucm.es> (raw)

[-- Attachment #1: Type: text/plain, Size: 542 bytes --]


Hi

I am running Ubuntu 16.04 and I installed python3.6 (which is not
officially supported for that Ubuntu version via 
https://askubuntu.com/questions/865554/how-do-i-install-python-3-6-using-apt-get

I also installed 

sudo -H python3.6 -m pip install jupyter
sudo -H python3.6 -m pip install pexpect
sudo -H python3.6 -m pip install matlab_kernel


Now however I cannot open even simple org files, I obtain errors I attach
and most of my keybinding and other things do not work.

Any help is strongly appreciated.

Regards

Uwe Brauer 



[-- Attachment #2: ob-python-bug.txt --]
[-- Type: text/plain, Size: 1259 bytes --]

Traceback (most recent call last):
  File "/home/oub/.emacs.d/elpa/ob-ipython-20180224.153/client.py", line 1, in <module>
    import jupyter_client as client
  File "/usr/local/lib/python3.6/dist-packages/jupyter_client/__init__.py", line 6, in <module>
    from .asynchronous import AsyncKernelClient  # noqa
  File "/usr/local/lib/python3.6/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in <module>
    from .client import AsyncKernelClient  # noqa
  File "/usr/local/lib/python3.6/dist-packages/jupyter_client/asynchronous/client.py", line 6, in <module>
    from jupyter_client.channels import HBChannel
  File "/usr/local/lib/python3.6/dist-packages/jupyter_client/channels.py", line 15, in <module>
    from .session import Session
  File "/usr/local/lib/python3.6/dist-packages/jupyter_client/session.py", line 52, in <module>
    from jupyter_client.jsonutil import extract_dates
  File "/usr/local/lib/python3.6/dist-packages/jupyter_client/jsonutil.py", line 15, in <module>
    from dateutil.parser import parse as _dateutil_parse  # type: ignore
  File "/usr/lib/python3/dist-packages/dateutil/parser.py", line 25, in <module>
    from six import text_type, binary_type, integer_types
ModuleNotFoundError: No module named 'six'

[-- Attachment #3: python3.6.txt --]
[-- Type: text/plain, Size: 8968 bytes --]

Debugger entered--Lisp error: (json-readtable-error 84)
  signal(json-readtable-error (84))
  json-read()
  json-read-from-string("Traceback (most recent call last):\n  File \"/usr/local/bin/jupyter-kernelspec\", line 7, in <module>\n    from jupyter_client.kernelspecapp import KernelSpecApp\n  File \"/usr/local/lib/python3.6/dist-packages/jupyter_client/__init__.py\", line 6, in <module>\n    from .asynchronous import AsyncKernelClient  # noqa\n  File \"/usr/local/lib/python3.6/dist-packages/jupyter_client/asynchronous/__init__.py\", line 1, in <module>\n    from .client import AsyncKernelClient  # noqa\n  File \"/usr/local/lib/python3.6/dist-packages/jupyter_client/asynchronous/client.py\", line 6, in <module>\n    from jupyter_client.channels import HBChannel\n  File \"/usr/local/lib/python3.6/dist-packages/jupyter_client/channels.py\", line 15, in <module>\n    from .session import Session\n  File \"/usr/local/lib/python3.6/dist-packages/jupyter_client/session.py\", line 52, in <module>\n    from jupyter_client.jsonutil import extract_dates\n  File \"/usr/local/lib/python3.6/dist-packages/jupyter_client/jsonutil.py\", line 15, in <module>\n    from dateutil.parser import parse as _dateutil_parse  # type: ignore\n  File \"/usr/lib/python3/dist-packages/dateutil/parser.py\", line 25, in <module>\n    from six import text_type, binary_type, integer_types\nModuleNotFoundError: No module named 'six'\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()
  set-auto-mode-0(org-mode nil)
  set-auto-mode--apply-alist((("\\.odb\\'" . archive-mode) ("\\.oth\\'" . archive-mode) ("\\.otf\\'" . archive-mode) ("\\.oti\\'" . archive-mode) ("\\.otc\\'" . archive-mode) ("\\.wiki\\'" . wikipedia-mode) ("\\.text\\'" . markdown-mode) ("\\.tlc\\'" . tlc-mode) ("\\.m\\'" . matlab-mode) ("\\.org$" . org-mode) ("\\.odc\\'" . archive-mode) ("\\.odf\\'" . archive-mode) ("\\.odi\\'" . archive-mode) ("\\.otp\\'" . archive-mode) ("\\.odp\\'" . archive-mode) ("\\.otg\\'" . archive-mode) ("\\.odg\\'" . archive-mode) ("\\.ots\\'" . archive-mode) ("\\.ods\\'" . archive-mode) ("\\.odm\\'" . archive-mode) ("\\.ott\\'" . archive-mode) ("\\.odt\\'" . archive-mode) ("\\.fqm$" . message-mode) ("\\.alda\\'" . alda-mode) ("\\.[Cc][Ss][Vv]\\'" . csv-mode) ("\\.d[i]?\\'" . d-mode) ("\\.diffscuss\\'" . diffscuss-mode) ("\\.djvu\\'" . djvu-dummy-mode) ("[\\\\/]pentadactyl\\.\\(inbox\\|mail\\)\\.google\\..*\\.txt..." . gmail-message-mode) ("[\\\\/]itsalltext[\\\\/]\\(inbox\\|mail\\)\\.google\\..*\\.t..." . gmail-message-mode) ("[\\\\/]\\(inbox\\|mail\\)-google-com.*\\.\\(ckr\\|html?\\|t..." . gmail-message-mode) ("hg-histedit-" . hg-histedit-mode) ("\\.hgignore\\'" . hgignore-mode) ("/Mercurial\\.ini\\'" . hgrc-mode) ("/\\.hg/hgrc\\'" . hgrc-mode) ("/\\.hgrc\\'" . hgrc-mode) ("\\.lean$" . lean-mode) ("\\.ledger\\'" . ledger-mode) ("/git-rebase-todo\\'" . git-rebase-mode) ("\\.R$" . R-mode) ("\\.jl\\'" . julia-mode) ("\\.tlc$" . tlc-mode) ("\\.m$" . matlab-mode) ("\\.hva\\'" . latex-mode) ("\\.swift\\'" . swift-mode) ("\\.gpg\\(~\\|\\.~[0-9]+~\\)?\\'" nil epa-file) ("\\.elc\\'" . elisp-byte-code-mode) ("\\.zst\\'" nil jka-compr) ("\\.dz\\'" nil jka-compr) ("\\.xz\\'" nil jka-compr) ...) nil nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(nil t)
  find-file-noselect-1(#<buffer matlab-python.org> "~/Mail/Remember/matlab-python.org" nil nil "~/ALLES/Mail/Remember/matlab-python.org" (14690076 47))
  find-file-noselect("/home/oub/Mail/Remember/matlab-python.org" nil nil nil)
  #f(compiled-function (filename &optional wildcards) "Edit file FILENAME.\nSwitch to a buffer visiting file FILENAME,\ncreating one if none already exists.\nInteractively, the default if you just type RET is the current directory,\nbut the visited file name is available through the minibuffer history:\ntype \\[next-history-element] to pull it into the minibuffer.\n\nThe first time \\[next-history-element] is used after Emacs prompts for\nthe file name, the result is affected by `file-name-at-point-functions',\nwhich by default try to guess the file name by looking at point in the\ncurrent buffer.  Customize the value of `file-name-at-point-functions'\nor set it to nil, if you want only the visited file name and the\ncurrent directory to be available on first \\[next-history-element]\nrequest.\n\nYou can visit files on remote machines by specifying something\nlike /ssh:SOME_REMOTE_MACHINE:FILE for the file name.  You can\nalso visit local files as a different user by specifying\n/sudo::FILE for the file name.\nSee the Info node `(tramp)File name Syntax' in the Tramp Info\nmanual, for more about this.\n\nInteractively, or if WILDCARDS is non-nil in a call from Lisp,\nexpand wildcards (if any) and visit multiple files.  You can\nsuppress wildcard expansion by setting `find-file-wildcards' to nil.\n\nTo visit a file without any kind of conversion and without\nautomatically choosing a major mode, use \\[find-file-literally]." (interactive #f(compiled-function () #<bytecode -0xa43fcb9897262f1>)) #<bytecode 0xb6206f70bd6defc>)("/home/oub/Mail/Remember/matlab-python.org" nil)
  ad-Advice-find-file(#f(compiled-function (filename &optional wildcards) "Edit file FILENAME.\nSwitch to a buffer visiting file FILENAME,\ncreating one if none already exists.\nInteractively, the default if you just type RET is the current directory,\nbut the visited file name is available through the minibuffer history:\ntype \\[next-history-element] to pull it into the minibuffer.\n\nThe first time \\[next-history-element] is used after Emacs prompts for\nthe file name, the result is affected by `file-name-at-point-functions',\nwhich by default try to guess the file name by looking at point in the\ncurrent buffer.  Customize the value of `file-name-at-point-functions'\nor set it to nil, if you want only the visited file name and the\ncurrent directory to be available on first \\[next-history-element]\nrequest.\n\nYou can visit files on remote machines by specifying something\nlike /ssh:SOME_REMOTE_MACHINE:FILE for the file name.  You can\nalso visit local files as a different user by specifying\n/sudo::FILE for the file name.\nSee the Info node `(tramp)File name Syntax' in the Tramp Info\nmanual, for more about this.\n\nInteractively, or if WILDCARDS is non-nil in a call from Lisp,\nexpand wildcards (if any) and visit multiple files.  You can\nsuppress wildcard expansion by setting `find-file-wildcards' to nil.\n\nTo visit a file without any kind of conversion and without\nautomatically choosing a major mode, use \\[find-file-literally]." (interactive #f(compiled-function () #<bytecode -0xa43fcb9897262f1>)) #<bytecode 0xb6206f70bd6defc>) "/home/oub/Mail/Remember/matlab-python.org")
  apply(ad-Advice-find-file #f(compiled-function (filename &optional wildcards) "Edit file FILENAME.\nSwitch to a buffer visiting file FILENAME,\ncreating one if none already exists.\nInteractively, the default if you just type RET is the current directory,\nbut the visited file name is available through the minibuffer history:\ntype \\[next-history-element] to pull it into the minibuffer.\n\nThe first time \\[next-history-element] is used after Emacs prompts for\nthe file name, the result is affected by `file-name-at-point-functions',\nwhich by default try to guess the file name by looking at point in the\ncurrent buffer.  Customize the value of `file-name-at-point-functions'\nor set it to nil, if you want only the visited file name and the\ncurrent directory to be available on first \\[next-history-element]\nrequest.\n\nYou can visit files on remote machines by specifying something\nlike /ssh:SOME_REMOTE_MACHINE:FILE for the file name.  You can\nalso visit local files as a different user by specifying\n/sudo::FILE for the file name.\nSee the Info node `(tramp)File name Syntax' in the Tramp Info\nmanual, for more about this.\n\nInteractively, or if WILDCARDS is non-nil in a call from Lisp,\nexpand wildcards (if any) and visit multiple files.  You can\nsuppress wildcard expansion by setting `find-file-wildcards' to nil.\n\nTo visit a file without any kind of conversion and without\nautomatically choosing a major mode, use \\[find-file-literally]." (interactive #f(compiled-function () #<bytecode -0xa43fcb9897262f1>)) #<bytecode 0xb6206f70bd6defc>) "/home/oub/Mail/Remember/matlab-python.org")
  find-file("/home/oub/Mail/Remember/matlab-python.org")
  dired--find-file(find-file "/home/oub/Mail/Remember/matlab-python.org")
  dired--find-possibly-alternative-file("/home/oub/Mail/Remember/matlab-python.org")
  dired-find-file()
  funcall-interactively(dired-find-file)
  call-interactively(dired-find-file nil nil)
  command-execute(dired-find-file)

             reply	other threads:[~2021-11-12 22:15 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-12 22:15 Uwe Brauer [this message]
2021-11-13  2:22 ` Tim Cross
2021-11-13  9:59   ` Martin Schöön
2021-11-13 15:39     ` Uwe Brauer
2021-11-13 13:31   ` Max Nikulin
2021-11-13 15:48     ` Uwe Brauer
2021-11-13 15:38   ` Uwe Brauer
2021-11-13 18:39     ` Tim Cross
2021-11-14 17:12       ` Max Nikulin
2021-11-14 17:43         ` Uwe Brauer
2021-11-14 17:49 ` [downgrading to matlab 2019a and using 3.5 NOW does not work neither] (was: after installing python3.6 on Ubuntu 16.04, org files open with errors) Uwe Brauer
2021-11-15 13:31   ` [SOLVED] (was: [downgrading to matlab 2019a and using 3.5 NOW does not work neither]) Uwe Brauer
2021-11-15 14:51     ` Max Nikulin

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=878rxtkolr.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: after installing python3.6 on Ubuntu 16.04, org files open with errors' \
    /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

Code repositories for project(s) associated with this 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).