-
Notifications
You must be signed in to change notification settings - Fork 6
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
Update multiscale_spatial_image.py #56
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also:
- Remove itk_helper.py
- Update the dependency version in pyproject.toml to 5.3rc4.post2 or newer
Failures appear to be NGFF releated:
|
I am having difficulty recreating the NGFF failure, with @dzenanz do you have a Linux machine where you may be able to reproduce the errors? Python package versions (Windows and Linux):
|
When I try test instructions, I run into:
|
The CID looks correct to me, I was able to get content in testing yesterday. Perhaps an IPFS question for @thewtex ? |
@dzenanz is |
I now run into
while
|
This is addressed with: aef02bb
This still indicates the daemon is not available. However, the testing data is now managed in a different way in via #59 . Please try rebasing on |
Mostly works now. Is dzenan@corista:~/zarr/multiScale$ pytest --nbmake --nbmake-timeout=3000 examples/*ipynb -W:Deprecation ===================================================================== test session starts ====================================================================== platform linux -- Python 3.10.4, pytest-7.1.2, pluggy-0.13.0 rootdir: /home/dzenan/zarr/multiScale plugins: nbmake-1.3.4, napari-plugin-engine-0.2.0, napari-0.4.16, mypy-0.9.1, npe2-0.6.0 collected 5 items examples/ConvertImageioImageResource.ipynb . [ 20%] examples/ConvertITKImage.ipynb . [ 40%] examples/ConvertPyImageJDataset.ipynb F [ 60%] examples/ConvertTiffFile.ipynb . [ 80%] examples/HelloMultiscaleSpatialImageWorld.ipynb . [100%] =========================================================================== FAILURES =========================================================================== ______________________________________________ /home/dzenan/zarr/multiScale/examples/ConvertPyImageJDataset.ipynb ______________________________________________ --------------------------------------------------------------------------- # initialize ImageJ2 ij = imagej.init('2.5.0') print(f"ImageJ2 version: {ij.getVersion()}") --------------------------------------------------------------------------- ExecutableNotFound Traceback (most recent call last) Input In [3], in <cell line: 2>() 1 # initialize ImageJ2 ----> 2 ij = imagej.init('2.5.0') 3 print(f"ImageJ2 version: {ij.getVersion()}") File ~/.local/lib/python3.10/site-packages/imagej/__init__.py:1496, in init(ij_dir_or_version_or_endpoint, mode, add_legacy, headless) 1493 raise EnvironmentError("Sorry, the interactive mode is not available on macOS.") 1495 if not sj.jvm_started(): -> 1496 success = _create_jvm(ij_dir_or_version_or_endpoint, mode, add_legacy) 1497 if not success: 1498 raise RuntimeError("Failed to create a JVM with the requested environment.") File ~/.local/lib/python3.10/site-packages/imagej/__init__.py:1701, in _create_jvm(ij_dir_or_version_or_endpoint, mode, add_legacy) 1698 sj.config.endpoints.extend(original_endpoints) 1700 try: -> 1701 sj.start_jvm() 1702 except subprocess.CalledProcessError as e: 1703 # Check to see if initialization failed due to "un-managed" imagej-legacy 1704 err_lines = [] File ~/.local/lib/python3.10/site-packages/scyjava/__init__.py:116, in start_jvm(options) 114 endpoints = endpoints[:1] + sorted(endpoints[1:]) 115 _logger.debug('Using endpoints %s', endpoints) --> 116 _, workspace = jgo.resolve_dependencies( 117 '+'.join(endpoints), 118 m2_repo=scyjava.config.get_m2_repo(), 119 cache_dir=scyjava.config.get_cache_dir(), 120 manage_dependencies=scyjava.config.get_manage_deps(), 121 repositories=repositories, 122 verbose=scyjava.config.get_verbose() 123 ) 124 jpype.addClassPath(os.path.join(workspace, '*')) 126 # initialize JPype JVM File ~/.local/lib/python3.10/site-packages/jgo/jgo.py:635, in resolve_dependencies(endpoint_string, cache_dir, m2_repo, link_type, update_cache, force_update, manage_dependencies, repositories, shortcuts, verbose) 627 mvn_args = ( 628 ["-B"] 629 + ["-f", pom_path, "dependency:resolve"] 630 + (["-U"] if force_update else []) 631 + (["-X"] if verbose > 1 else []) 632 ) 634 try: --> 635 mvn = executable_path_or_raise("mvn") 636 mvn_out = run_and_combine_outputs(mvn, *mvn_args) 637 except subprocess.CalledProcessError as e: File ~/.local/lib/python3.10/site-packages/jgo/jgo.py:192, in executable_path_or_raise(tool) 190 path = executable_path(tool) 191 if path is None: --> 192 raise ExecutableNotFound(tool, os.getenv("PATH")) 193 return path ExecutableNotFound: mvn not found on path /home/dzenan/.nvm/versions/node/v16.13.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/dzenan/.local/bin =================================================================== short test summary info ==================================================================== FAILED examples/ConvertPyImageJDataset.ipynb:: - ExecutableNotFound: mvn not found on path /home/dzenan/.nvm/versions/node/v16.13.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/dzenan/.local/bin =========================================================== 1 failed, 4 passed in 120.52s (0:02:00) ============================================================ dzenan@corista:~/zarr/multiScale$ |
Yes, this is just for the PyImageJ notebook. It is tested by CI -- you could skip it locally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
RC4 is available, update the code accordingly