These are chat archives for Exa-Networks/exabgp

24th
Oct 2017
Rens Houben
@kaosdrachen
Oct 24 2017 10:18

So I'm working my way through an exabgp tutorial and am trying to set up a HTTP API using python, but trying to load the script gives a weirdass error message:

7:50 | ERROR | 6728 | configuration | syntax error in section process
7:50 | ERROR | 6728 | configuration | line 20: run /usr/local/lib/exabgp-scripts/httpapi.p y

(The space is definitely not there in the config file, I checked several times.
The original version of the line was run /usr/bin/python3 /usr/local/lib/exabgp-scripts/httpapi.py and had the same error.
Rens Houben
@kaosdrachen
Oct 24 2017 11:31
... Jesus fucking christ on a pogo stick. Found the error: the config file wanted a semicolon to end the line. You may want to modify the configuration parser to be a little more specific.
Thomas Mangin
@thomas-mangin
Oct 24 2017 15:53
missing ; at the end of the line ?
chmod 755 /usr/local/lib/exabgp-scripts/httpapi.py
and making sure the first line of the script is
#!/usr/bin/env python3
Thomas Mangin
@thomas-mangin
Oct 24 2017 16:27
oh - yes you said it :-) I assume this is the 3.4 parser .. 4.0 should be clearer . should - should.