software-mentions icon indicating copy to clipboard operation
software-mentions copied to clipboard

Unable to access jarfile

Open scottkerr-dataseer opened this issue 2 years ago • 4 comments

I am getting this error message:

scott@:~$ docker run --rm --gpus all -it -p 8060:8060 grobid/software-mentions:0.7.3-SNAPSHOT Error: Unable to access jarfile build/libs/software-mentions--onejar.jar

I was able to run 0.7.1 without difficulty.

scottkerr-dataseer avatar May 05 '23 17:05 scottkerr-dataseer

Hello @scottkerr-dataseer !

Thanks for the issue.

Did you rebuild this image or use the DockerHub image?

kermitt2 avatar May 05 '23 18:05 kermitt2

I used the downloaded image. I can try building if you want. But I don't normally build in Java (yet).

On Fri, May 5, 2023 at 2:37 PM Patrice Lopez @.***> wrote:

Hello @scottkerr-dataseer https://github.com/scottkerr-dataseer !

Thanks for the issue.

Did you rebuild this image or use the DockerHub image?

— Reply to this email directly, view it on GitHub https://github.com/softcite/software-mentions/issues/24#issuecomment-1536630696, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6BQL65ZQSNKTSNWIUCP3YTXEVCEZANCNFSM6AAAAAAXXL5W6U . You are receiving this because you were mentioned.Message ID: @.***>

scottkerr-dataseer avatar May 05 '23 20:05 scottkerr-dataseer

No it's just to know where the problem comes from. The version tag is missing in the library name (0.7.3-SNAPSHOT) inside the image, it should be build/libs/software-mentions-0.7.3-SNAPSHOT-onejar.jar.

If I remember well, I tested this image present on DockerHub and I used it a few times, so it's strange. This docker hub image is running also on HuggingFace space, although it times out because there is no GPU in this demo.

Anyway I suspect a problem with env and local --build-arg variable in the docker build. I have updated the image on DockerHub so if you pull the new version, the version tag is now forced.

kermitt2 avatar May 06 '23 12:05 kermitt2

This should be solved with #38

lfoppiano avatar Nov 21 '24 07:11 lfoppiano