[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] ob-python noweb and :var reference error

From: stardiviner
Subject: Re: [O] ob-python noweb and :var reference error
Date: Fri, 29 Dec 2017 21:08:54 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

This seems fixed not string problem.

But I got new error:


   File "<stdin>", line 9
    client = DelugeRPCClient('', 58846, , 9b83ceded9ac08cc5c7403b093115874a6086958
SyntaxError: invalid syntax


I execute src block:

#+NAME: deluge-daemon-username
#+begin_src shell
cat ~/.config/deluge/auth | cut -d ":" -f 1

#+RESULTS: deluge-daemon-username
: localclient


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 <address@hidden> writes:

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

   File "<stdin>", line 8
     client = DelugeRPCClient('', 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]