[Scons-users] scons local 2.3.4 windows problem
Mark Holloway
hollowaymr at hotmail.com
Fri Oct 17 11:51:45 EDT 2014
I've downloaded the scons-local package and when I attempt to run it on windows with python 2.7.8, I get the following failure:
H:\>python scons\scons.py
Traceback (most recent call last):
File "scons\scons.py", line 199, in <module>
SCons.Script.main()
File "H:\scons\scons-local-2.3.4\SCons\Script\Main.py", line 1359, in main
parts.append(version_string("engine", SCons))
File "H:\scons\scons-local-2.3.4\SCons\Script\Main.py", line 810, in version_string
version = module.__version__
AttributeError: 'module' object has no attribute '__version__'
The snippet below shows where it's failing:
1352 try:
1353 import __main__
1354 parts.append(version_string("script", __main__))
1355 except (ImportError, AttributeError):
1356 # On Windows there is no scons.py, so there is no
1357 # __main__.__version__, hence there is no script version.
1358 pass
1359 parts.append(version_string("engine", SCons))
I changed version_string to dump out the details, and sure enough Scons doesn't appear to have a __version__ field.
Main is fine: ['SCons', '__build__', '__buildsys__', '__builtins__', '__date__', '__developer__', '__doc__', '__file__', '__name__', '__package__', '__revision__', '__version__', 'libs', 'local', 'local_version', 'os', 'prefs', 'scons_version', 'script_dir', 'script_path', 'source_path', 'sys', 'x']
SCons gets:
['Action', 'Builder', 'CScanner', 'CSuffixes', 'CacheDir', 'Conftest', 'CreateJarBuilder','CreateJavaClassDirBuilder', 'CreateJavaClassFileBuilder', 'CreateJavaFileBuilder', 'CreateJavaHBuilder', 'DScanner', 'DSuffixes', 'Debug', 'DefaultToolpath', 'Defaults', 'Environment', 'Errors', 'Executor', 'FindAllTools', 'FindTool', 'IDLSuffixes', 'Initializers', 'Job', 'LaTeXScanner', 'LaTeXSuffixes', 'Memoize', 'Node', 'Options', 'PDFLaTeXScanner', 'PathList', 'Platform', 'ProgramScanner', 'SConf', 'SCons', 'SConsign', 'Scanner', 'Script', 'ShLibAction', 'SourceFileScanner', 'Subst', 'Taskmaster', 'Tool', 'ToolInitializer', 'ToolInitializerMethod', 'Util', 'Variables', 'VersionShLibLinkNames', 'VersionedSharedLibrary', 'Warnings', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', '__revision__', 'compat', 'cpp', 'createCFileBuilders', 'createLoadableModuleBuilder', 'createObjBuilders', 'createProgBuilder', 'createSharedLibBuilder', 'createStaticLibBuilder', 'dblite', 'imp', 'os', 're', 'shutil', 'suffix', 'sys', 'tool_list']
I popped the SCons append into the try block and it got to the usual point, but I was wondering whether I'd missed a step?
Thanks,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20141017/89b50b6b/attachment.html>
More information about the Scons-users
mailing list