I am new in LSST. I have my LSST stack installed with miniconda. Currently I am trying to install the obs_decam packages so that I can pass images from DECam through the stack. But when I was using scons to build the packages after I setup pipe_tasks, I received the error which is shown below. I’d appreciate it if you can help.
Thank you
Leng
Error:
scons: Reading SConscript files …
EUPS integration: enabled
Checking who built the CC compiler…error: no result
CC is gcc version 4.4.7
Checking for C++11 support
Checking whether the C++ compiler worksno
Checking whether the C++ compiler worksyes
C++11 supported with '-std=c++0x’
Checking for C++ header file tr1/unordered_map… yes
TypeError: can only concatenate list (not “tuple”) to list:
File “home/mleng/miniconda2/opt/lsst/decam/obs_decam/SConstruct”, line 3:
scripts.BasicSConstruct(“obs_decam”, defaultTargets=scripts.DEFAULT_TARGETS + (“decam”,))
I don’t think that’s the whole story, @timj (though it’s true!). The reported error is:
TypeError: can only concatenate list (not "tuple") to list
and appears to be due to concatenating scripts.DEFAULT_TARGETS (presumably a list) and the tuple ("decam",). This seems to be a change introduced by @rowen rather recently.
I am actually confused. I don’t think this stack is current. sconsUtils no longer even works with GCC 4.4 and should fail out immediately. The error above indicates the stack is a few months old.
I did have tried building from the source at very beginning but encountered some issues. One of them was that why it was checking for CC instead of gcc complier? Was this only resulted from the fact that my gcc version was too old?
Thanks
Error:
scons: Reading SConscript files …
EUPS integration: enabled
Checking who built the CC compiler…error: no result
CC is unknown version unknown
Checking for C++11 support
Checking whether the C++ compiler works… no
C++11 extensions could not be enabled for compiler ‘unknown’
Thank you for your reply. I have installed the latest the version of the stack but while installing obs_decam, the same error persists:
scons: Reading SConscript files …
EUPS integration: enabled
Checking who built the CC compiler…error: no result
CC is gcc version 4.8.5
Checking for C++11 support
Checking whether the C++ compiler worksyes
C++11 supported with '-std=c++11’
Checking for C++ header file tr1/unordered_map… yes
TypeError: can only concatenate list (not “tuple”) to list:
File “/home/mleng/lsst/Linux64/obs_decam/SConstruct”, line 3:
scripts.BasicSConstruct(“obs_decam”, defaultTargets=scripts.DEFAULT_TARGETS + (“decam”,))
Any suggestions on ways to fix this is very much appreciated.
I have installed the latest the version of the stack
Could you be more specific about exactly which version this means, and how you installed it (through Anaconda, using the guide @price suggested, or some other method)?
Please set up your system as if you were about to build obs_decam, then try running both
Thank you for your reply. I installed the version 12 as what you
suggested. I have the stack installed this time from the source. I have
run the test data and it proceeded successfully.
To build obs_decam, after loading LSST environment I setup pipe_tasks
first. I tried the commands you suggested and the followings were the
outputs:
bash-4.1$ eups list -s sconsUtils
11.0 current b1711 v11_0 setup
bash-4.1$ eups list -s sconsUtils
11.0 current b1711 v11_0 setup
This worries me: version 12 of the stack should not be using sconsUtils version 11.
I suggest starting from a clean environment – ie, remove anything relevant to LSST from your shell initialization files (.profile, .bashrc, etc) if you’ve added it, then open a fresh new terminal. Start by sourcing loadLSST, as described in the instructions @price linked you to earlier. Then check which versions of both lsst_apps and sconsUtils you have installed:
eups list lsst_apps
eups list sconsUtils
I’m confused by the rest of your reply: it looks like you edited it while I was typing this. At one point, it seemed like $SCONSUTILS_DIR wasn’t set to anything useful, which could be the source of your problems, but you’ve now removed the text that indicates that. Can you confirm what the contents of $SCONSUTILS_DIR is (ie, echo $SCONSUTILS_DIR) immediately before you try to build obs_decam?
When I tried building obs_decam I received the following:
bash-4.1$ setup pipe_tasks
bash-4.1$ setup -k -r .
bash-4.1$ scons install declare
scons: Reading SConscript files …
EUPS integration: enabled
Checking who built the CC compiler…(cached) error: no result
CC is gcc version 4.8.5
Checking for C++11 support
Checking whether the C++ compiler works… (cached) yes
C++11 supported with '-std=c++11’
Setting up environment to build package ‘obs_decam’.
scons: done reading SConscript files.
scons: Building targets …
python decam/makeLinearizer.py decam/linearity_table_v0.4.fits --force
Traceback (most recent call last):
File “decam/makeLinearizer.py”, line 13, in
from lsst.ip.isr import LinearizeLookupTable
ImportError: cannot import name LinearizeLookupTable
scons: *** [decam/linearizer] Error 1
scons: building terminated because of errors.