Issue with LIGOTimeGPS + LIGOTimeGPS in custom build on python35
I'm trying to build LAL on rh-python35
on CIT. I put together a test script that does the following:
- enable
rh-python35
and create avirtualenv
includingnumpy
- download the tarball for lal-6.18.0 and run
configure/make/make install
- execute
python -c 'import lal; print(lal.LIGOTimeGPS(1) + lal.LIGOTimeGPS(2))'
The simple addition fails:
$ python -c 'import lal; print(lal.LIGOTimeGPS(1) + lal.LIGOTimeGPS(2))'
Traceback (most recent call last):
File "<string>", line 1, in <module>
TypeError: unsupported operand type(s) for +: 'lal.LIGOTimeGPS' and 'lal.LIGOTimeGPS'
I don't see this using py35-lal
from macports on my laptop, so I'm wondering if there's a problem with the rh-python36
build, or my configuration of LAL for this test, or just a bug in LAL or the swig bindings.
The test script is on CIT at
/home/duncan.macleod/tmp/test-lal-python3.sh
And runs with system swig 3.0.7. Preempting an inevitable question, the configure arguments are:
./configure --prefix=${VIRTUAL_ENV} --enable-swig-python --silent --enable-silent-rules
Any help is greatly appreciated.