softcite / software-mentions

Softcite software mention recognizer, finding mentions and citations to software from within the academic literature
Apache License 2.0
68 stars 11 forks source link

Unable to access jarfile #24

Open scottkerr-dataseer opened 1 year ago

scottkerr-dataseer commented 1 year ago

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.

kermitt2 commented 1 year ago

Hello @scottkerr-dataseer !

Thanks for the issue.

Did you rebuild this image or use the DockerHub image?

scottkerr-dataseer commented 1 year ago

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: @.***>

kermitt2 commented 1 year ago

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.