Hi

2011/2/14 kfj <[email protected]>

>
> - Open a shell prompt
> - set your PYTHONPATH environment variable to the target directory
> where cmake has placed hsi.py and _hsi.so
>  (like, type export PYTHONPATH=<whatever that path is>)
> - start a python interpreter session by typing 'python'
> - at the python prompt, type 'import hsi'
>
>
cmake hadn't installed it. So I had to set the python path to the cmake
build folder.

I got the following error upon importing:
$ python
Python 2.6.6 (r266:84292, Dec 27 2010, 17:46:10)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import hsi
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "hsi.py", line 25, in <module>
    _hsi = swig_import_helper()
  File "hsi.py", line 21, in swig_import_helper
    _mod = imp.load_module('_hsi', fp, pathname, description)
ImportError: dlopen(./_hsi.so, 2): no suitable image found.  Did find:
    ./_hsi.so: mach-o, but wrong architecture
>>>


The "./_hsi.so: mach-o, but wrong architecture" is is a weird error. The
_hsi.so is an i386 library like all the rest.

Harry

-- 
You received this message because you are subscribed to the Google Groups 
"Hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx

Reply via email to