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

Bill Deegan bill at baddogconsulting.com
Wed Dec 6 20:21:47 EST 2017


Sounds like setup.py is installing in scons-VERSION instead of scons.
I may have an updated setup.py by next week.. we'll see how far I get.


On Wed, Dec 6, 2017 at 10:50 AM, Damjan Jovanovic <damjan.jov at gmail.com>
wrote:

> 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
>>>
>>>
>>
> _______________________________________________
> 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/fc41b3bc/attachment.html>


More information about the Scons-users mailing list