Missing Module when calling 'Import' _omnipy

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gerald.maher@waytohere.com

    #1

    Missing Module when calling 'Import' _omnipy

    I am trying to run an Corba example using Python and i get the follwing
    error:


    import _omnipy
    ImportError: No module named _omnipy

    Where can i find this Module ?

  • Stefan Seefeld

    #2
    Re: Missing Module when calling 'Import' _omnipy

    gerald.maher@wa ytohere.com wrote:[color=blue]
    > I am trying to run an Corba example using Python and i get the follwing
    > error:
    >
    >
    > import _omnipy
    > ImportError: No module named _omnipy
    >
    > Where can i find this Module ?[/color]

    This is an extension module (i.e. the file is named _omnipy.so or _omnipy.dll, I believe),
    and it is in the library path, not the python path. Thus you will have to add the library
    path to the PYTHONPATH variable.
    For details see http://omniorb.sourceforge.net/omnip...y001.html#toc2
    or the omniORB specific mailing list.

    HTH,
    Stefan


    Comment

    • gerald.maher@waytohere.com

      #3
      Re: Missing Module when calling 'Import' _omnipy

      *_omnipy is Missing*

      I have searched my C drive can not find any file called *_omnipy.so or
      ..dll where do I get it from ?
      I found the fike _omnipy.pyd is that what you mean?


      Here is my Lib Path:
      [color=blue][color=green][color=darkred]
      >>>[/color][/color][/color]
      ['C:\\omniORBpy-2.5-win32-python2.3\\omni ORBpy-2.5\\examples\\ echoMyTest',
      'C:\\WINNT\\sys tem32\\python23 .zip', 'C:\\Python23',
      'C:\\Python23\\ DLLs', 'C:\\Python23\\ lib',
      'C:\\Python23\\ lib\\plat-win', 'C:\\Python23\\ lib\\lib-tk',
      'C:\\Python23\\ Lib\\site-packages\\pytho nwin',
      'C:\\Python23\\ lib\\site-packages',
      'C:\\Python23\\ lib\\site-packages\\win32 ',
      'C:\\Python23\\ lib\\site-packages\\win32 \\lib',
      'C:\\omniORBpy-2.5-win32-python2.3\\omni ORBpy-2.5\\examples\\ echoMyTest',
      'C:\\omniORBpy-2.5-win32-python2.3\\omni ORBpy-2.5\\lib\\pytho n',
      'C:\\omniORBpy-2.5-win32-python2.3\\omni ORBpy-2.5\\lib\x86_wi n32',
      'C:\\omniORB\\o mniORB-4.0.5\\omniORB-4.0.5\\lib\\pyt hon\\omniidl',
      'C:\\omniORB\\o mniORB-4.0.5\\omniORB-4.0.5\\lib\x86_ win32']

      Comment

      • Stefan Seefeld

        #4
        Re: Missing Module when calling 'Import' _omnipy

        gerald.maher@wa ytohere.com wrote:
        [color=blue]
        > I found the fike _omnipy.pyd is that what you mean?[/color]

        yep.
        [color=blue]
        > Here is my Lib Path:[/color]

        [...]

        As a first step you may consider adding the directory containing '_omnipy.pyd'
        to your PYTHONPATH variable. Second, you may read any documentation you can
        find at http://omniorb.sourceforge.net/, and finally ask any unanswered question
        on the omniORB ML.
        Sorry, it has been a long while since I last used omniORB.

        Regards,
        Stefan

        Comment

        Working...