[omniORB] New user with Windows XP, omniORB-4.0.7 and Python2.4

Hunt, Dave Dave.Hunt at uk.thalesgroup.com
Tue Mar 21 14:20:03 GMT 2006


Dear all,

I have a problem with the idl compiler.

I have just downloaded the  omniORB-4.0.7 binaries onto my XP machine, along
with Python 2.4,
I've setup the env vars thus :-

OMNINAMES_LOGDIR=C:\omniORB-4.0.7
OMNIORB_CONFIG=C:\omniORB-4.0.7\omniORB.cfg
PYTHONPATH=C:\Python24;C:\Python24\Lib;C:\Python24\DLLs;C:\Python24\Lib\lib-
tk

I've added these to my path :-
;C:\omniORB-4.0.7\bin\x86_win32;C:\Python24;C:\omniORB-4.0.7\src\tool\omniid
l\python\scripts

I copied the sample.cfg to omniORB.cfg and added in my host details.
I copied the sample.reg to omniORb.reg similarly and ran it in to the
registry.

My problem came when I tried to run the idl compiler with the echo example
code.
Running from the command line gives this error :-

==============
C:\omniORB-4.0.7\src\tool\omniidl\python\scripts>omniidl -v -bcxx
-C"C:\\omniORB-4.0.7\\src\\examples\\ssl_echo" -Wbh=.h -Wbs=SK
.cpp -Wbd=DynSK.cpp -Wba-Wbtp -Wbuse_quotes
-I"C:\\omniORB-4.0.7\\src\\examples\\ssl_echo"
"C:\\omniORB-4.0.7\\src\\examples\\ss
l_echo\\echo.idl"
'import site' failed; use -v for traceback
Traceback (innermost last):
  File "<string>", line 1, in ?
  File "C:\Python24\Lib\os.py", line 38
    return [n for n in dir(module) if n[0] != '_']
                ^
SyntaxError: invalid syntax
===============

When running from inside python, it gives a different error

===============
C:\omniORB-4.0.7\src\tool\omniidl\python\scripts>python
Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import omniidlrun


omniidl: ERROR!

omniidl: Could not open IDL compiler module _omniidlmodule.so
omniidl: Please make sure it is in directory
C:\omniORB-4.0.7\src\tool\omniidl\python\scripts
omniidl: (or set the PYTHONPATH environment variable)

omniidl: (The error was 'No module named _omniidl')
===============

I was told that I needed cygwin, although I'm not sure why. This gives the
same errors.
Have you any ideas ? Is there an incompatibility between Python2.4 and
omniORB-4.0.7-win32-vc6 ?

Thanks,

Dave Hunt




More information about the omniORB-list mailing list