Discussion:
[Scons-users] Trying to fix a bug
Jason Kenny
2018-07-22 18:33:15 UTC
Permalink
I am trying to run the tests on ubuntu 16.04 (with python2.7)

I am getting this error.
python runtest.py --verbose=3 src/engine/SCons/BuilderTests.py
1/1 (100.00%) /usr/bin/python -tt src/engine/SCons/BuilderTests.py
Traceback (most recent call last):
File "src/engine/SCons/BuilderTests.py", line 72, in <module>
scons_env = SCons.Environment.Environment()
File "/mnt/c/Users/Jason/code/scons/src/engine/SCons/Environment.py", line 982, in __init__
apply_tools(self, tools, toolpath)
File "/mnt/c/Users/Jason/code/scons/src/engine/SCons/Environment.py", line 107, in apply_tools
env.Tool(tool)
File "/mnt/c/Users/Jason/code/scons/src/engine/SCons/Environment.py", line 1789, in Tool
tool(self)
File "/mnt/c/Users/Jason/code/scons/src/engine/SCons/Tool/__init__.py", line 298, in __call__
self.generate(env, *args, **kw)
File "/mnt/c/Users/Jason/code/scons/src/engine/SCons/Tool/default.py", line 40, in generate
for t in SCons.Tool.tool_list(env['PLATFORM'], env):
File "/mnt/c/Users/Jason/code/scons/src/engine/SCons/Tool/__init__.py", line 1242, in tool_list
], env)
File "/mnt/c/Users/Jason/code/scons/src/engine/SCons/Tool/__init__.py", line 1112, in FindAllTools
return list(filter (ToolExists, tools))
File "/mnt/c/Users/Jason/code/scons/src/engine/SCons/Tool/__init__.py", line 1111, in ToolExists
return Tool(tool).exists(env)
File "/mnt/c/Users/Jason/code/scons/src/engine/SCons/Tool/dvipdf.py", line 118, in exists
SCons.Tool.tex.generate_darwin(env)
File "/mnt/c/Users/Jason/code/scons/src/engine/SCons/Tool/tex.py", line 858, in generate_darwin
if (platform.system() == 'Darwin'):
AttributeError: 'module' object has no attribute 'system'



It does not make any sense to me ... platform.system() does exist (it is part of the library)
Has anyone seen this before? Is there something I need to have setup/install for this to not happen? Is the testing system replacing the platform module?

Jason
Jason Kenny
2018-07-22 18:48:30 UTC
Permalink
I seemed to have found part of the cause.. I am test scons on a mount point. It seems that this breaks some of the tests for reason I don't understand. Moving the code to not run across the mnt point seems to fix the problem

Jason

From: Jason Kenny
Sent: Sunday, July 22, 2018 1:33 PM
To: SCons users mailing list <scons-***@scons.org>
Subject: Trying to fix a bug


I am trying to run the tests on ubuntu 16.04 (with python2.7)

I am getting this error.
python runtest.py --verbose=3 src/engine/SCons/BuilderTests.py
1/1 (100.00%) /usr/bin/python -tt src/engine/SCons/BuilderTests.py
Traceback (most recent call last):
File "src/engine/SCons/BuilderTests.py", line 72, in <module>
scons_env = SCons.Environment.Environment()
File "/mnt/c/Users/Jason/code/scons/src/engine/SCons/Environment.py", line 982, in __init__
apply_tools(self, tools, toolpath)
File "/mnt/c/Users/Jason/code/scons/src/engine/SCons/Environment.py", line 107, in apply_tools
env.Tool(tool)
File "/mnt/c/Users/Jason/code/scons/src/engine/SCons/Environment.py", line 1789, in Tool
tool(self)
File "/mnt/c/Users/Jason/code/scons/src/engine/SCons/Tool/__init__.py", line 298, in __call__
self.generate(env, *args, **kw)
File "/mnt/c/Users/Jason/code/scons/src/engine/SCons/Tool/default.py", line 40, in generate
for t in SCons.Tool.tool_list(env['PLATFORM'], env):
File "/mnt/c/Users/Jason/code/scons/src/engine/SCons/Tool/__init__.py", line 1242, in tool_list
], env)
File "/mnt/c/Users/Jason/code/scons/src/engine/SCons/Tool/__init__.py", line 1112, in FindAllTools
return list(filter (ToolExists, tools))
File "/mnt/c/Users/Jason/code/scons/src/engine/SCons/Tool/__init__.py", line 1111, in ToolExists
return Tool(tool).exists(env)
File "/mnt/c/Users/Jason/code/scons/src/engine/SCons/Tool/dvipdf.py", line 118, in exists
SCons.Tool.tex.generate_darwin(env)
File "/mnt/c/Users/Jason/code/scons/src/engine/SCons/Tool/tex.py", line 858, in generate_darwin
if (platform.system() == 'Darwin'):
AttributeError: 'module' object has no attribute 'system'



It does not make any sense to me ... platform.system() does exist (it is part of the library)
Has anyone seen this before? Is there something I need to have setup/install for this to not happen? Is the testing system replacing the platform module?

Jason

Loading...