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
- Bump stile to a newer version (if one exists that supports treecorr 5.x). Check Stile upstream.
- Pin
treecorr<5 in the Dockerfile. Regresses other modules that rely on treecorr 5 features (if any).
- Fork stile and patch the import.
Caught by
tests/unit/test_imports.py for the 4 modules above (xfailed in #708).
Symptom
4 shapepipe modules fail to import:
shapepipe.modules.mccd_package.mccd_plot_utilitiesshapepipe.modules.mccd_plots_runnershapepipe.modules.random_cat_package.random_catshapepipe.modules.random_cat_runnerTraceback ends:
Root cause
The Dockerfile pins
treecorr==5.1.1and installsstile @ git+https://github.com/tobias-liaudat/Stile@v0.1. treecorr 5.x flattened its namespace and removed thetreecorr.corr2submodule; stilev0.1still imports it.Options
treecorr<5in the Dockerfile. Regresses other modules that rely on treecorr 5 features (if any).Caught by
tests/unit/test_imports.pyfor the 4 modules above (xfailed in #708).