bundler_sfm icon indicating copy to clipboard operation
bundler_sfm copied to clipboard

OSError: [Errno 8] Exec format error on Mac OSX

Open isaactian opened this issue 8 years ago • 3 comments

I get this error when running bundler.py on Mac OSX:

Isaacs-MacBook-Pro:mvsjpeg iytian$ python ~/bundler_sfm-master/utils/bundler.py --no-parallel Traceback (most recent call last): File "/Users/iytian/bundler_sfm-master/utils/bundler.py", line 646, in run_bundler(verbose=args.verbose, parallel=not args.no_parallel) File "/Users/iytian/bundler_sfm-master/utils/bundler.py", line 603, in run_bundler key_files = sift_images(images, parallel=parallel, verbose=verbose) File "/Users/iytian/bundler_sfm-master/utils/bundler.py", line 475, in sift_images key_filenames.append(sift_image(image, verbose=verbose)) File "/Users/iytian/bundler_sfm-master/utils/bundler.py", line 438, in sift_image stderr=fp_err) File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 522, in call return Popen(*popenargs, **kwargs).wait() File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in init errread, errwrite) File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child raise child_exception OSError: [Errno 8] Exec format error

Is the SIFT binary incompatible on Mac OSX?

isaactian avatar Jan 04 '17 05:01 isaactian

Yes, the version of SIFT on David Lowe's webpage only comes precompiled for Linux or Windows.

Maybe you can try compiling this code?

https://sourceforge.net/projects/libsift/files/libsiftfast/

The one difference in the output format from Lowe's SIFT is that I believe this outputs the x-coordinate of a SIFT feature first, rather than the y-coordinate. The code could be easily modified to replicate Lowe's SIFT format.

Noah

On Tue, Jan 3, 2017 at 9:22 PM Isaac Tian [email protected] wrote:

I get this error when running bundler.py on Mac OSX:

Isaacs-MacBook-Pro:mvsjpeg iytian$ python ~/bundler_sfm-master/utils/bundler.py --no-parallel Traceback (most recent call last): File "/Users/iytian/bundler_sfm-master/utils/bundler.py", line 646, in run_bundler(verbose=args.verbose, parallel=not args.no_parallel) File "/Users/iytian/bundler_sfm-master/utils/bundler.py", line 603, in run_bundler key_files = sift_images(images, parallel=parallel, verbose=verbose) File "/Users/iytian/bundler_sfm-master/utils/bundler.py", line 475, in sift_images key_filenames.append(sift_image(image, verbose=verbose)) File "/Users/iytian/bundler_sfm-master/utils/bundler.py", line 438, in sift_image stderr=fp_err) File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 522, in call return Popen(*popenargs, **kwargs).wait() File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in init errread, errwrite) File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child raise child_exception OSError: [Errno 8] Exec format error

Is the SIFT binary incompatible on Mac OSX?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/snavely/bundler_sfm/issues/42, or mute the thread https://github.com/notifications/unsubscribe-auth/ABt6q9kEdYW15ra2r7o-b0E6_TjlfAoZks5rOyyVgaJpZM4LaTJU .

--


Noah Snavely Associate Professor Email: [email protected] Dept. of Computer Science Phone: (607) 255 4280 Cornell University URL : www.cs.cornell.edu/~snavely 307 Gates Hall Ithaca, NY 14853

snavely avatar Jan 04 '17 05:01 snavely

Thanks I'll give it a look. Bundler itself compiles fine. Are there any plans to make a Mac compatible sift binary available on this repo?

EDIT:

from the README:

"The default setting of siftfast produce the same output as Lowe's free sift program. On a quad-core Core2Duo machine with OpenMP, siftfast goes about 6x faster than lowe's sift program for 640x480 images."

So it should be the same?

isaactian avatar Jan 04 '17 19:01 isaactian

PSA: The sift link from Noah won't compile on Mac OSX clang, see the link below:

http://clang.llvm.org/compatibility.html#vector_builtins

Download the builtins.py script and run builtins *.cpp *.h and it will compile

isaactian avatar Jan 04 '17 20:01 isaactian