-
Notifications
You must be signed in to change notification settings - Fork 82
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
pyimagej image.init() FileNotFoundError: [Errno 2] No such file or directory: ~.m2/repository/io/scif/scifio-labeling/0.3.1/scifio-labeling-0.3.1.jar #278
Comments
@benwilks Sorry for the slow reply. Something went sideways trying to download the scifio-labeling library from Maven, and then when PyImageJ (via jgo) tried to include it in the environment, it didn't work because the With your pyimagej environment active, you can try to run:
We want to see where the local But you know, now that I wrote all this out, it actually might be something else going wrong: is it possible that Docker does not like the attempt to hard-link? From your log above, the attempt is:
which only works when the source and destination are on the same physical disk partition. Maybe Docker does not like hard links in general? I'm not sure, but you can try adding the following configuration step to your script: echo "[settings]" >> ~/.jgorc
echo "links = soft" >> ~/.jgorc which will change jgo's preferred behavior from hard links ( Happy to help advise further if you are still stuck. Let me know whether any of the above ideas enable any progress. |
One other thing: I just stumbled over #280, which is likely to bite you right now since you are also trying to build a wrapped local Fiji installation. In the meantime, you might want to consider using |
Finally, if you have sufficient Python programming experience, and you are able to figure this out, it would be awesome if you could think about how to improve the |
I have also come across this error. Please refer to the following for the error. The cause is that I set
Solution: Modify line 17 in the file |
@zhozhe Thanks for the report and workaround! It should also be possible to override the m2 repository without changing the code as follows: import scyjava.config
scyjava.config.set_m2_repo("D:/Maven-Repository") If it doesn't work for you, please let me know! P.S. in looking into this, I noticed some jankiness at the scyjava and jgo levels around this issue; see scijava/scyjava#69 for details. |
@benwilks Did you ever overcome the problems and get PyImageJ working in Docker? I'd like to close this issue if possible of course, but if there's something that needs to be done on the PyImageJ side, let us know! |
Hi,
I'm having trouble running pyimagej image.init() installed with conda/mamba in a docker container.
Importing imagej works but when i run:
I get the following error related to
Running ImageJ doctor doesn't show any problems
The text was updated successfully, but these errors were encountered: