✘ 'AnsiTerm' object has no attribute 'buffer'

Gary E. Miller gem at rellim.com
Tue Jan 29 23:26:18 UTC 2019


Yo All!

I figured out why some hosts have the below error, but not others.

If Python 2.7 is the system Python, it works.  If Python 3.5 or 3.6 is
the system Python I get the below failure.

So the polyglot code is not polyglot enough.

> I'm getting an odd build error on one of my hosts. Ideas?
> 
> [275/275] Processing build/main/tests/test_ntpd
> Waf: Leaving directory `/usr/local/src/NTP/ntpsec/build/main'
> Traceback (most recent call last):
>   File
> "/usr/local/src/NTP/ntpsec/.waf3-1.9.15-7481b2b5d90177d4bb747dbff06bef90/waflib/Scripting.py",
> line 122, in waf_entry_point run_commands() File
> "/usr/local/src/NTP/ntpsec/.waf3-1.9.15-7481b2b5d90177d4bb747dbff06bef90/waflib/Scripting.py",
> line 183, in run_commands ctx=run_command(cmd_name) File
> "/usr/local/src/NTP/ntpsec/.waf3-1.9.15-7481b2b5d90177d4bb747dbff06bef90/waflib/Scripting.py",
> line 174, in run_command ctx.execute() File
> "/usr/local/src/NTP/ntpsec/.waf3-1.9.15-7481b2b5d90177d4bb747dbff06bef90/waflib/Scripting.py",
> line 377, in execute return execute_method(self) File
> "/usr/local/src/NTP/ntpsec/.waf3-1.9.15-7481b2b5d90177d4bb747dbff06bef90/waflib/Context.py",
> line 88, in execute
> self.recurse([os.path.dirname(g_module.root_path)]) File
> "/usr/local/src/NTP/ntpsec/.waf3-1.9.15-7481b2b5d90177d4bb747dbff06bef90/waflib/Context.py",
> line 129, in recurse user_function(self) File
> "/usr/local/src/NTP/ntpsec/wscript", line 931, in init_handler
> obj.execute() File
> "/usr/local/src/NTP/ntpsec/.waf3-1.9.15-7481b2b5d90177d4bb747dbff06bef90/waflib/Scripting.py",
> line 377, in execute return execute_method(self) File
> "/usr/local/src/NTP/ntpsec/.waf3-1.9.15-7481b2b5d90177d4bb747dbff06bef90/waflib/Build.py",
> line 104, in execute self.execute_build() File
> "/usr/local/src/NTP/ntpsec/.waf3-1.9.15-7481b2b5d90177d4bb747dbff06bef90/waflib/Build.py",
> line 123, in execute_build self.post_build() File
> "/usr/local/src/NTP/ntpsec/.waf3-1.9.15-7481b2b5d90177d4bb747dbff06bef90/waflib/Build.py",
> line 280, in post_build m(self) File
> "/usr/local/src/NTP/ntpsec/wscript", line 888, in bin_test from
> wafhelpers.bin_test import cmd_bin_test File
> "/usr/local/src/NTP/ntpsec/wafhelpers/bin_test.py", line 10, in
> <module> import ntp.poly File
> "/usr/local/src/NTP/ntpsec/build/main/tests/pylib/ntp/poly.py", line
> 108, in <module> sys.stdout = make_std_wrapper(sys.stdout) File
> "/usr/local/src/NTP/ntpsec/build/main/tests/pylib/ntp/poly.py", line
> 102, in make_std_wrapper return io.TextIOWrapper(stream.buffer,
> encoding="utf-8", AttributeError: 'AnsiTerm' object has no attribute
> 'buffer'
> 
> 
> 
> RGDS
> GARY
> ---------------------------------------------------------------------------
> Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
> 	gem at rellim.com  Tel:+1 541 382 8588
> 
> 	    Veritas liberabit vos. -- Quid est veritas?
>     "If you can’t measure it, you can’t improve it." - Lord Kelvin




RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can’t measure it, you can’t improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20190129/c073450b/attachment.bin>


More information about the devel mailing list