imagej / imagej/pyimagej

Google Colab example in Install.md yields VerifyError

Open
#248 5 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
534
Forks
95
PR merge metrics
No merged PRs in 30d

Description

Running the [Google Colab](https://github.com/imagej/pyimagej/blob/main/doc/Install.md#dynamic-installation-within-google-colab), example, I get the following exception running this line:
```python
ij.py.run_plugin("Filter Rank", {"window": 3, "randomise": True}, imp=imp)
```
```
[java.lang.Enum.toString] java.lang.VerifyError: (class: Filter_Rank, method: setup signature: (Ljava/lang/String;Lij/ImagePlus;)I) Incompatible object argument for function call
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.newInstance(Class.java:412)
at ij.IJ.runUserPlugIn(IJ.java:235)
at ij.IJ.runPlugIn(IJ.java:203)
at ij.Executer.runCommand(Executer.java:152)
at ij.Executer.run(Executer.java:70)
at ij.IJ.run(IJ.java:319)
at ij.IJ.run(IJ.java:409)
[java.lang.Enum.toString]
```

Can anyone else replicate this?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with doc/Install.md's “Dynamic installation within Google Colab” example and reproduce the ij.py.run_plugin(...) call in Colab. Compare the environment and installed components involved in the VerifyError; done means the documented example runs without the exception or the documentation records a verified incompatibility and corrected instructions.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, python
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.