OSOceanAcoustics / echodataflow

Orchestrated sonar data processing workflow
https://echodataflow.readthedocs.io/en/latest/
MIT License
4 stars 1 forks source link

`echodataflow init` CLI Command Fails to Locate `echodataflow_rules.txt` File When Using Package Instead of Repository #93

Closed Sohambutala closed 3 months ago

Sohambutala commented 3 months ago

Description

The echodataflow init CLI command fails when using the package instead of the repository because it cannot locate the echodataflow_rules.txt file. This file contains the default rules and is located within the package.

Expected Behavior

The echodataflow init command should initialize correctly by locating and using the echodataflow_rules.txt file from the package.

Actual Behavior

The echodataflow init command fails with an error indicating that it cannot find the echodataflow_rules.txt file within the package.

Environment (please complete the following information):

Steps to Reproduce

Steps to reproduce the behavior:

  1. Install the package using the preferred method (e.g., pip).
  2. Run the echodataflow init command.
  3. Observe the error indicating the missing echodataflow_rules.txt file.

Screenshots If applicable, add screenshots to help explain your problem.

Possible Solution / Suggestion

Use the pkg_resources module to correctly load the echodataflow_rules.txt file from within the package.