From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: Re: ob-python noweb and :var reference error Date: Fri, 29 Dec 2017 21:08:54 +0800 Message-ID: <1b253074-ec38-6db3-973f-b493701487fd@gmail.com> References: <6b421b98-6a4c-cd1a-07ec-efd2fd4b559d@gmail.com> <87r2rdix0a.fsf@nicolasgoaziou.fr> <87mv21hh0s.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUuPH-00084X-Kv for emacs-orgmode@gnu.org; Fri, 29 Dec 2017 08:09:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUuPD-0003kZ-IQ for emacs-orgmode@gnu.org; Fri, 29 Dec 2017 08:09:03 -0500 Received: from mail-pl0-x234.google.com ([2607:f8b0:400e:c01::234]:44363) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eUuPD-0003jw-Ay for emacs-orgmode@gnu.org; Fri, 29 Dec 2017 08:08:59 -0500 Received: by mail-pl0-x234.google.com with SMTP id n13so22978548plp.11 for ; Fri, 29 Dec 2017 05:08:59 -0800 (PST) In-Reply-To: <87mv21hh0s.fsf@nicolasgoaziou.fr> Content-Language: en-US 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: Nicolas Goaziou Cc: emacs-orgmode This seems fixed not string problem. But I got new error: ```    File "", line 9     client = DelugeRPCClient('127.0.0.1', 58846, , 9b83ceded9ac08cc5c7403b093115874a6086958          ^ SyntaxError: invalid syntax ``` I execute src block: #+NAME: deluge-daemon-username #+begin_src shell cat ~/.config/deluge/auth | cut -d ":" -f 1 #+end_src #+RESULTS: deluge-daemon-username : localclient correctly. But in the python src block, the result is not inserted. I noticed the echo-area message, the `deluge-daemon-username` src block execute is correct. I will try to edebug on this. On 12/29/2017 08:09 PM, Nicolas Goaziou wrote: > stardiviner writes: > >> If I use that noweb reference, then I got this error: >> >>>   File "", line 8 >>>     client = DelugeRPCClient('127.0.0.1', 58846, cat >> ~/.config/deluge/auth | cut -d ":" -f 1, cat ~/.config/deluge/auth | >> cut -d ":" -f 2) >>                                                      ^ >> SyntaxError: invalid syntax >> >> This is because the <> output is not a string >> in Python src block. > My bad. Try > > <>