ratt-ru / simms

Creates empty measurement sets using the the CASA simulate tool.
GNU General Public License v2.0
7 stars 8 forks source link

Syntax errors on Python 3.10 #61

Closed bennahugo closed 7 months ago

bennahugo commented 7 months ago

Looks like the package does not work on Python 3.10.

Traceback (most recent call last):
  File "/opt/casa-6.6.3-22-py3.8.el8/lib/py/lib/python3.8/site-packages/casashell/private/init_system.py", line 233, in __evprop__
    run_path( args[0], init_globals=exec_globals, run_name='__main__' )
  File "/opt/casa-6.6.3-22-py3.8.el8/lib/py/lib/python3.8/runpy.py", line 265, in run_path
    return _run_module_code(code, init_globals, run_name,
  File "/opt/casa-6.6.3-22-py3.8.el8/lib/py/lib/python3.8/runpy.py", line 97, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "/opt/casa-6.6.3-22-py3.8.el8/lib/py/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/tmp/tmptmphmd67.py", line 3, in <module>
    execfile('/usr/local/lib/python3.10/dist-packages/simms/casasm.py')
  File "/opt/casa-6.6.3-22-py3.8.el8/lib/py/lib/python3.8/site-packages/casashell/private/init_system.py", line 173, in execfile
    newglob = run_path( filename, init_globals=globals )
  File "/opt/casa-6.6.3-22-py3.8.el8/lib/py/lib/python3.8/runpy.py", line 264, in run_path
    code, fname = _get_code_from_file(run_name, path_name)
  File "/opt/casa-6.6.3-22-py3.8.el8/lib/py/lib/python3.8/runpy.py", line 239, in _get_code_from_file
    code = compile(f.read(), fname, 'exec')
  File "/usr/local/lib/python3.10/dist-packages/simms/casasm.py", line 35
    lon,lat,rad = [ refpos[x]['value'] for x in 'm0','m1','m2' ]