CSAILVision / LabelMeAnnotationTool

Source code for the LabelMe annotation tool.
MIT License
1.38k stars 436 forks source link

Can't locate globalvariables.pl #1

Closed ghost closed 11 years ago

ghost commented 11 years ago

I set up the LableMe annotation tool on the local server. While browsing the tool, I am receiving the error "Unknown objXml.status" and unable to draw a polygon. Set up files are fine in concern with the possible causes mentioned in the README file. In the server error log, I found that globalvariables.pl is used in the perl scripts but it is not in the package. I was wondering if this file supposed to be in the labelme tool or is there a problem with perl installation?

Following is the snippet of the error log: "Can't locate globalvariables.pl in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /var/www/public/LabelMe/annotationTools/perl/get_anno_file.cgi line 2., referer: http://myServer.LabelMe/tool.html?collection=LabelMe&mode=f&folder=example_folder&image=img1.jpg"

ghost commented 11 years ago

The error was due to the missing file globalvariable.pl (in annotationTools/perl). Copy the globalvariable.pl.base as globlavariable.pl and initialize the LabelMe home directory variable "$LM_HOME" as a path to your LabelMe directory.

PS:I will suggest to add this information in README file.

daohu527 commented 5 years ago

Addition: If you use a docker and want to mount a volume, you should not use the entire "LabelMeAnnotationTool" dir. If you do this, you will receive the error "Fatal: there are problems with fetch_image.cgi"