This seems fixed not string problem.

But I got new error:

```

   File "<stdin>", 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 <numbch...@gmail.com> writes:

If I use that noweb reference, then I got this error:

   File "<stdin>", 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 <<deluge-daemon-username>> output is not a string
in Python src block.
My bad. Try

   <<deluge-daemon-username()>>


Reply via email to