[Scons-users] TryRun() problem with python3 scons-3.0.1
Dave Plater
dplater.list at gmail.com
Sun Mar 11 06:42:26 EDT 2018
On 10/03/18 22:26, Bill Deegan wrote:
> Can you try changing:
>
> outputStr =SCons.Util.to_str(output.get_contents())
>
> to
>
> outputStr =SCons.Util.to_str(output.get_text_contents())
>
> in SCons/SConf.py around line 646 in TryRun()?
> And see if that resolves the issue..
>
> -Bill
>
Hi Bill, it doesn't resolve the issue but I did go further and inserted
a couple of print statements into TryBuild where it goes wrong.
The result of (the first line is about line 584 in SConf.py):
nodes = builder(target = target, source = source)
print("\nnodes = ",nodes)
if not SCons.Util.is_List(nodes):
nodes = [nodes]
print("\n[nodes] = ",nodes)
nodesToBeBuilt.extend(nodes)
result = self.BuildNodes(nodesToBeBuilt)
print("\nresult = ",result)
This results in :
Checking for a working C-compiler TryLink
nodes = ['cache/conftest_0']
TypeError : sequence item 0: expected str instance, bytes found
Thanks
Dave
More information about the Scons-users
mailing list