ratt-ru / meqtrees-cattery

MeqTrees-based frameworks for simulation and calibration of radio interferometers
Other
5 stars 9 forks source link

Fix test issue 88 #92

Closed bennahugo closed 5 years ago

bennahugo commented 5 years ago

Fixes #88. @gijzelaerr pretty please don't remove my dockerfile again

bennahugo commented 5 years ago

@o-smirnov once this goes through please set the require build statuses to pass and disable push to master -- like we have on cubical

bennahugo commented 5 years ago

Nope... KERN packages are broken. Master is not. python3:

2019/01/13 18:28:40 PYXIS: VERBOSE=1 by default
2019/01/13 18:28:40 PYXIS: loading Pyxis into context 'importlib._bootstrap'
2019/01/13 18:28:40 INFO: setting MS list to WSRT.MS
Traceback (most recent call last):
  File "/usr/local/bin/pyxis", line 293, in <module>
    assign('MS_List',mslist);
NameError: name 'assign' is not defined
========== Removing files
========== $ rm -fr WSRT.MS* WSRT*img WSRT*fits
========== Running makems
========== $ makems /code/test/Batchtest/WSRT_makems.cfg
========== $ mv WSRT.MS_p0 WSRT.MS
========== $ pyxis WSRT.MS ms.prep
Traceback (most recent call last):
  File "batch_test.py", line 90, in <module>
    run("pyxis WSRT.MS ms.prep"); #TODO: this is hacky, bug in CASAcore
  File "batch_test.py", line 28, in run
    raise RuntimeError("failed with exit code %x"%code);
RuntimeError: failed with exit code 1
The command '/bin/sh -c python3 batch_test.py' returned a non-zero code: 1
The command "docker build . -f .travis/${TARGET}.docker" exited with 1.

and python2.7

lwimager normally ended
real    0m0.254s
user    0m0.184s
sys 0m0.040s
Success, all *.img files will be removed after conversion to FITS
image2fits: Version 20090915GvD
The input image is: tmp.img*2
2019-01-13 18:26:40 INFO    ImageFitsConverter::ImageToFITS     Copying 'Expression: tmp.img*2' to file All pixels fit in memory (262144 pixels).
image2fits normally ended
0.6Gb purr(__init__.py:49:loadPlugins): Error importing module /usr/local/lib/python2.7/dist-packages/Purr/Plugins/fits.py: invalid syntax (font.py, line 19)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/Purr/Plugins/__init__.py", line 42, in loadPlugins
    module = imp.load_module('Purr.Plugins.%s'%modname,fp,pathname,desc);
  File "/usr/local/lib/python2.7/dist-packages/Purr/Plugins/fits.py", line 31, in <module>
    from .local_pychart import *
  File "/usr/local/lib/python2.7/dist-packages/Purr/Plugins/local_pychart/axis.py", line 14, in <module>
    from . import font
  File "/usr/local/lib/python2.7/dist-packages/Purr/Plugins/local_pychart/font.py", line 19
    from . import afm.dir
                     ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/Timba/Apps/meqserver.py", line 40, in <module>
    from Timba.GUI.meqserver_gui import *
  File "/usr/lib/python2.7/dist-packages/Timba/GUI/meqserver_gui.py", line 48, in <module>
    import Purr.MainWindow
  File "/usr/local/lib/python2.7/dist-packages/Purr/__init__.py", line 28, in <module>
    from .Purrer import Purrer
  File "/usr/local/lib/python2.7/dist-packages/Purr/Purrer.py", line 30, in <module>
    import configparser
ImportError: No module named configparser
1.2Gb tdlc(Compile.py:157:import_tdl_module): exception importing TDL file: /code/test/Batchtest/testing-sim.py
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/Timba/TDL/Compile.py", line 142, in import_tdl_module
    _update_modlist();
  File "/usr/lib/python2.7/dist-packages/Timba/TDL/Compile.py", line 66, in _update_modlist
    and not getattr(sys.modules[name],'_tdl_no_reimport',False)]);
  File "/usr/lib/python2.7/dist-packages/pyfits/extern/six.py", line 116, in __getattr__
    _module = self._resolve()
  File "/usr/lib/python2.7/dist-packages/pyfits/extern/six.py", line 105, in _resolve
    return _import_module(self.mod)
  File "/usr/lib/python2.7/dist-packages/pyfits/extern/six.py", line 76, in _import_module
    __import__(name)
