ska-sa / katdal

Data access library for the MeerKAT radio telescope
BSD 3-Clause "New" or "Revised" License
12 stars 13 forks source link

casacore missing as a dependency #371

Closed Mulan-94 closed 6 months ago

Mulan-94 commented 12 months ago

Hi there,

Trying to run mvftoms --help and I get:

Traceback (most recent call last):
  File "/home/v_envs/katdal/bin/mvftoms.py", line 39, in <module>
    from katdal import averager, ms_async, ms_extra
  File "/home/v_envs/katdal/lib/python3.8/site-packages/katdal/ms_async.py", line 36, in <module>
    from . import ms_extra
  File "/home/v_envs/katdal/lib/python3.8/site-packages/katdal/ms_extra.py", line 27, in <module>
    import casacore
ModuleNotFoundError: No module named 'casacore'

installing python-casacore seems to help. Perhaps it's a missing required dependency?

Tested on: python 3.8

bennahugo commented 12 months ago

Casacore is an optional dependency for katdal. Install with the square bracket notation [ms,s3]

On Sun, Nov 26, 2023, 20:02 Lexy Andati @.***> wrote:

Hi there,

Trying to run mvftoms --help and I get:

Traceback (most recent call last): File "/home/v_envs/katdal/bin/mvftoms.py", line 39, in from katdal import averager, ms_async, ms_extra File "/home/v_envs/katdal/lib/python3.8/site-packages/katdal/ms_async.py", line 36, in from . import ms_extra File "/home/v_envs/katdal/lib/python3.8/site-packages/katdal/ms_extra.py", line 27, in import casacore ModuleNotFoundError: No module named 'casacore'

installing python-casacore seems to help. Perhaps it's a missing required dependency?

Tested on: python 3.8

— Reply to this email directly, view it on GitHub https://github.com/ska-sa/katdal/issues/371, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4RE6W2LITCUZR3NY6EAELYGN7Z7AVCNFSM6AAAAAA73AM75KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYTCMJTHAZTANQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ludwigschwardt commented 12 months ago

Indeed, as @bennahugo said: pip install katdal[ms].

The s3 option still exists but does nothing. It is safe to leave that out.