[Scons-users] Trying to fix a bug

Jason Kenny dragon512 at live.com
Sun Jul 22 14:33:15 EDT 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20180722/04d62aac/attachment-0001.html>


More information about the Scons-users mailing list