Here's what's interesting:
If I replace the lines:
ipaddr=update.config().get(section,'IpAddress')
port=int(update.config().get(section,'TcpPort'))
with:
ipaddr='10.6.0.67'
port=7005
...I still get the error, but if I instead replace:
send_sock.connect((ipaddr,port))
with:
send_sock.connect(('10.6.0.67',7005))
...I don't get the error, and the script runs perfectly.
Go figure.
Rob
--
Не думай что всё пропели,
Что бури все отгремели;
Готовься к великой цели,
А слава тебя найдёт.
On Tue, 26 Apr 2022, Eric Adler wrote:
I think it is case sensitive. The nautel script is essentially just the
Inovonics script modified. Should get the values in the same way.
Eric
On Tue, Apr 26, 2022, 9:10 AM Rob Landry <[email protected]> wrote:
The solution: hard-code the IP address and port number into the
Python
script. Works like a charm.
I still have no idea why it's not reading these things from the
config
file. Comparing this script with the others, they all get these
thinsg
though the same mechanism. Sauce for the goose ought to be sauce
for the
gander, but for some reason it's not.
I don't know the first thing about Python (is it case-sensitive?
are
variables defined in a subroutine global or local? etc.), alas.
Rob
--
Не думай что всё пропели,
Что бури все отгремели;
Готовься к великой цели,
А слава тебя найдёт.
On Mon, 25 Apr 2022, Rob Landry wrote:
>
> Not Rivendell 4; Rivendell 3.6.5.
>
> I wasn't aware that Rivendell 4 was anything but beta, and
this is a
> mission-critical machine, so I want something tried and true.
>
> It sounds like I need to figure out how the script reads the
configuration
> file. There's nothing in the Nautel script that offers much of
a clue, alas.
>
>
> Rob
>
> --
> Не думай что всё пропели,
> Что бури все отгремели;
> Готовься к великой цели,
> А слава тебя найдёт.
>
>
> On Mon, 25 Apr 2022, David Klann wrote:
>
>> Hey Rob,
>>
>> On 4/24/22 20:53, you wrote:
>>> Just to be sure, I deleted all the commented lines from the
configuration,
>>> and I'm still getting the error message. Here is my
configuration:
>>>
>>
>> Your configuration looks pretty much exactly like the one I'm
using.
>> What version of Rivendell 4 are you using? pypad_nautel.py
changed not
>> long before Fred released version 4.0.0beta3. I've attached
the copy of
>> the current pypad_nautel.py for you to compare.
>>
>> ~David
>>
>>> [Rds1]
>>> IpAddress=10.1.10.21
>>> TcpPort=7005
>>> Delay=30
>>> ProgramService=WCVR
>>> DynamicPS=%t - %a
>>> RadioText=%t - %a
>>> MasterLog=Yes
>>> Aux1Log=No
>>> Aux2Log=No
>>> VLog101=No
>>> VLog102=No
>>> VLog103=No
>>> VLog104=No
>>> VLog105=No
>>> VLog106=No
>>> VLog107=No
>>> VLog108=No
>>> VLog109=No
>>> VLog110=No
>>> VLog111=No
>>> VLog112=No
>>> VLog113=No
>>> VLog114=No
>>> VLog115=No
>>> VLog116=No
>>> VLog117=No
>>> VLog118=No
>>> VLog119=No
>>> VLog120=No
>>>
>>> [NowGroups]
>>> Group1=MUSIC
>>>
>>> [NextGroups]_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev