From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id FyEIJrp7u2DeMAEAgWs5BA (envelope-from ) for ; Sat, 05 Jun 2021 15:27:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eMfRILp7u2DjBAAAbx9fmQ (envelope-from ) for ; Sat, 05 Jun 2021 13:27:22 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EA2C026342 for ; Sat, 5 Jun 2021 15:27:21 +0200 (CEST) Received: from localhost ([::1]:59826 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpWKf-0005nZ-1j for larch@yhetil.org; Sat, 05 Jun 2021 09:27:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpWJs-0005nN-7K for emacs-orgmode@gnu.org; Sat, 05 Jun 2021 09:26:34 -0400 Received: from ciao.gmane.io ([116.202.254.214]:33512) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpWJi-0006Gr-VY for emacs-orgmode@gnu.org; Sat, 05 Jun 2021 09:26:30 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lpWJg-0000jw-GV for emacs-orgmode@gnu.org; Sat, 05 Jun 2021 15:26:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-orgmode@gnu.org To: emacs-orgmode@gnu.org From: Uwe Brauer Subject: MacOS 10.15 cannot use the python-matlab engine. Date: Sat, 05 Jun 2021 15:26:11 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cancel-Lock: sha1:p2Bq0tPTNBFb4Fvd8yMvVRik1+E= Mail-Copies-To: never Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622899642; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=0u3OPwRmvA5w+Af7EZ6JD+l4C03o6NOSEaSeGTeFcRU=; b=DFh/IuBG0OOL+9edKUdqE8MT3gNQGlg1wxOM4fRJRSJGF4GNqJwlQvjyuneikJgw8YdTH+ uC8/x2JGHEOVEIgN006wsQ/zJk/583DOnASfn7luNhksn1FVxBhMKrTlL4Q7GFkSIntLsM btZ0cz4z24znwVcgoerR5lD+oPfE2u6t5t4aiL37T1Tj2jLXwbkITFYJWYeq/ekJV/SRC8 ypqmtqb8/U5qu6yZA1XGcUmQzwYj2WXTEFTTK0tOAJW7TxPlSDEDuJ5p3gm8kiS0uKLMGb 5hKhwG8D6gaPYV0Czuym+U+/DOjCjmxTsJ+6F8U1FzE0nKWTt8zIikPBsB6KGQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622899642; a=rsa-sha256; cv=none; b=WuA/chwRxEKdm3NI8m2g5wjm1ceZuSsr34F+lh6FzQme+DD0tefJAAWXnskjICfXm9ljKx 2ATi7AKvrdAG35xtJgzdl89m5il2tFNZnpMAjIR8sEv9Sj+mO/wNXs3gTWRZmWa8+H6eTd t9DFujxtrWLGkWp0n49SMsC9M8LSzsbc9wzCKy292CqF1XSNo32PHyINdXc1gCKtq3W5Wx Ag1gaK15npjL8D4mg9GoDWaifpCGRkm6aLegb1jRq8Qxv6rvqXV8Gdq6LQyCSaxrw/AHME ImLo4srXEW6C/2cIX9Tu0+qkEB1Fi/LgDbBQcZ9qYo8WlMlz+KLAm2xWCyCcKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.83 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=mat.ucm.es (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: EA2C026342 X-Spam-Score: -1.83 X-Migadu-Scanner: scn0.migadu.com X-TUID: HcTubZL2RHHO Hi Could use perfectly well the python-matlab engine from within emacs org mode in Ubuntu 16.04, python 3.5 and matlab 2019b. Now I am using 1. Macos 10.15 (catalina), 2. Matlab2019b. (That only support python 2.7, 3.6, 3.7 but not 3.8, which the MacOs ships. 3. So I installed fink (and python 3.7.) 4. The installation of the python engine. a. In /Applications/MATLAB_R2019b.app/extern/engines/python I run b. sudo /opt/sw/bin/python3.7 setup.py install c. The installation seem fine 5. Setting up emacs: my setting is now slightly different: #+BEGIN_SRC emacs-lisp (setq org-confirm-babel-evaluate nil) ;don't prompt me to confirm everytime I want to evaluate a block ;;; display/update images in the buffer after I evaluate (add-hook 'org-babel-after-execute-hook 'org-display-inline-images 'append) (add-to-list 'org-src-lang-modes '("matlab" . matlab)) (setq python-shell-interpreter "/opt/sw/bin/python3.7") ;; set default headers for convenience (setq org-babel-default-header-args:matlab '((:results . "output replace") (:session . "matlab") (:kernel . "matlab") (:exports . "code") (:cache . "no") (:noweb . "no") (:hlines . "no") (:tangle . "no"))) (defalias 'org-babel-execute:matlab 'org-babel-execute:ipython) (defalias 'org-babel-prep-session:matlab 'org-babel-prep-session:ipython) (defalias 'org-babel-matlab-initiate-session 'org-babel-ipython-initiate-session) #+END_SRC Now, I run as an example #+begin_src matlab :results output latex :exports results :eval never-export :wrap latex x = [1, 2, 3, 4, 5]; fprintf('|%d', x) #+end_src But I obtain now the unexpected error ,---- | Debugger entered--Lisp error: (error "There was a fatal error trying to process the requ...") | signal(error ("There was a fatal error trying to process the requ...")) | error("There was a fatal error trying to process the requ...") | ob-ipython--dump-error("Traceback (most recent call last):\n File \"/Users/...") | ob-ipython--execute-request("x = [1, 2, 3, 4, 5];\nfprintf('|%d', x)" "matlab") | ob-ipython--execute-sync("x = [1, 2, 3, 4, 5];\nfprintf('|%d', x)" ((:colname-names) (:rowname-names) (:result-params "replace" "output" "latex") (:result-type . output) (:results . "replace output latex") (:exports . "results") (:session . "matlab") (:kernel . "matlab") (:cache . "no") (:noweb . "no") (:hlines . "no") (:tangle . "no") (:eval . "never-export") (:wrap . "latex"))) | org-babel-execute:matlab("x = [1, 2, 3, 4, 5];\nfprintf('|%d', x)" ((:colname-names) (:rowname-names) (:result-params "replace" "output" "latex") (:result-type . output) (:results . "replace output latex") (:exports . "results") (:session . "matlab") (:kernel . "matlab") (:cache . "no") (:noweb . "no") (:hlines . "no") (:tangle . "no") (:eval . "never-export") (:wrap . "latex"))) | org-babel-execute-src-block(nil ("matlab" "x = [1, 2, 3, 4, 5];\nfprintf('|%d', x)" ((:colname-names) (:rowname-names) (:result-params "latex" "output" "replace") (:result-type . output) (:results . "latex output replace") (:exports . "results") (:wrap . "latex") (:eval . "never-export") (:tangle . "no") (:hlines . "no") (:noweb . "no") (:cache . "no") (:kernel . "matlab") (:session . "matlab")) "" nil 2036 "(ref:%s)")) | org-ctrl-c-ctrl-c(nil) | funcall-interactively(org-ctrl-c-ctrl-c nil) | call-interactively(org-ctrl-c-ctrl-c nil nil) | command-execute(org-ctrl-c-ctrl-c) `---- I know that there some MaCOS users here in the list: Any idea what went wrong. Any help is strongly appreciated, since I don't have access to my Linux machine fro the coming days. Regards Uwe Brauer