[omniORB] omniORBpy newbe question re:omniidl

Carlson, Jeffrey F jeffrey_f_carlson@cambridge.pfizer.com
Fri, 27 Jul 2001 09:31:09 -0400


Duncan,

Works great - thanks very much.

Cheers,
Jeff C.

P.S. python.org seems to recommend that one get the ActiveState build of
Python if you're on Windowz.

-----Original Message-----
From: Duncan Grisby [mailto:dgrisby@uk.research.att.com]
Sent: Friday, July 27, 2001 7:53 AM
To: Carlson, Jeffrey F
Cc: 'omniorb-list@uk.research.att.com'
Subject: Re: [omniORB] omniORBpy newbe question re:omniidl 


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 --