From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Brauer Subject: org-babel oz? Date: Thu, 9 Nov 2017 18:07:05 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_E8D3224986044FB79F1EF303209A79E5nordakademiede_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCrET-0007UR-8s for emacs-orgmode@gnu.org; Thu, 09 Nov 2017 13:07:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCrEN-0006HM-Jb for emacs-orgmode@gnu.org; Thu, 09 Nov 2017 13:07:17 -0500 Received: from merkur.nordakademie.de ([194.94.98.156]:36022) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCrEN-0006Dp-5t for emacs-orgmode@gnu.org; Thu, 09 Nov 2017 13:07:11 -0500 Received: from vpn.dmz.nordakademie.de ([192.168.5.10]) by merkur.nordakademie.de with ESMTP id 4bvowOHvRIR8NtBM for ; Thu, 09 Nov 2017 19:07:06 +0100 (CET) Content-Language: de-DE List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "emacs-orgmode@gnu.org" --_000_E8D3224986044FB79F1EF303209A79E5nordakademiede_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I am looking for a working configuration for using oz code blocks in org-mo= de file. I've installed Mozart2 on macOS 10.12.6 and use org-mode version 9= .0.9. I've put (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t) (oz . t))) into my Aquamacs initialization and the ob-z.el in a path where Emacs can r= ead it. If I try to execute (C-C C-C) the following code block #+begin_src oz :results value 39 + 3 #+end_src I get the following error messages: executing Oz code block... Org-babel: executing Oz expression Create OPI socket for evaluating expressions open-network-stream: make client process failed: Connection refused, :name,= *Org-babel-OPI-socket*, :buffer, nil, :host, localhost, :service, 6001, :n= owait, nil I cannot figure out, what to do? Any hints? Johannes --_000_E8D3224986044FB79F1EF303209A79E5nordakademiede_ Content-Type: text/html; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable
Hi,

I am looking for a working configuration for using oz code blocks in org-mo= de file. I've installed Mozart2 on macOS 10.12.6 and use org-mode version 9= .0.9. I've put
(org-babe= l-do-load-languages
 'or= g-babel-load-languages
 '((= emacs-lisp . t)
  &n= bsp;(oz . t)))
into my Aquamacs initialization and the ob-z.el in a path where Emacs can read it.<= /font>
= If I try to execute (C-C C-C) the following code block

#+beg= in_src oz :results value
  39= + 3
#+end= _src

I get the following error messages:

executing= Oz code block...
Org-babel= : executing Oz expression
Create OP= I socket for evaluating expressions
open-netw= ork-stream: make client process failed: Connection refused, :name, *Org-bab= el-OPI-socket*, :buffer, nil, :host, localhost, :service, 6001, :nowait, ni= l

I cannot figure out, what to do?
Any hints?

