[Scons-users] "pip install scons" result in a broken installation that is unusable

Fux Samuel (ID SIS) samuel.fux at id.ethz.ch
Wed Oct 10 03:47:07 EDT 2018


Hi,

I installed scons 3.0.1 with the command
pip install scons
on our hpc cluster, using Python 2.7.14. The installation seems to be pretty broken:
[sfux at lo-login-02 ~]$ pip install scons
Collecting scons
Installing collected packages: scons
Successfully installed scons-3.0.1
You are using pip version 9.0.3, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[sfux at lo-login-02 ~]$ scons
SCons import failed. Unable to find engine files in:
  /cluster/apps/python/2.7.14/bin/../engine
  /cluster/apps/python/2.7.14/bin/scons-local-3.0.1
  /cluster/apps/python/2.7.14/bin/scons-local
  /cluster/apps/python/2.7.14/lib64/python2.7/site-packages/lib/scons-3.0.1
  /cluster/apps/python/2.7.14/lib/scons-3.0.1
  /cluster/apps/python/2.7.14/lib/scons-3.0.1
  /cluster/apps/python/2.7.14/lib64/python2.7/site-packages/lib/python2.7/site-packages/scons-3.0.1
  /cluster/apps/python/2.7.14/lib/python2.7/site-packages/scons-3.0.1
  /cluster/apps/python/2.7.14/lib/python2.7/site-packages/scons-3.0.1
  /cluster/apps/python/2.7.14/lib64/scons-3.0.1
  /cluster/apps/python/2.7.14/lib64/python2.7/site-packages/lib/scons
  /cluster/apps/python/2.7.14/lib/scons
  /cluster/apps/python/2.7.14/lib/scons
  /cluster/apps/python/2.7.14/lib64/python2.7/site-packages/lib/python2.7/site-packages/scons
  /cluster/apps/python/2.7.14/lib/python2.7/site-packages/scons
  /cluster/apps/python/2.7.14/lib/python2.7/site-packages/scons
  /cluster/apps/python/2.7.14/lib64/scons
Traceback (most recent call last):
  File "/cluster/apps/python/2.7.14/bin/scons", line 192, in <module>
    import SCons.Script
ImportError: No module named SCons.Script
[sfux at lo-login-02 ~]$ which python
/cluster/apps/python/2.7.14/bin/python
[sfux at lo-login-02 ~]$ which pip
/cluster/apps/python/2.7.14/bin/pip
[sfux at lo-login-02 ~]$ cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
[sfux at lo-login-02 ~]$
Is this a known problem ?

Can scons be installed with pip without using a virtualenv ?

Best regards

Sam

--
ETH Zurich, Dr. sc. ETH Samuel Fux
High Performance Computing, Scientific IT Services
WEC D 13, Weinbergstrasse 11, 8092 Zurich, Switzerland
Phone +41 44 632 57 63, http://www.id.ethz.ch/
samuel.fux at id.ethz.ch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20181010/922e8f33/attachment.html>


More information about the Scons-users mailing list