[Clas_offline] scons trouble

Johann Goetz jgoetz at ucla.edu
Wed Oct 13 12:28:08 EDT 2010


Hi Puneet,
Yes, the problem looks like the PYTHONPATH environment variable is not set
to the right place. It should have this path in it:
    /group/clas/builds/64bit/STABLE
FYI, this is where the "build_system" is located. In the the build_system
directory are several python scripts which make up the interface used to
build clas software with SCons.

This is probably a result of the environment64.csh file not being correct.
Keep in mind that if the build_system directory is not found, python will
look for it in the current working directory, so making a symbolic link to
the build_system directory where you want to compile your code is equivalent
to setting the PYTHONPATH variable.
-- 
Johann Goetz
jgoetz at ucla.edu
UCLA Dept. Physics & Astronomy
Nefkens Group

On Wed, Oct 13, 2010 at 7:34 AM, Puneet Khetarpal <puneetk at jlab.org> wrote:

> Hi Offliners,
>
> I'm running the /group/clas/builds/64bit/environment64.csh environment
> on ifarml6. I execute the following command on one of my sconstruct
> files and am getting the following error:
>
> $ source /group/clas/builds/64bit/environment64.csh
> $ scons
> scons: Reading SConscript files ...
> ImportError: No module named build_system:
>  File "/w/work5806/puneetk/toftests/p2p/code/sconstruct", line 1:
>    from build_system import environment
>
> Now if I execute the /group/clas/builds/32bit/environment32.csh
> environment on ifarml6 and execute scons, I get the following:
>
> $ source /group/clas/builds/32bit/environment32.csh
> $ scons
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> scons: building associated VariantDir targets: build/obj
> Building: p2p.C   --->   p2p.o
> Building: p2p.o   --->   p2p_calib
> scons: done building targets.
>
> Any ideas what could cause this problem?
>
> Thanks,
> Puneet
>
> "No word is true until it is eaten" - 36 Lessons of Vivec, Sermon 27
> _______________________________________________
> Clas_offline mailing list
> Clas_offline at jlab.org
> https://mailman.jlab.org/mailman/listinfo/clas_offline
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.jlab.org/pipermail/clas_offline/attachments/20101013/10a329ab/attachment.html 


More information about the Clas_offline mailing list