From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#34236: scons does not run Date: Tue, 29 Jan 2019 09:35:19 +0100 Message-ID: <87a7jjrhdk.fsf@elephly.net> References: <20190128134210.002ead1f@gmail.com> <87ef8wr40m.fsf@elephly.net> <20190128190322.672305da@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:41770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goW9U-00045o-CM for bug-guix@gnu.org; Tue, 29 Jan 2019 11:22:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goW9K-0002o0-TC for bug-guix@gnu.org; Tue, 29 Jan 2019 11:22:15 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51467) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1goW9E-0002lE-Pl for bug-guix@gnu.org; Tue, 29 Jan 2019 11:22:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1goW9C-0004jK-95 for bug-guix@gnu.org; Tue, 29 Jan 2019 11:22:04 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <20190128190322.672305da@gmail.com> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Luther Thompson Cc: 34236-done@debbugs.gnu.org Hi Luther, > On Mon, 28 Jan 2019 20:11:37 +0100 > Ricardo Wurmus wrote: > >> Luther Thompson writes: >>=20 >> > scons refuses to run on my system. When I run it with or without a >> > SConscript file, I get this error message:[=E2=80=A6]=20=20 >>=20 >> This should now be fixed with commit ad34338d1. > > I'm still getting errors similar to before. When I use an empty > SConscript, I get this output: > > ---BEGIN--- > scons: Reading SConscript files ... > scons: done reading SConscript files. > TypeError: a bytes-like object is required, not 'str': > File > "/gnu/store/z5r8ka0g4iib73pr2zvkhglclzh4azp0-scons-3.0.3/lib/scons/SCons/= Script/Main.py", > line 1374: _exec_main(parser, values) File > "/gnu/store/z5r8ka0g4iib73pr2zvkhglclzh4azp0-scons-3.0.3/lib/scons/SCons/= Script/Main.py", > line 1337: _main(parser) File > "/gnu/store/z5r8ka0g4iib73pr2zvkhglclzh4azp0-scons-3.0.3/lib/scons/SCons/= Script/Main.py", > line 1103: platform =3D SCons.Platform.platform_module() File > "/gnu/store/z5r8ka0g4iib73pr2zvkhglclzh4azp0-scons-3.0.3/lib/scons/SCons/= Platform/__init__.py", > line 107: mod =3D imp.load_module(full_name, file, path, desc) File > "/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python3.7/i= mp.py", > line 235: return load_source(name, filename, file) File > "/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python3.7/i= mp.py", > line 172: module =3D _load(spec) File "", > line 696:=20 > File "", line 677: >=20=20=20=20=20 > File "", line 724: >=20=20=20=20=20 > File "", line 838: > ---END--- > > If I add only the statement `Environment()` to the SConscript, I get > this output: > > ---BEGIN--- > scons: Reading SConscript files ... > TypeError: a bytes-like object is required, not 'str': > File "/home/luther/test/SConstruct", line 1: > Environment() > File > "/gnu/store/z5r8ka0g4iib73pr2zvkhglclzh4azp0-scons-3.0.3/lib/scons/SCons/= Environment.py", > line 939: platform =3D SCons.Platform.Platform() File > "/gnu/store/z5r8ka0g4iib73pr2zvkhglclzh4azp0-scons-3.0.3/lib/scons/SCons/= Platform/__init__.py", > line 263: module =3D platform_module(name) File > "/gnu/store/z5r8ka0g4iib73pr2zvkhglclzh4azp0-scons-3.0.3/lib/scons/SCons/= Platform/__init__.py", > line 107: mod =3D imp.load_module(full_name, file, path, desc) File > "/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python3.7/i= mp.py", > line 235: return load_source(name, filename, file) File > "/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python3.7/i= mp.py", > line 172: module =3D _load(spec) File "", > line 696:=20 > File "", line 677: >=20=20=20=20=20 > File "", line 724: >=20=20=20=20=20 > File "", line 838: > ---END--- > > When I run scons without a SConscript, I get the normal "No SConstruct > file found" message. > > I've already tried rebooting. I guess we=E2=80=99ll also need to patch =E2=80=9Clib/scons/SCons/Platform/= __init__.py=E2=80=9D in the same manner then. Could you tell me how I should run scons to reproduce this issue? (I don=E2=80=99t know anything about scons.) --=20 Ricardo