-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileNotFoundError when running benchcab v4.0.0 #267
Comments
The uploaded tarball for benchcab v4.0.0 is missing the 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 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. |
Currently the uploaded tarball for benchcab v4.0.0 is missing the site-packages/benchcab/data directory (see https://anaconda.org/accessnri/benchcab/files). This change fixes this by replacing the include_package_data option with the package_data option in setup.cfg (see Data Files Support). Conda package deployment was tested here in a forked repository and the uploaded tarball contains the package data directory. Fixes #267
Currently the uploaded tarball for benchcab v4.0.0 is missing the site-packages/benchcab/data directory (see https://anaconda.org/accessnri/benchcab/files). This change fixes this by replacing the include_package_data option with the package_data option in setup.cfg (see Data Files Support). Conda package deployment was tested here in a forked repository and the uploaded tarball contains the package data directory. Fixes #267
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.
The text was updated successfully, but these errors were encountered: