From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: ob-python noweb and :var reference error Date: Fri, 29 Dec 2017 12:39:17 +0100 Message-ID: <87r2rdix0a.fsf@nicolasgoaziou.fr> References: <6b421b98-6a4c-cd1a-07ec-efd2fd4b559d@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUt0W-0000Ig-7f for emacs-orgmode@gnu.org; Fri, 29 Dec 2017 06:39:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUt0T-0008O5-3p for emacs-orgmode@gnu.org; Fri, 29 Dec 2017 06:39:24 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:39929) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eUt0S-0008M7-Ut for emacs-orgmode@gnu.org; Fri, 29 Dec 2017 06:39:21 -0500 In-Reply-To: <6b421b98-6a4c-cd1a-07ec-efd2fd4b559d@gmail.com> (stardiviner's message of "Fri, 29 Dec 2017 19:36:08 +0800") 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: stardiviner Cc: emacs-orgmode Hello, stardiviner writes: > I installed python packages through `pip`: > > #+begin_src shell > pip install deluge-client > #+end_src > > > If you want to test those src blocks, you also need to make sure Deluge > installed and daemon started. > > And use `deluge-client` like this: > > #+NAME: deluge-daemon-username > #+begin_src shell > > cat ~/.config/deluge/auth | cut -d ":" -f 1 #+end_src > > #+RESULTS: deluge-daemon-username > : localclient > > #+NAME: deluge-daemon-password > #+begin_src shell > > cat ~/.config/deluge/auth | cut -d ":" -f 2 #+end_src > > #+RESULTS: deluge-daemon-password > : 9b83ceded9ac08cc5c7403b093115874a6086958 > > #+begin_src python :noweb yes :results list > from deluge_client import DelugeRPCClient > > client = DelugeRPCClient('127.0.0.1', 58846, username, password) Shouldn't this be: client = DelugeRPCClient('127.0.0.1', 58846, <>, <>) Untested. Regards, -- Nicolas Goaziou