emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: [SOLVED] (was: [downgrading to matlab 2019a and using 3.5 NOW does not work neither])
Date: Mon, 15 Nov 2021 14:31:20 +0100	[thread overview]
Message-ID: <875ystsfyv.fsf_-_@mat.ucm.es> (raw)
In-Reply-To: <87ilwur5iw.fsf@mat.ucm.es>



It was quite an ordeal, just in case someone runs into a similar problem.

Advice: don't try to upgrade python on a given Ubuntu distribution!!!!

* reinstall jupyter

#+begin_src 
sudo dpkg --purge python3-ptyprocess
sudo -H pip3 install --upgrade --force-reinstall --no-cache-dir jupyter
sudo -H pip3 install --upgrade --force-reinstall --no-cache-dir numpy
sudo -H pip3 install --upgrade --force-reinstall --no-cache-dir pymatbridge
sudo -H pip3 install --upgrade --force-reinstall --no-cache-dir matlab_kernel
#+end_src

* check https://github.com/Calysto/matlab_kernel#kernel-times-out-while-starting
#+begin_src 

python3 -m matlab_kernel.check 
#+end_src


That told me to look for a matlab solution

* matlab solution for Ubuntu 16.04
https://de.mathworks.com/matlabcentral/answers/403561-import-error-matlab-engine-in-python

** solve the gcc library problem

#+begin_src 

LD_LIBRARY_PATH=/usr/local/lib64/:$LD_LIBRARY_PATH
$ export LD_LIBRARY_PATH
$ sudo apt-add-repository ppa:ubuntu-toolchain-r/test
$ sudo apt-get update
$ sudo apt-get install gcc-6 g++-6
#+end_src
** install the engine again
#+begin_src 

cd /usr/local/MATLAB/R2019a/extern/engines/python/
sudo /usr/bin/python3 setup.py install
#+end_src


** Start the engine

DONE!   



  reply	other threads:[~2021-11-15 13:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-12 22:15 after installing python3.6 on Ubuntu 16.04, org files open with errors Uwe Brauer
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   ` Uwe Brauer [this message]
2021-11-15 14:51     ` [SOLVED] (was: [downgrading to matlab 2019a and using 3.5 NOW does not work neither]) 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=875ystsfyv.fsf_-_@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: [SOLVED] (was: [downgrading to matlab 2019a and using 3.5 NOW does not work neither])' \
    /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).