On Fri, 18 May 2018, John Serink wrote:

I shifted laptops a few months back after a Video card failure and mirrored 
everything over.
I've just today set aside some time to get my IPsec stuff up and running and ma 
having a few problems.

Traceback (most recent call last):
  File "/usr/libexec/ipsec/verify", line 426, in <module>
    main()
  File "/usr/libexec/ipsec/verify", line 417, in main
    configsetupcheck()
  File "/usr/libexec/ipsec/verify", line 398, in configsetupcheck
    err = err.replace("Warning"," Warning")
TypeError: a bytes-like object is required, not 'str'

So, I get to the OBSOLETE keywords warning and then the verify script burps.

Any tips on getting verify to complete?

That's probably related to the python version? I think in python 3.5 the
default popen() now returns a binary stream instead of a string. You can
try the following patch:

(either in the source tree or by editing the one in 
/usr/{local/}/libexec/ipsec/verify

diff --git a/programs/verify/verify.in b/programs/verify/verify.in
index cff1d79..10bb08b 100755
--- a/programs/verify/verify.in
+++ b/programs/verify/verify.in
@@ -395,7 +395,7 @@ def configsetupcheck():
                print_result("OK","OK")
        else:
                print_result("WARN","OBSOLETE KEYWORD")
-               err = err.replace("Warning"," Warning")
+               err = err.replace(b"Warning", b" Warning")
                print(err[:-1])

 def main():


Cheers,
john


_______________________________________________
Swan mailing list
[email protected]
https://lists.libreswan.org/mailman/listinfo/swan

Reply via email to