Problem with import "from omniORB import CORBA, PortableServer"

Discussion in 'Python' started by Stefan Seefeld, Apr 11, 2005.

  1. wrote:
    > 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


    this looks like *really* old (and obsolete) stuff...

    > omniORBpy 2.5
    > omniORB 4.0.5
    > Python 2.4.1


    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
     
    Stefan Seefeld, Apr 11, 2005
    #1
    1. Advertising

  2. Stefan Seefeld

    Guest

    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:\omniORBpy-2.5-win32-python2.3\omniORBpy-2.5\examples\echoMyTest\example_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\\omniORBpy-2.5\\examples\\echoMyTest',
    'C:\\omniORB\\omniORB-4.0.3\\lib\\python',
    'C:\\omniORB\\omniORB-4.0.3\\lib\\x86_win32',
    'C:\\WINNT\\system32\\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\\pythonwin',
    '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\\omniORBpy-2.5\\examples\\echoMyTest',
    'C:\\omniORB\\omniORB-4.0.3\\lib\x86_win32',
    'C:\\omniORB\\omniORB-4.0.3\\lib\x86_win32']

    What am i doing wrong ?
     
    , Apr 11, 2005
    #2
    1. Advertising

  3. Stefan Seefeld

    Steve Holden Guest

    wrote:
    > 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:\omniORBpy-2.5-win32-python2.3\omniORBpy-2.5\examples\echoMyTest\example_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\\omniORBpy-2.5\\examples\\echoMyTest',
    > 'C:\\omniORB\\omniORB-4.0.3\\lib\\python',
    > 'C:\\omniORB\\omniORB-4.0.3\\lib\\x86_win32',
    > 'C:\\WINNT\\system32\\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\\pythonwin',
    > '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\\omniORBpy-2.5\\examples\\echoMyTest',
    > 'C:\\omniORB\\omniORB-4.0.3\\lib\x86_win32',
    > 'C:\\omniORB\\omniORB-4.0.3\\lib\x86_win32']
    >
    > What am i doing wrong ?
    >

    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/
     
    Steve Holden, Apr 11, 2005
    #3
  4. Stefan Seefeld

    Guest

    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\omniORBpy-2.5\examples\echo\example_echo_coloc.py

    Ciao
    Gerald
     
    , Apr 11, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Paul Opal
    Replies:
    12
    Views:
    973
    Paul Opal
    Oct 11, 2004
  2. JPractitioner
    Replies:
    13
    Views:
    20,189
    Roedy Green
    Feb 24, 2006
  3. Vitali Gontsharuk
    Replies:
    2
    Views:
    578
    Vitali Gontsharuk
    Aug 25, 2005
  4. Artur M. Piwko

    import/from import question

    Artur M. Piwko, Jun 29, 2003, in forum: Python
    Replies:
    1
    Views:
    859
    Peter Hansen
    Jul 2, 2003
  5. per9000
    Replies:
    7
    Views:
    421
    Magnus Lycka
    Feb 27, 2006
Loading...

Share This Page