Hello, stardiviner <numbch...@gmail.com> 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