Johannes
--_000_E8D3224986044FB79F1EF303209A79E5nordakademiede_-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-babel oz? Date: Fri, 10 Nov 2017 13:10:59 -0500 Message-ID: <87mv3uuhqk.fsf@alphaville.usersys.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDDlt-0008Dm-DM for emacs-orgmode@gnu.org; Fri, 10 Nov 2017 13:11:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDDlq-0007Zq-5S for emacs-orgmode@gnu.org; Fri, 10 Nov 2017 13:11:17 -0500 Received: from [195.159.176.226] (port=33432 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eDDlp-0007ZI-Tz for emacs-orgmode@gnu.org; Fri, 10 Nov 2017 13:11:14 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eDDlc-00023Q-3g for emacs-orgmode@gnu.org; Fri, 10 Nov 2017 19:11:00 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Johannes Brauer writes: > Hi, > > I am looking for a working configuration for using oz code blocks in org-mode file. I've installed > Mozart2 on macOS 10.12.6 and use org-mode version 9.0.9. I've put > (org-babel-do-load-languages > 'org-babel-load-languages > '((emacs-lisp . t) > (oz . t))) > into my Aquamacs initialization and the ob-z.el in a path where Emacs can read it. > If I try to execute (C-C C-C) the following code block > > #+begin_src oz :results value > 39 + 3 > #+end_src > > I get the following error messages: > > executing Oz code block... > Org-babel: executing Oz expression > Create OPI socket for evaluating expressions > open-network-stream: make client process failed: Connection refused, :name, *Org-babel-OPI-socket*, > :buffer, nil, :host, localhost, :service, 6001, :nowait, nil > > I cannot figure out, what to do? > Any hints? > [this "answer" is uncontaminated by such mundane things as testing - I know nothing about Oz except what I read in contrib/lisp/ob-oz.el and I don't have Mozart installed on my machine (except for various pieces in my Music folder)] You need to start the server using the contrib/scripts/StartOzServer.oz script. -- Nick From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Brauer Subject: Re: Emacs-orgmode Digest, Vol 141, Issue 12 Date: Sun, 12 Nov 2017 13:48:20 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDsd4-00086Q-0K for emacs-orgmode@gnu.org; Sun, 12 Nov 2017 08:48:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDsd0-0002nq-Tt for emacs-orgmode@gnu.org; Sun, 12 Nov 2017 08:48:54 -0500 Received: from merkur.nordakademie.de ([194.94.98.156]:45437) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDsd0-0002mN-Ic for emacs-orgmode@gnu.org; Sun, 12 Nov 2017 08:48:50 -0500 In-Reply-To: Content-Language: de-DE Content-ID: <3985DD128140684E9D1EE762E1E62069@nordakademie.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "emacs-orgmode@gnu.org" Cc: Nick Dokos >=20 >> Hi, >>=20 >> I am looking for a working configuration for using oz code blocks in org= -mode file. I've installed >> Mozart2 on macOS 10.12.6 and use org-mode version 9.0.9. I've put >> (org-babel-do-load-languages >> 'org-babel-load-languages >> '((emacs-lisp . t) >> (oz . t))) >> into my Aquamacs initialization and the ob-z.el in a path where Emacs ca= n read it. >> If I try to execute (C-C C-C) the following code block >>=20 >> #+begin_src oz :results value >> 39 + 3 >> #+end_src >>=20 >> I get the following error messages: >>=20 >> executing Oz code block... >> Org-babel: executing Oz expression >> Create OPI socket for evaluating expressions >> open-network-stream: make client process failed: Connection refused, :na= me, *Org-babel-OPI-socket*, >> :buffer, nil, :host, localhost, :service, 6001, :nowait, nil >>=20 >> I cannot figure out, what to do? >> Any hints? >>=20 >=20 > [this "answer" is uncontaminated by such mundane things as testing - I kn= ow > nothing about Oz except what I read in contrib/lisp/ob-oz.el and I don't = have > Mozart installed on my machine (except for various pieces in my Music fol= der)] >=20 > You need to start the server using the contrib/scripts/StartOzServer.oz > script. >=20 > --=20 > Nick Thanks Nick! I downloaded StartOzServer.oz into a suited directory. The file ob-oz.el h= ad to be adapted for looking for StartOzServer.oz in that directory.=20 Now executing (C-C C-C) on a code block the process Org-babel-OPI-socket is= started but now I get the error message: Org-babel: executing Oz expression Create OPI socket for evaluating expressions open-network-stream: make client process failed: Connection refused, :name,= *Org-babel-OPI-socket*, :buffer, nil, :host, localhost, :service, 6001, :n= owait, nil If I execute (C-C C-C) once more I get a different message: executing Oz code block... Org-babel: executing Oz expression Create OPI socket for evaluating expressions org-babel-insert-result: Wrong type argument: markerp, nil If I do it a third time then all works fine, i. e. executing the code block #+begin_src oz :results value 39 + 3 #+end_src results in insertion of #+RESULTS: : 42 into the org file. It seems a bit strange for me, but it is usable. Johannes From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Brauer Subject: Re: org-babel oz? Date: Sun, 12 Nov 2017 17:43:59 +0000 Message-ID: <8957BDAD-40B4-4A27-A00A-F8BD5CAF5307@nordakademie.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDwIl-0005Bi-5s for emacs-orgmode@gnu.org; Sun, 12 Nov 2017 12:44:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDwIi-0004fI-2L for emacs-orgmode@gnu.org; Sun, 12 Nov 2017 12:44:11 -0500 Received: from merkur.nordakademie.de ([194.94.98.156]:54582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDwIh-0004f0-NX for emacs-orgmode@gnu.org; Sun, 12 Nov 2017 12:44:07 -0500 Received: from vpn.dmz.nordakademie.de ([192.168.5.10]) by merkur.nordakademie.de with ESMTP id Rni2MDkk4kHaOm7Z for ; Sun, 12 Nov 2017 18:44:00 +0100 (CET) In-Reply-To: Content-Language: de-DE Content-ID: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "emacs-orgmode@gnu.org" >=20 >> Hi, >>=20 >> I am looking for a working configuration for using oz code blocks in org= -mode file. I've installed >> Mozart2 on macOS 10.12.6 and use org-mode version 9.0.9. I've put >> (org-babel-do-load-languages >> 'org-babel-load-languages >> '((emacs-lisp . t) >> (oz . t))) >> into my Aquamacs initialization and the ob-z.el in a path where Emacs ca= n read it. >> If I try to execute (C-C C-C) the following code block >>=20 >> #+begin_src oz :results value >> 39 + 3 >> #+end_src >>=20 >> I get the following error messages: >>=20 >> executing Oz code block... >> Org-babel: executing Oz expression >> Create OPI socket for evaluating expressions >> open-network-stream: make client process failed: Connection refused, :na= me, *Org-babel-OPI-socket*, >> :buffer, nil, :host, localhost, :service, 6001, :nowait, nil >>=20 >> I cannot figure out, what to do? >> Any hints? >>=20 >=20 > [this "answer" is uncontaminated by such mundane things as testing - I kn= ow > nothing about Oz except what I read in contrib/lisp/ob-oz.el and I don't = have > Mozart installed on my machine (except for various pieces in my Music fol= der)] >=20 > You need to start the server using the contrib/scripts/StartOzServer.oz > script. >=20 > --=20 > Nick Thanks Nick! I downloaded StartOzServer.oz into a suited directory. The file ob-oz.el h= ad to be adapted for looking for StartOzServer.oz in that directory.=20 Now executing (C-C C-C) on a code block the process Org-babel-OPI-socket is= started but now I get the error message: Org-babel: executing Oz expression Create OPI socket for evaluating expressions open-network-stream: make client process failed: Connection refused, :name,= *Org-babel-OPI-socket*, :buffer, nil, :host, localhost, :service, 6001, :n= owait, nil If I execute (C-C C-C) once more I get a different message: executing Oz code block... Org-babel: executing Oz expression Create OPI socket for evaluating expressions org-babel-insert-result: Wrong type argument: markerp, nil If I do it a third time then all works fine, i. e. executing the code block #+begin_src oz :results value 39 + 3 #+end_src results in insertion of #+RESULTS: : 42 into the org file. It seems a bit strange for me, but it is usable. Johannes