There is a module-not-found error when invoking the CLI due to a relative import.
/lib/python3.12/site-packages/imap_data_access/cli.py", line 23, in <module>
from file_validation import ScienceFilePath
ModuleNotFoundError: No module named 'file_validation'
Yes! I was meaning to get to this. Both me and @bourque found this bug but it seemed to need to be corrected in different ways depending on our virtual environments.
Description of the issue
There is a module-not-found error when invoking the CLI due to a relative import.
This line needs to be prefixed with
imap_data_access.
https://github.com/IMAP-Science-Operations-Center/imap-data-access/blob/ff6c637533d39a8c5359f2e456e918f2495b0871/imap_data_access/cli.py#L23Steps to reproduce the issue
Expected behavior (What should happen)
Find all modules
Actual behavior (What does happen)
crash
Code Snippet:
No response
Additional notes, affected areas, and suggested fixes
We should add a smoke test for using the CLI too. A new
test_cli.py
file? Following subprocess calls after the installation similar to https://github.com/IMAP-Science-Operations-Center/imap-data-access/blob/main/tests/test_config_options.py We should be able to install our package and callimap-data-access -h
without a crash.