ImportError: No module named _winreg
1.2Gb meqserver(meqserver.py:288:stop_default_mqs): meqserver not exited yet, waiting another 10 seconds
Traceback (most recent call last):
  File "batch_test.py", line 120, in <module>
    mod,ns,msg = Compile.compile_file(mqs,script,config="simulate-model");
  File "/usr/lib/python2.7/dist-packages/Timba/TDL/Compile.py", line 302, in compile_file
    (tdlmod,text) = import_tdl_module(filename,text=text,config=config);
  File "/usr/lib/python2.7/dist-packages/Timba/TDL/Compile.py", line 164, in import_tdl_module
    raise TDL.CumulativeError(*ns.GetErrors());
Timba.TDL.TDLimpl.CumulativeError: 
 [  1] No module named _winreg
========== Removing files
('========== $', 'rm -fr WSRT.MS* WSRT*img WSRT*fits')
========== Running makems
('========== $', 'makems /code/test/Batchtest/WSRT_makems.cfg')
('========== $', 'mv WSRT.MS_p0 WSRT.MS')
('========== $', 'pyxis WSRT.MS ms.prep')
('========== $', 'ls -ld WSRT.MS')
('========== $', '/usr/bin/owlcat.sh downweigh-redundant-baselines WSRT.MS')
('========== $', 'lwimager ms=WSRT.MS data=CORRECTED_DATA mode=channel weight=natural npix=10')
('========== $', 'tigger-convert test-lsm.txt --rename --format "ra_d dec_d i q u v" --center 0.1deg,60.5deg -f')
('========== $', 'tigger-convert test-lsm.lsm.html test-lsm1.txt --output-format "name ra_h dec_d i q u v freq0 spi rm tags..." -f')
('========== $', 'cut -d " " -f 1-10 test-lsm1.txt >test-lsm1.txt.tmp')
('========== $', 'diff test-lsm1.txt.tmp /code/test/Batchtest/test-lsm1.txt.reference')
('========== $', 'tigger-convert test-lsm1.txt --format "name ra_h dec_d i q u v freq0 spi rm tags..." -f')
('========== $', '/usr/bin/owlcat.sh plot-ms WSRT.MS DATA:I -o data_i.png')
('========== $', '/usr/bin/owlcat.sh run-imager ms=WSRT.MS name_dirty=tmp')
importing meqserver
*** Error importing GUI modules:
importing Compile
importing TDLOptions
Starting meqserver
('========== Compiling', '/code/test/Batchtest/testing-sim.py')
  (Meow.MSUtils: found /usr/bin/lwimager, can use it for imaging.)
  (Meow.MSUtils: found image viewer /usr/bin/tigger)
Successful readonly open of autonoread-locked table WSRT.MS: 26 columns, 7560 rows
Successful readonly open of autonoread-locked table /code/test/Batchtest/WSRT.MS/ANTENNA: 8 columns, 14 rows
Successful readonly open of default-locked table /code/test/Batchtest/WSRT.MS/OBSERVATION: 9 columns, 1 rows
Successful readonly open of autonoread-locked table /code/test/Batchtest/WSRT.MS/POLARIZATION: 4 columns, 1 rows
Successful readonly open of autonoread-locked table /code/test/Batchtest/WSRT.MS/DATA_DESCRIPTION: 3 columns, 1 rows
Successful readonly open of autonoread-locked table /code/test/Batchtest/WSRT.MS/SPECTRAL_WINDOW: 14 columns, 1 rows
Successful readonly open of autonoread-locked table /code/test/Batchtest/WSRT.MS/FIELD: 9 columns, 1 rows
Using LSM module from Tigger (1.4.2) 1.4.2 at /usr/lib/python2.7/dist-packages/Tigger (in path)
Successful readonly open of default-locked table WSRT.MS: 26 columns, 7560 rows
Successful readonly open of default-locked table WSRT.MS: 26 columns, 7560 rows
Successful readonly open of default-locked table WSRT.MS: 26 columns, 7560 rows
Successful readonly open of default-locked table WSRT.MS: 26 columns, 7560 rows
Stopping meqserver
The command '/bin/sh -c python batch_test.py' returned a non-zero code: 1
The command "docker build . -f .travis/${TARGET}.docker" exited with 1.