Thanks, Serge. I'm actually playing with the tests that are invoked via qserv-testdata.py. For example, the script benchmark.py lives under the %QSERV_SRC_DIR%/tests/, which doesn't have a SConscript file. Fortunately, it seems that running scons within %QSERV_SRC_DIR% successfully installs the python code under %QSERV_SRC_DIR%/tests/ before failing due to the "Text file busy" error. This seems like a bug, but it turns out to be an innocuous bug for me.
-- Bill

On Jan 6, 2014, at 9:16 AM, Serge Monkewitz <[log in to unmask]> wrote:

Hi Bill,

    I have just been running 'scons install' from the sub-directory that I've been modifying (e.g. master/), which does work for me. I do agree that what you are reporting should be fixed though.

Happy New Year!
Serge

On Jan 5, 2014, at 20:34, Bill Chickering <[log in to unmask]> wrote:

Hello Qserv Team -

I'm trying to debug some code changes but keeping running into a problem when I try to re-build qserv. I initially build my instance of qserv on lsst-dev03 following the procedure described on Trac:
https://dev.lsstcorp.org/trac/wiki/db/Qserv/InstallAuto

After running scons, I am able to run qserv-testdata.py and obtain what appear to be reasonable results. However, after making minor changes to the source and running scons a subsequent time within %QSERV_SRC_DIR%, it fails. Here are the contents of the INSTALL-yyyy-mm-dd:hh:mm.log file:
Using virtualenv-1.7.
-- Running: /usr/bin/python virtualenv.py /u1/bchick/sandbox2/qserv-master5 in /u1/bchick/sandbox2/qserv-master5/build/virtualenv-1.7
ERROR : /usr/bin/python virtualenv.py /u1/bchick/sandbox2/qserv-master5 exits with error code (256) at /u1/bchick/src/qserv-master5/admin/qserv-install line 589.
New python executable in /u1/bchick/sandbox2/qserv-master5/bin/python
Traceback (most recent call last):
  File "virtualenv.py", line 2098, in <module>
    main()
  File "virtualenv.py", line 928, in main
    never_download=options.never_download)
  File "virtualenv.py", line 1029, in create_environment
    site_packages=site_packages, clear=clear))
  File "virtualenv.py", line 1240, in install_python
    shutil.copyfile(executable, py_executable)
  File "/usr/lib64/python2.6/shutil.py", line 51, in copyfile
    with open(dst, 'wb') as fdst:
IOError: [Errno 26] Text file busy: '/u1/bchick/sandbox2/qserv-master5/bin/python'

Seems strange that scons wants to re-install python. Has anyone else encountered this? Is there a better way to re-build qserv after changing python or c source code?

Thanks in advance,
Bill

P.S. Happy New Year everyone!!


Use REPLY-ALL to reply to list

To unsubscribe from the QSERV-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1




Use REPLY-ALL to reply to list

To unsubscribe from the QSERV-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1