Skip to content

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

@jazberna1

Description

@jazberna1

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions