From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luther Thompson Subject: bug#34236: scons does not run Date: Tue, 29 Jan 2019 13:02:56 -0500 Message-ID: <20190129130256.6b335652@gmail.com> References: <20190128134210.002ead1f@gmail.com> <87ef8wr40m.fsf@elephly.net> <20190128190322.672305da@gmail.com> <87a7jjrhdk.fsf@elephly.net> 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]:37204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goXjv-0000iZ-GJ for bug-guix@gnu.org; Tue, 29 Jan 2019 13:04:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goXju-0004Wb-LC for bug-guix@gnu.org; Tue, 29 Jan 2019 13:04:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51517) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1goXju-0004WA-Hq for bug-guix@gnu.org; Tue, 29 Jan 2019 13:04:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1goXjt-0000xE-Vo for bug-guix@gnu.org; Tue, 29 Jan 2019 13:04:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87a7jjrhdk.fsf@elephly.net> 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: Ricardo Wurmus Cc: 34236-done@debbugs.gnu.org On Tue, 29 Jan 2019 09:35:19 +0100 Ricardo Wurmus wrote: > 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. >=20 > Could you tell me how I should run scons to reproduce this issue? (I > don=E2=80=99t know anything about scons.) Sure. I'll post the commands along with the output I posted before. Note that `Environment` is a fundamental function that gets called in just about every SConstruct file. ---BEGIN--- $ mkdir emptydirectory mkdir: created directory 'emptydirectory' $ cd emptydirectory/ $ touch SConstruct $ scons 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/S= Cons/Script/Main.py", line 1374: _exec_main(parser, values) File "/gnu/store/z5r8ka0g4iib73pr2zvkhglclzh4azp0-scons-3.0.3/lib/scons/S= Cons/Script/Main.py", line 1337: _main(parser) File "/gnu/store/z5r8ka0g4iib73pr2zvkhglclzh4azp0-scons-3.0.3/lib/scons/S= Cons/Script/Main.py", line 1103: platform =3D SCons.Platform.platform_module() File "/gnu/store/z5r8ka0g4iib73pr2zvkhglclzh4azp0-scons-3.0.3/lib/scons/S= Cons/Platform/__init__.py", line 107: mod =3D imp.load_module(full_name, file, path, desc) File "/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python= 3.7/imp.py", line 235: return load_source(name, filename, file) File "/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python= 3.7/imp.py", line 172: module =3D _load(spec) File "", line 696: =20 File "", line 677: =20 File "", line 724: =20 File "", line 838: =20 $ echo 'Environment()' > SConstruct $ scons scons: Reading SConscript files ... TypeError: a bytes-like object is required, not 'str': File "/home/luther/emptydirectory/SConstruct", line 1: Environment() File "/gnu/store/z5r8ka0g4iib73pr2zvkhglclzh4azp0-scons-3.0.3/lib/scons/S= Cons/Environment.py", line 939: platform =3D SCons.Platform.Platform() File "/gnu/store/z5r8ka0g4iib73pr2zvkhglclzh4azp0-scons-3.0.3/lib/scons/S= Cons/Platform/__init__.py", line 263: module =3D platform_module(name) File "/gnu/store/z5r8ka0g4iib73pr2zvkhglclzh4azp0-scons-3.0.3/lib/scons/S= Cons/Platform/__init__.py", line 107: mod =3D imp.load_module(full_name, file, path, desc) File "/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python= 3.7/imp.py", line 235: return load_source(name, filename, file) File "/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python= 3.7/imp.py", line 172: module =3D _load(spec) File "", line 696: =20 File "", line 677: =20 File "", line 724: =20 File "", line 838: =20 ---END--- Luther