centowen / stacker

A library to stack sources in astronomical interferometric data.
GNU General Public License v2.0
3 stars 4 forks source link

errors installing stacker-master on multiple versions of ubuntu and casa #3

Open Vladan1986 opened 2 years ago

Vladan1986 commented 2 years ago

Hi,

I am having trouble installing stacker-master. I am using 2 ubuntu versions on two laptops and several different casa versions.

Regardless of the ubuntu version, with make install I get:

if [ -d ~/.casa/ipython/stacker ]; then rm -rf ~/.casa/ipython/stacker; fi mkdir -p ~/.casa/ipython/stacker cp -r image __init__.py interval modsub pb uv ~/.casa/ipython/stacker mkdir -p ~/.casa/ipython/stacker/stacker_clib cp stacker_clib/*.so ~/.casa/ipython/stacker/stacker_clib cp: cannot stat 'stacker_clib/*.so': No such file or directory make: *** [Makefile:20: install] Error 1

When I am using: ubuntu 20.04
scons v3.1.2 nvcc 10.1, V10.1.243 casa: casapy-42.2.3, 4.7.0

with cd stacker_clib scons --link2casa

scons: Reading SConscript files ...
  File "/home/vladan/Programs/casa-release-4.7.0-1-el6/lib/python2.7/site-packages/IPython/stacker-master/stacker_clib/SConstruct", line 28
    raise ValueError, 'Error: unknown OS.  Where is nvcc installed?'
                    ^
SyntaxError: invalid syntax

When I am using: ubuntu 16.04
scons v2.4.1 nvcc 9.0, V9.0.176 casa: casapy-42.2.3, 4.7.0, 5.4.0

with cd stacker_clib scons --link2casa:


scons: Reading SConscript files ...
NameError: name 'svnversion' is not defined:
  File "/home/vladan/Downloads/stacker-master/stacker_clib/SConstruct", line 305:
    if int(svnversion) > 32000:

Sorry for the long post. Any suggestion is more than welcome.

Cheers,

Vladan1986 commented 2 years ago

EDIT:

Now when I am using: ubuntu 20.04 scons v3.1.2 nvcc 10.1, V10.1.243 casa: basically any casa version

with cd stacker_clib scons --link2casa --casapath=/home/vladan/Programs/casa-release-4.3.1-el6/

I get:

scons: Reading SConscript files ... /home/vladan/Programs/casa-release-4.3.1-el6/ Downloading casacore headers matching casapy svn revision 32491 AttributeError: module 'pysvn' has no attribute 'Revision': File "/home/vladan/Downloads/stacker-master/stacker_clib/SConstruct", line 304: svnrevision=pysvn.Revision(pysvn.opt_revision_kind.number, svnversion)