Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Problem with import "from omniORB import CORBA, PortableServer"

Reply
Thread Tools

Problem with import "from omniORB import CORBA, PortableServer"

 
 
Stefan Seefeld
Guest
Posts: n/a
 
      04-11-2005
http://www.velocityreviews.com/forums/(E-Mail Removed) 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
 
Reply With Quote
 
 
 
 
gerald.maher@waytohere.com
Guest
Posts: n/a
 
      04-11-2005
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 ?

 
Reply With Quote
 
 
 
 
Steve Holden
Guest
Posts: n/a
 
      04-11-2005
(E-Mail Removed) 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/

 
Reply With Quote
 
gerald.maher@waytohere.com
Guest
Posts: n/a
 
      04-11-2005
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
logging in omniORB for python Birgit Rahm Python 4 12-17-2004 07:08 PM
(omniorb) Corba using with python Birgit Rahm Python 1 11-04-2004 01:15 PM
omniorb, python and callbacks Melissa Wallis Python 1 04-28-2004 02:47 PM
omniORB 4.0.3 and omniORBpy 2.3 available Duncan Grisby Python 4 12-01-2003 10:22 AM
omniORB 4.0.2 and omniORBpy 2.2 released Duncan Grisby Python 3 08-18-2003 09:26 AM



Advertisments