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

Corrado Giacomini Corrado.Giacomini@trema.com
Fri, 12 Apr 2002 11:33:44 +0200


on HPUX11.00 I had a similar problem using omniidl.
when  omniidl try to import the  _omniidl
module gives exactly the same error messages if _omniidlmodule.sl
library does not have execution permissions. trav to cheange them to "755"

-Corrado


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
>