Skip to content
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

StarDist_2D_ZeroCostDL4Mic.ipynb ImportError: cannot import name 'load_resource_description' from 'bioimageio.core' #54

Open
jazberna1 opened this issue Sep 2, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jazberna1
Copy link

jazberna1 commented Sep 2, 2024

Hello,

I have encountered the following error when running the note book StarDist_2D_ZeroCostDL4Mic.ipynb v1.20
ImportError: cannot import name 'load_resource_description' from 'bioimageio.core' (/usr/local/lib/python3.10/dist-packages/bioimageio/core/__init__.py)

Screenshot 2024-09-02 at 14 26 52

I have reproduced the error both downloading and building the image dde721010650
To give you some more information:
Inside the running container the bioimageio.core the version is 0.6.8
Then inside the python interpreter I checked that load_resource_description is not there

import bioimageio.core
dir(bioimageio.core)

['Axis', 'AxisId', 'BlockMeta', 'MemberId', 'PredictionPipeline', 'Sample', 'Tensor', 'VERSION', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '__version__', '_magic_tensor_ops', '_op_base', '_prediction_pipeline', '_resource_tests', '_settings', 'axis', 'block', 'block_meta', 'build_description', 'common', 'create_prediction_pipeline', 'digest_spec', 'dump_description', 'io', 'load_description', 'load_description_and_test', 'load_description_and_validate_format_only', 'load_model', 'load_resource', 'model_adapters', 'predict', 'predict_many', 'prediction', 'proc_ops', 'proc_setup', 'sample', 'save_bioimageio_package', 'save_bioimageio_package_as_folder', 'save_bioimageio_yaml_only', 'settings', 'stat_calculators', 'stat_measures', 'tensor', 'test_description', 'test_model', 'test_resource', 'utils', 'validate_format']

What I think It happened here is that load_resource_description was renamed to load_description

bioimage-io/core-bioimage-io-python@2fc6f3a

Best,
Jorge

@jazberna1 jazberna1 added the bug Something isn't working label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants