[Scons-users] Reproducible "No module named SCons.Script" on multiple Windows installations

Damjan Jovanovic damjan.jov at gmail.com
Wed Dec 6 13:50:30 EST 2017


Yes "pip install SCons" did eventually get it working, thank you.

An offline install would be preferable though.

On Wednesday, December 6, 2017, Bill Deegan <bill at baddogconsulting.com>
wrote:

> Does it work if you use pip install?
>
> On Wed, Dec 6, 2017 at 5:13 AM, Damjan Jovanovic <damjan.jov at gmail.com>
> wrote:
>
>> Hi
>>
>> With Python 2.7.14 installed from http://www.python.org using the AMD64
>> MSI package on Windows 8, in my %PATH% and working when I type "python" by
>> itself, if I download SCons 3.0.0 or 3.0.1 and install them with "python
>> setup.py install --prefix=C:\some\path\scons", then try to run either
>> C:\some\path\scons\SCons\Scripts\scons.bat or "python
>> C:\some\path\scons\SCons\Scripts\scons.py", it dies with this exception:
>>
>> SCons import failed. Unable to find engine files in:
>>   C:\some\path\scons\Scripts\..\engine
>>   C:\some\path\scons\Scripts\scons-local-3.0.1
>>   C:\some\path\scons\Scripts\scons-local
>>   C:\Python27\scons-3.0.1
>>   C:\Python27\Lib\site-packages\scons-3.0.1
>>   C:\Python27\scons
>>   C:\Python27\Lib\site-packages\scons
>> Traceback (most recent call last):
>>   File "C:\some\path\scons\Scripts\scons.py", line 192, in <module>
>>     import SCons.Script
>> ImportError: No module named SCons.Script
>>
>>
>> I get exactly the same problem on 32 bit Windows XP using the Python
>> bundled with Apache OpenOffice, so it doesn't seem like an isolated problem.
>>
>> Does --prefix not work when installing on Windows? Is there something I
>> am missing?
>>
>> It might be worth noting that the real path to the SCons\Script directory
>> is C:\some\path\scons\Lib\site-packages\scons-3.0.1, which doesn't
>> appear in that list of paths printed out.
>>
>> Thank you
>> Damjan
>>
>>
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20171206/e177342d/attachment.html>


More information about the Scons-users mailing list