[omniORB] omniORBpy newbe question re:omniidl
Duncan Grisby
dgrisby@uk.research.att.com
Fri, 27 Jul 2001 12:53:11 +0100
On Thursday 26 July, "Carlson, Jeffrey F" wrote:
> ActiveState Python 2.1 build 211
I've never tried ActiveState's Python, so that might be the root of
the problem.
> When I execute the idl compiler like so:
> [c:\omni\examples\echo] omniidl -bpython echo.idl
>
> I get this:
> omnicpp -lang-c++ -undef -D__OMNIIDL__=0x2301 -D__OMNIIDL_PYTHON__
> echo.idl:1: Syntax error in definition
> omnicpp -lang-c++ -undef -D__OMNIIDL__=0x2301 -D__OMNIIDL_PYTHON__
> echo.idl:2: Syntax error in definition
> echo.idl:2: Syntax error in definition
> omniidl: 3 errors.
My guess is that ActivePython doesn't support os.popen properly, so
it's echoing commands rather than executing them.
Try running
omniidl -T -bpython echo.idl
That uses a temporary file rather than a pipe, so it might work
better.
Cheers,
Duncan.
--
-- Duncan Grisby \ Research Engineer --
-- AT&T Laboratories Cambridge --
-- http://www.uk.research.att.com/~dpg1 --