[Scons-users] Win7 + MSVS2019 fails to create environment....
Steve Hill (Wireless)
Steve.Hill1 at viavisolutions.com
Thu Sep 16 04:23:17 EDT 2021
Hi Stephen,
Looking at the source code, it looks like this was fixed in 4.0.0: https://github.com/SCons/scons/blob/rel_4.0.0/SCons/Tool/MSCommon/common.py#L270
S.
From: Scons-users <scons-users-bounces at scons.org> On Behalf Of Stephen Hill via Scons-users
Sent: 16 September 2021 08:40
To: scons-users at scons.org
Subject: [Scons-users] Win7 + MSVS2019 fails to create environment....
EXTERNAL EMAIL: Do not click links or open attachments unless you know and trust the sender.
We are on scons v3.1.2 and are using MSVS2019 v16.10.2 on Win7.
When creating the win32 environment we see a dialog box saying "Windows cannot find 'powershell.exe'.", and then it fails after clicking OK:
Traceback (most recent call last):
File "C:\Views\cue\tm_build_system\SConstruct", line 1923, in <module>
prof.runcall(d.populate_domain)
File "C:\Views\cue\tm_build_system\SConstruct", line 1686, in runcall
return func(*arg, **kwds)
File "C:\Views\cue\tm_build_system\domain\domain.py", line 378, in populate_domain
state.push("env", self._create_env())
File "C:\Views\cue\tm_build_system\domain\tools.py", line 167, in _create_env
return self._create_host_env(
File "C:\Views\cue\tm_build_system\domain\domain.py", line 689, in _create_host_env
return self._create_win32_env(mfcEnv, debug)
File "C:\Views\cue\tm_build_system\domain\domain.py", line 726, in _create_win32_env
env = SCons.Script.Environment(
File "c:\views\cue\.venv\build_venv\lib\site-packages\scons\SCons\Environment.py", line 990, in __init__
apply_tools(self, tools, toolpath)
File "c:\views\cue\.venv\build_venv\lib\site-packages\scons\SCons\Environment.py", line 102, in apply_tools
env.Tool(tool)
File "c:\views\cue\.venv\build_venv\lib\site-packages\scons\SCons\Environment.py", line 1810, in Tool
tool(self)
File "c:\views\cue\.venv\build_venv\lib\site-packages\scons\SCons\Tool\__init__.py", line 303, in __call__
self.generate(env, *args, **kw)
File "c:\views\cue\.venv\build_venv\lib\site-packages\scons\SCons\Tool\default.py", line 41, in generate
SCons.Tool.Tool(t)(env)
File "c:\views\cue\.venv\build_venv\lib\site-packages\scons\SCons\Tool\__init__.py", line 303, in __call__
self.generate(env, *args, **kw)
File "c:\views\cue\.venv\build_venv\lib\site-packages\scons\SCons\Tool\mslink.py", line 314, in generate
msvc_setup_env_once(env)
File "c:\views\cue\.venv\build_venv\lib\site-packages\scons\SCons\Tool\MSCommon\vc.py", line 695, in msvc_setup_env_once
msvc_setup_env(env)
File "c:\views\cue\.venv\build_venv\lib\site-packages\scons\SCons\Tool\MSCommon\vc.py", line 814, in msvc_setup_env
d = msvc_find_valid_batch_script(env,version)
File "c:\views\cue\.venv\build_venv\lib\site-packages\scons\SCons\Tool\MSCommon\vc.py", line 762, in msvc_find_valid_batch_script
d = script_env(vc_script, args=arg)
File "c:\views\cue\.venv\build_venv\lib\site-packages\scons\SCons\Tool\MSCommon\vc.py", line 621, in script_env
stdout = common.get_output(script, args)
File "c:\views\cue\.venv\build_venv\lib\site-packages\scons\SCons\Tool\MSCommon\common.py", line 238, in get_output
sys.stderr.write(stderr)
TypeError: write() argument must be str, not bytes
Regards,
Steve.
Stephen Hill
TM500 Chief Technical Specialist
VIAVI Solutions - Wireless
Office : +44 (0)1438 744542
Mobile : +44 (0)7595 281746
stephen.hill at viavisolutions.com<mailto:stephen.hill at viavisolutions.com>
[cid:image001.png at 01D7AADC.62A81A70]
Follow us on:
VIAVI Blog<http://blog.viavisolutions.com/> | LinkedIn<https://urldefense.com/v3/__https:/www.linkedin.com/company/viavi-solutions__;!!Niha4SQ!uwpnhYYwRkpzQoyuDLzC_yt5I5inp-1OPQbn9cA4mvooxgkioMRajp2gaLQI8bdrir7pVASp$> | YouTube<https://urldefense.com/v3/__https:/www.youtube.com/channel/UCCCGcTKD1teKf8VyaEKm-MA__;!!Niha4SQ!uwpnhYYwRkpzQoyuDLzC_yt5I5inp-1OPQbn9cA4mvooxgkioMRajp2gaLQI8bdrikbBZZyr$> | Twitter<https://urldefense.com/v3/__https:/twitter.com/ViaviSolutions__;!!Niha4SQ!uwpnhYYwRkpzQoyuDLzC_yt5I5inp-1OPQbn9cA4mvooxgkioMRajp2gaLQI8bdrih2VsQnk$> | Facebook<https://urldefense.com/v3/__https:/www.facebook.com/viavisolutions__;!!Niha4SQ!uwpnhYYwRkpzQoyuDLzC_yt5I5inp-1OPQbn9cA4mvooxgkioMRajp2gaLQI8bdriku1xmJh$>
Aeroflex Limited a VIAVI Solutions Company, Longacres House, Six Hills Way, STEVENAGE, Herts, SG1 2AN, UK. +44 (0) 1438 742200 www.viavisolutions.com/wirelessvalidation<http://www.viavisolutions.com/wirelessvalidation>
Registered Office: Longacres House, Six Hills Way, Stevenage, SG1 2AN. Registered in England and Wales No. 317241.
This e-mail and any files transmitted with it is intended solely for the addressee(s) and may contain information that is proprietary, privileged,
company confidential and/or exempt from disclosure under applicable law. If you are not the intended addressee(s), any disclosure, reproduction, copying,
distribution or other use of the e-mail is strictly prohibited. It may also contain data subject to the International Traffic in Arms Regulations or United States
Export Administration Regulations, particularly if this E-mail has been transmitted from a United States location, and cannot be disseminated,
distributed or copied to foreign nationals, residing in the United States or abroad, without the prior approval of the U.S. Department of State
or appropriate export licensing authority. If you have received this E-mail in error, please delete it and destroy all copies of
this e-mail and notify the sender immediately via telephone call or return e-mail.
Neither the company nor any subsidiary or affiliate or associated company nor any individual sending this E-mail accepts any liability in respect of the content
(including errors and omissions) nor shall this e-mail be deemed to enter the company or any subsidiary or affiliate or associated company into a contract or
to create any legally binding obligations unless expressly agreed to in writing under separate cover and timeliness of the E-mail which arise as a result of transmission.
If verification is required, please request a hard copy version from the sender.
Please consider the environment before printing this email
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20210916/fc469c15/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1948 bytes
Desc: image001.png
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20210916/fc469c15/attachment-0001.png>
More information about the Scons-users
mailing list