GNU bug report logs -
#34236
scons does not run
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 34236 in the body.
You can then email your comments to 34236 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#34236
; Package
guix
.
(Mon, 28 Jan 2019 18:43:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Luther Thompson <lutheroto <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Mon, 28 Jan 2019 18:43:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
scons refuses to run on my system. When I run it with or without a
SConscript file, I get this error message:
---BEGIN---
Traceback (most recent call last):
File "/gnu/store/r7nxidk4r12wa3y7gipqx58gc3dx3vp2-scons-3.0.1/bin/.scons-real", line 192, in <module>
import SCons.Script
File "/gnu/store/r7nxidk4r12wa3y7gipqx58gc3dx3vp2-scons-3.0.1/lib/scons-3.0.1/SCons/__init__.py", line 43, in <module>
import SCons.compat
File "/gnu/store/r7nxidk4r12wa3y7gipqx58gc3dx3vp2-scons-3.0.1/lib/scons-3.0.1/SCons/compat/__init__.py", line 105, in <module>
rename_module('profile', 'cProfile')
File "/gnu/store/r7nxidk4r12wa3y7gipqx58gc3dx3vp2-scons-3.0.1/lib/scons-3.0.1/SCons/compat/__init__.py", line 84, in rename_module
sys.modules[new] = imp.load_module(old, *imp.find_module(old))
File "/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python3.7/imp.py", line 235, in load_module
return load_source(name, filename, file)
File "/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python3.7/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 696, in _load
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 724, in exec_module
File "<frozen importlib._bootstrap_external>", line 838, in get_code
TypeError: a bytes-like object is required, not 'str'
---END---
I have a hunch that this is caused by a missing environment variable,
but I don't know where to go from there.
Luther
Reply sent
to
Ricardo Wurmus <rekado <at> elephly.net>
:
You have taken responsibility.
(Mon, 28 Jan 2019 19:12:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Luther Thompson <lutheroto <at> gmail.com>
:
bug acknowledged by developer.
(Mon, 28 Jan 2019 19:12:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 34236-done <at> debbugs.gnu.org (full text, mbox):
Luther Thompson <lutheroto <at> gmail.com> writes:
> scons refuses to run on my system. When I run it with or without a
> SConscript file, I get this error message:[…]
This should now be fixed with commit ad34338d1.
--
Ricardo
Information forwarded
to
bug-guix <at> gnu.org
:
bug#34236
; Package
guix
.
(Tue, 29 Jan 2019 00:04:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 34236-done <at> debbugs.gnu.org (full text, mbox):
On Mon, 28 Jan 2019 20:11:37 +0100
Ricardo Wurmus <rekado <at> elephly.net> wrote:
> Luther Thompson <lutheroto <at> gmail.com> writes:
>
> > scons refuses to run on my system. When I run it with or without a
> > SConscript file, I get this error message:[…]
>
> 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 = SCons.Platform.platform_module() File
"/gnu/store/z5r8ka0g4iib73pr2zvkhglclzh4azp0-scons-3.0.3/lib/scons/SCons/Platform/__init__.py",
line 107: mod = imp.load_module(full_name, file, path, desc) File
"/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python3.7/imp.py",
line 235: return load_source(name, filename, file) File
"/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python3.7/imp.py",
line 172: module = _load(spec) File "<frozen importlib._bootstrap>",
line 696:
File "<frozen importlib._bootstrap>", line 677:
File "<frozen importlib._bootstrap_external>", line 724:
File "<frozen importlib._bootstrap_external>", 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 = SCons.Platform.Platform() File
"/gnu/store/z5r8ka0g4iib73pr2zvkhglclzh4azp0-scons-3.0.3/lib/scons/SCons/Platform/__init__.py",
line 263: module = platform_module(name) File
"/gnu/store/z5r8ka0g4iib73pr2zvkhglclzh4azp0-scons-3.0.3/lib/scons/SCons/Platform/__init__.py",
line 107: mod = imp.load_module(full_name, file, path, desc) File
"/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python3.7/imp.py",
line 235: return load_source(name, filename, file) File
"/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python3.7/imp.py",
line 172: module = _load(spec) File "<frozen importlib._bootstrap>",
line 696:
File "<frozen importlib._bootstrap>", line 677:
File "<frozen importlib._bootstrap_external>", line 724:
File "<frozen importlib._bootstrap_external>", line 838:
---END---
When I run scons without a SConscript, I get the normal "No SConstruct
file found" message.
I've already tried rebooting.
Luther
Information forwarded
to
bug-guix <at> gnu.org
:
bug#34236
; Package
guix
.
(Tue, 29 Jan 2019 02:54:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 34236 <at> debbugs.gnu.org (full text, mbox):
Hi Luther,
> scons refuses to run on my system. When I run it with or without a
> SConscript file, I get this error message:
>
> ---BEGIN---
> Traceback (most recent call last):
> File "/gnu/store/r7nxidk4r12wa3y7gipqx58gc3dx3vp2-scons-3.0.1/bin/.scons-real", line 192, in <module>
> import SCons.Script
> File "/gnu/store/r7nxidk4r12wa3y7gipqx58gc3dx3vp2-scons-3.0.1/lib/scons-3.0.1/SCons/__init__.py", line 43, in <module>
> import SCons.compat
> File "/gnu/store/r7nxidk4r12wa3y7gipqx58gc3dx3vp2-scons-3.0.1/lib/scons-3.0.1/SCons/compat/__init__.py", line 105, in <module>
> rename_module('profile', 'cProfile')
> File "/gnu/store/r7nxidk4r12wa3y7gipqx58gc3dx3vp2-scons-3.0.1/lib/scons-3.0.1/SCons/compat/__init__.py", line 84, in rename_module
> sys.modules[new] = imp.load_module(old, *imp.find_module(old))
> File "/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python3.7/imp.py", line 235, in load_module
> return load_source(name, filename, file)
> File "/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python3.7/imp.py", line 172, in load_source
> module = _load(spec)
> File "<frozen importlib._bootstrap>", line 696, in _load
> File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 724, in exec_module
> File "<frozen importlib._bootstrap_external>", line 838, in get_code
> TypeError: a bytes-like object is required, not 'str'
> ---END---
>
> I have a hunch that this is caused by a missing environment variable,
> but I don't know where to go from there.
I’m currently working on upgrading Scons. I patched Scons to avoid this
error.
--
Ricardo
Information forwarded
to
bug-guix <at> gnu.org
:
bug#34236
; Package
guix
.
(Tue, 29 Jan 2019 16:22:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 34236-done <at> debbugs.gnu.org (full text, mbox):
Hi Luther,
> On Mon, 28 Jan 2019 20:11:37 +0100
> Ricardo Wurmus <rekado <at> elephly.net> wrote:
>
>> Luther Thompson <lutheroto <at> gmail.com> writes:
>>
>> > scons refuses to run on my system. When I run it with or without a
>> > SConscript file, I get this error message:[…]
>>
>> 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 = SCons.Platform.platform_module() File
> "/gnu/store/z5r8ka0g4iib73pr2zvkhglclzh4azp0-scons-3.0.3/lib/scons/SCons/Platform/__init__.py",
> line 107: mod = imp.load_module(full_name, file, path, desc) File
> "/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python3.7/imp.py",
> line 235: return load_source(name, filename, file) File
> "/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python3.7/imp.py",
> line 172: module = _load(spec) File "<frozen importlib._bootstrap>",
> line 696:
> File "<frozen importlib._bootstrap>", line 677:
>
> File "<frozen importlib._bootstrap_external>", line 724:
>
> File "<frozen importlib._bootstrap_external>", 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 = SCons.Platform.Platform() File
> "/gnu/store/z5r8ka0g4iib73pr2zvkhglclzh4azp0-scons-3.0.3/lib/scons/SCons/Platform/__init__.py",
> line 263: module = platform_module(name) File
> "/gnu/store/z5r8ka0g4iib73pr2zvkhglclzh4azp0-scons-3.0.3/lib/scons/SCons/Platform/__init__.py",
> line 107: mod = imp.load_module(full_name, file, path, desc) File
> "/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python3.7/imp.py",
> line 235: return load_source(name, filename, file) File
> "/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python3.7/imp.py",
> line 172: module = _load(spec) File "<frozen importlib._bootstrap>",
> line 696:
> File "<frozen importlib._bootstrap>", line 677:
>
> File "<frozen importlib._bootstrap_external>", line 724:
>
> File "<frozen importlib._bootstrap_external>", 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’ll also need to patch “lib/scons/SCons/Platform/__init__.py”
in the same manner then.
Could you tell me how I should run scons to reproduce this issue? (I
don’t know anything about scons.)
--
Ricardo
Information forwarded
to
bug-guix <at> gnu.org
:
bug#34236
; Package
guix
.
(Tue, 29 Jan 2019 18:04:01 GMT)
Full text and
rfc822 format available.
Message #22 received at 34236-done <at> debbugs.gnu.org (full text, mbox):
On Tue, 29 Jan 2019 09:35:19 +0100
Ricardo Wurmus <rekado <at> elephly.net> wrote:
> I guess we’ll also need to patch
> “lib/scons/SCons/Platform/__init__.py” in the same manner then.
>
> Could you tell me how I should run scons to reproduce this issue? (I
> don’t 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/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 = SCons.Platform.platform_module()
File "/gnu/store/z5r8ka0g4iib73pr2zvkhglclzh4azp0-scons-3.0.3/lib/scons/SCons/Platform/__init__.py", line 107:
mod = imp.load_module(full_name, file, path, desc)
File "/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python3.7/imp.py", line 235:
return load_source(name, filename, file)
File "/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python3.7/imp.py", line 172:
module = _load(spec)
File "<frozen importlib._bootstrap>", line 696:
File "<frozen importlib._bootstrap>", line 677:
File "<frozen importlib._bootstrap_external>", line 724:
File "<frozen importlib._bootstrap_external>", line 838:
$ 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/SCons/Environment.py", line 939:
platform = SCons.Platform.Platform()
File "/gnu/store/z5r8ka0g4iib73pr2zvkhglclzh4azp0-scons-3.0.3/lib/scons/SCons/Platform/__init__.py", line 263:
module = platform_module(name)
File "/gnu/store/z5r8ka0g4iib73pr2zvkhglclzh4azp0-scons-3.0.3/lib/scons/SCons/Platform/__init__.py", line 107:
mod = imp.load_module(full_name, file, path, desc)
File "/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python3.7/imp.py", line 235:
return load_source(name, filename, file)
File "/gnu/store/ibxxisi81v1v3y5xc3axl4x4rx6jpzw8-python-3.7.0/lib/python3.7/imp.py", line 172:
module = _load(spec)
File "<frozen importlib._bootstrap>", line 696:
File "<frozen importlib._bootstrap>", line 677:
File "<frozen importlib._bootstrap_external>", line 724:
File "<frozen importlib._bootstrap_external>", line 838:
---END---
Luther
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 27 Feb 2019 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 60 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.