[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] ob-python noweb and :var reference error
From: |
Nicolas Goaziou |
Subject: |
Re: [O] ob-python noweb and :var reference error |
Date: |
Fri, 29 Dec 2017 12:39:17 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Hello,
stardiviner <address@hidden> 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, <<deluge-daemon-username>>,
<<deluge-daemon-password>>)
Untested.
Regards,
--
Nicolas Goaziou