[omniORB] omniORBpy on HP-UX11 & python 2.2 - how to import _omnipy

bjorn rohde jensen shamus@tdcadsl.dk
Fri, 12 Apr 2002 10:56:27 +0200


Hi Ville,

 It is not unlikely, that you will get into trouble trying to
(runtime) link code from different compilers. If it is plain
vanilla C code, you have a fairly good chance of it working,
but i would recommend you rebuild omniORB+omniORBpy using aCC
or rebuild python using gcc.

Yours sincerely,

bjorn

ville.vainio@swisslog.com wrote:
> 
> I built omniORBpy on HP-UX11, over the omniORB binary distribution from
> the website. (I changed the python to use in
> /omni/mk/platforms/hppa_hpux_11.00.mk to point to my python 2.2)
> 
> I can see _omnipymodule.sl.0.5 in omni/src/lib/omniORBpy/modules, but
> going there and doing
> 
> >>> import _omnipy
> 
> ImportError: No module named _omnipy
> 
> I go ahead and
> 
> cp _omnipymodule.sl.0.5 _omnipymodule.sl
> 
> And try to import again:
> 
> >>> import _omnipy
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> ImportError: Failed to load _omnipymodule.sl.
> 
> omniORBpy was built with aCC, python with gcc - is this a problem?
> 
> -- Ville