Skip to content

stile v0.1 import fails: 'treecorr.corr2' removed in newer treecorr #710

@cailmdaley

Description

@cailmdaley

Symptom

4 shapepipe modules fail to import:

  • shapepipe.modules.mccd_package.mccd_plot_utilities
  • shapepipe.modules.mccd_plots_runner
  • shapepipe.modules.random_cat_package.random_cat
  • shapepipe.modules.random_cat_runner

Traceback ends:

File ".../stile/treecorr_utils.py", line 8
ModuleNotFoundError: No module named 'treecorr.corr2'

Root cause

The Dockerfile pins treecorr==5.1.1 and installs stile @ git+https://github.com/tobias-liaudat/Stile@v0.1. treecorr 5.x flattened its namespace and removed the treecorr.corr2 submodule; stile v0.1 still imports it.

Options

  1. Bump stile to a newer version (if one exists that supports treecorr 5.x). Check Stile upstream.
  2. Pin treecorr<5 in the Dockerfile. Regresses other modules that rely on treecorr 5 features (if any).
  3. Fork stile and patch the import.

Caught by

tests/unit/test_imports.py for the 4 modules above (xfailed in #708).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions