Problem with import "from omniORB import CORBA, PortableServer"

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

    #1

    Problem with import "from omniORB import CORBA, PortableServer"

    Hi,

    I am trying to excuate the follwong code:

    [
    import sys
    from omniORB import CORBA, PortableServer
    ]

    I get the following error:
    [
    Traceback (most recent call last):
    File
    "C:\omniORB py-2.5-win32-python2.3\omniO RBpy-2.5\examples\ec hoMyTest\exampl e_echo_coloc.py ",
    line 9, in ?
    from omniORB import CORBA, PortableServer
    ImportError: No module named omniORB
    ]

    Here is my Lib path:
    ['C:\\omniORBpy-2.5-win32-python2.3\\omni ORBpy-2.5\\examples\\ echoMyTest',
    'C:\\omniORB\\o mniORB-4.0.3\\lib\\pyt hon',
    'C:\\omniORB\\o mniORB-4.0.3\\lib\\x86 _win32',
    'C:\\WINNT\\sys tem32\\python24 .zip', 'C:\\Python24',
    'C:\\Python24\\ DLLs', 'C:\\Python24\\ lib',
    'C:\\Python24\\ lib\\plat-win', 'C:\\Python24\\ lib\\lib-tk',
    'C:\\Python24\\ Lib\\site-packages\\pytho nwin',
    'C:\\Python24\\ lib\\site-packages',
    'C:\\Python24\\ lib\\site-packages\\win32 ',
    'C:\\Python24\\ lib\\site-packages\\win32 \\lib',
    'C:\\omniORBpy-2.5-win32-python2.3\\omni ORBpy-2.5\\examples\\ echoMyTest',
    'C:\\omniORB\\o mniORB-4.0.3\\lib\x86_ win32',
    'C:\\omniORB\\o mniORB-4.0.3\\lib\x86_ win32']

    What am i doing wrong ?

  • Steve Holden

    #2
    Re: Problem with import "from omniORB import CORBA, PortableServer& quot;

    gerald.maher@wa ytohere.com wrote:[color=blue]
    > Hi,
    >
    > I am trying to excuate the follwong code:
    >
    > [
    > import sys
    > from omniORB import CORBA, PortableServer
    > ]
    >
    > I get the following error:
    > [
    > Traceback (most recent call last):
    > File
    > "C:\omniORB py-2.5-win32-python2.3\omniO RBpy-2.5\examples\ec hoMyTest\exampl e_echo_coloc.py ",
    > line 9, in ?
    > from omniORB import CORBA, PortableServer
    > ImportError: No module named omniORB
    > ]
    >
    > Here is my Lib path:
    > ['C:\\omniORBpy-2.5-win32-python2.3\\omni ORBpy-2.5\\examples\\ echoMyTest',
    > 'C:\\omniORB\\o mniORB-4.0.3\\lib\\pyt hon',
    > 'C:\\omniORB\\o mniORB-4.0.3\\lib\\x86 _win32',
    > 'C:\\WINNT\\sys tem32\\python24 .zip', 'C:\\Python24',
    > 'C:\\Python24\\ DLLs', 'C:\\Python24\\ lib',
    > 'C:\\Python24\\ lib\\plat-win', 'C:\\Python24\\ lib\\lib-tk',
    > 'C:\\Python24\\ Lib\\site-packages\\pytho nwin',
    > 'C:\\Python24\\ lib\\site-packages',
    > 'C:\\Python24\\ lib\\site-packages\\win32 ',
    > 'C:\\Python24\\ lib\\site-packages\\win32 \\lib',
    > 'C:\\omniORBpy-2.5-win32-python2.3\\omni ORBpy-2.5\\examples\\ echoMyTest',
    > 'C:\\omniORB\\o mniORB-4.0.3\\lib\x86_ win32',
    > 'C:\\omniORB\\o mniORB-4.0.3\\lib\x86_ win32']
    >
    > What am i doing wrong ?
    >[/color]
    Well it look like you might be trying to use an OminORB from Python 2.3
    with Python 2.4, though I couldn't swear to it.

    regards
    Steve
    --
    Steve Holden +1 703 861 4237 +1 800 494 3119
    Holden Web LLC http://www.holdenweb.com/
    Python Web Programming http://pydish.holdenweb.com/

    Comment

    • gerald.maher@waytohere.com

      #3
      Re: Problem with import "from omniORB import CORBA, PortableServer& quot;

      Thank for the reply, I think your right my problem is the what version
      to us, I want to write some Python scripts calling Corba Objects what
      do i need ?

      omnipython-1.5.2-1
      omniORBpy 2.5
      omniORB 4.0.5
      Python 2.4.1


      Is this correct ? i want to excuat the example
      C:\omniORBpy-2.5-win32-python2.3\omniO RBpy-2.5\examples\ec ho\example_echo _coloc.py

      Ciao
      Gerald

      Comment

      • Stefan Seefeld

        #4
        Re: Problem with import "from omniORB import CORBA, PortableServer& quot;

        gerald.maher@wa ytohere.com wrote:[color=blue]
        > Thank for the reply, I think your right my problem is the what version
        > to us, I want to write some Python scripts calling Corba Objects what
        > do i need ?
        >
        > omnipython-1.5.2-1[/color]

        this looks like *really* old (and obsolete) stuff...
        [color=blue]
        > omniORBpy 2.5
        > omniORB 4.0.5
        > Python 2.4.1[/color]

        These look fine. Make sure to either have a binary package for omniORBpy
        that was compiled for the version of python you are actually using, or
        alternatively compile it yourself.

        HTH,
        Stefan

        Comment

        Working...