-
Notifications
You must be signed in to change notification settings - Fork 438
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
Can't return outside a subroutine at ./LabelMe/annotationTools/perl/fetch_image.cgi #87
Comments
Try the dockerfile |
That's weird could be some permission issues. Kindly try this dockerfile from my repo. Just a caution. Use your username in the dockerfile, since I am mapping it to volumes outside docker we will loose the default example images given with this repo( will raise error with fetch image cgi), manually add the example folder and the corresponding dirlist to the respective folders. |
I did finally get a different docker container to work (I had used the one
from your github repo initially before realizing there was a container in
the LabelMeAnnotationTool repo). I believe the issue may be at least in
part caused by relative path issues - when putting files in ./Images/ and
generating a collection, the path used for the links is ../../Images. When
this is changed to ../Images instead (in the URL), the image suddenly
appears and the perl errors go away. I solved the issue in the docker
container that I got working by copying the images from
/var/www/html/LabelMeAnnotationTool/Images/ to /var/www/html/Images. With
the images in both places, the app works.
I think initially when I was trying to make this work without docker, there
were two issues - one is that the polygon tool never actually displayed
anything (so likely an issue with SVG) and the other was the same path
issue I encountered in docker.
I'm still not sure how to fix the issue with the polygon tool, but at least
I have it working now.
…On Fri, Jun 8, 2018 at 12:18 PM, Abhijit Balaji ***@***.***> wrote:
That's weird. Could you give more info on your error?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#87 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACB1FSqlaRq6dPU-nMWGCTXypYXX80Dgks5t6rHdgaJpZM4Ue4Hv>
.
|
Ok the problem why it raises this error when using the dockerfile from my repo is because all the example images are lost while mapping the volumes. Just manually add the example_images folder and it's dirlist in their corresponding folders and it will work. I recommend using the dockerfile from my repo instead of the one in this repo is because,
I have given a pull request to correct both of them, but unfortunately they are yet to merge it. So I recommend using the file from my repo, use the sh scripts so that you can set-up without much effort. Let me know of any problems there. |
TL; DR contribution: The directory containing the collection subdirectories is correctly mounted at /var/www/html/LabelMeAnnotationTool/Images/. In order to create the collection list for images located at /var/www/html/LabelMeAnnotationTool/Images/foo i would normally run this command: |
@srvanderplas I think you are affected by what I describe in my previous comment given that your URL https://localhost/LabelMe/tool.html?collection=Shoes&mode=i&folder=Shoes&image=image.jpg |
To continue the story that I started, I have also found out that when running the populate_dirlist.sh script and giving the name of the list with non-lower case letters, the collection will be retrieved incorrectly in the URL . |
Ubuntu 18.04 |
oops. i had the same message and posted #110 The good news is that the error has nothing to do with docker. It is wrong perl code. |
Ubuntu 16.04 LTS. Install went ok, all apache mods required have been enabled. Image appears on page load, but then the page returns an error: Fatal: there are problems with fetch_image.cgi
Apache logs show the following:
[Thu Jun 07 13:07:41.886343 2018] [cgi:error] [pid 1427] [client 127.0.0.1:44032] AH01215: [Thu Jun 7 13:07:41 2018] fetch_image.cgi: Can't return outside a subroutine at LabelMe/annotationTools/perl/fetch_image.cgi line 49.: LabelMe/annotationTools/perl/fetch_image.cgi, referer: https://localhost/LabelMe/tool.html?collection=Shoes&mode=i&folder=Shoes&image=image.jpg
I've installed libcgi-session-perl and restarted Apache, but that didn't do much of anything.
Any other suggestions?
The text was updated successfully, but these errors were encountered: