Python 2.7 Hugin Scripting Interface

418 views
Skip to first unread message

Greg Castanon

unread,
Dec 2, 2015, 1:49:05 PM12/2/15
to hugin and other free panoramic software
I'm an amateur programmer screwing around with python and was looking to do some video stabilization using the camocomp (https://pypi.python.org/pypi/camocomp/0.1) package.  I am using Windows 10, 64-bit and Python 2.7.  Camocomp uses the hugin scripting interface (hsi).

I would love to get to the point where I can import hsi in python.  Here's where I am:

1.) I grabbed the latest version from (http://sourceforge.net/projects/hugin/files/latest), and verified that hugin itself runs (it does).
2.) Copied Hugin\bin\hsi.py to Python\Lib\site-packages, along with _hsi.pyd (for good measure)
3.) Added Hugin\bin to PATH variable

I run into this error when trying to import hsi:

>>> import hsi
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "hsi.py", line 28, in <module>
    _hsi = swig_import_helper()
  File "hsi.py", line 24, in swig_import_helper
    _mod = imp.load_module('_hsi', fp, pathname, description)
ImportError: DLL load failed: The specified module could not be found.

Any help that you gentlemen could give would be much appreciated.  If the issue is that I need to have precompiled .dlls for python 2.7, which I suspect it might be...I don't suppose anybody has them hanging around for Windows 64-bit?

Thanks all.

-Greg

Jeff

unread,
Dec 7, 2015, 7:48:04 PM12/7/15
to hugin and other free panoramic software
Pretty sure you need Python 3.4 with the latest (2015.0.0) version of Hugin. See the 'Pre-compiled versions' section of: http://hugin.sourceforge.net/download/

-Jeff
Reply all
Reply to author
Forward
0 new messages