Failed to create JVM with requested environment
- Dominant language
- Python
- Stars
- 534
- Forks
- 95
- PR merge metrics
- No merged PRs in 30d
Description
while running pyimagej I get this error:
_ij_instance = imagej.init(FIJI_JAVA_HOME, mode='interactive')
imagentj-1 | File "/opt/conda/envs/local_imag_J/lib/python3.13/site-packages/imagej/__init__.py", line 1254, in init
imagentj-1 | raise RuntimeError("Failed to create a JVM with the requested environment.")
my AI agent told me this:
A fresh container tries to fetch net.imglib2:imglib2-imglyb:1.1.0
pyimagej/scyjava only looks at https://maven.scijava.org/content/groups/public
that request times out
then imagej.init(...) turns it into the generic RuntimeError: Failed to create a JVM with the requested environment.
maven still seems to be down, do you know how to fix this without relying on maven? The site has been up/down repeatetly during the past days
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at imagej/__init__.py around line 1254 and the imagej.init(...) entry point, then trace how scyjava resolves net.imglib2:imglib2-imglyb:1.1.0 through the Maven repository. Determine whether a supported offline or alternate-repository path can avoid the unavailable service; done means initialization succeeds without relying on the failing Maven endpoint.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100