Closed SeanBryan51 closed 8 months ago
The uploaded tarball for benchcab v4.0.0 is missing the site-packages/benchcab/data
directory (see https://anaconda.org/accessnri/benchcab/files).
Building the conda package locally on Gadi and installing it seems to include the data directory which is strange. Perhaps something specific to the automated deployment is broken (workflow logs for the deployment are here: https://github.com/CABLE-LSM/benchcab/actions/runs/8182061626/job/22372810738).
I've managed to reproduce and fix the error in my personal fork of benchcab by replacing the include_package_data
option in setup.cfg with the package_data option.
Hot fix release coming soon.
It might be possible that we are not testing the installed version of the package in our CI workflow. This is one of the major disadvantages in using a flat layout. It would be interesting to see if the CI fails to find the data directory when switching to a src layout.
*Edit: switching to src layout and removing the package_data option causes the CI to fail to find the data directory: https://github.com/SeanBryan51/benchcab/actions/runs/8353949217/job/22866490538?pr=2. We should make this change before resolving this issue.
Running
benchcab run
with benchcab v4.0.0 fails to load resources from the package data directory and throws a FileNotFoundError:To reproduce:
I have also reproduced the error in a custom conda environment.