[omniORB] problem with incomplete python packages

Paul Brannan paul@atdesk.com
Tue, 22 Jan 2002 11:07:57 -0500


This message was returned to me last time I tried to send it.  Hopefully
it will work this time.

Using OmniORB 3.04, OmniORBpy 1.4, Python 2.1.1, and omniidl 1.0.

I have a file Foo.idl:

  #include "Bar.idl"

  module Foo
  {
    interface Foo_i
    {
      void foo(in Bar::Bar_i b);
    };
  };

I also have a file Bar.idl:

  module Bar
  {
    interface Bar_i
    {
      void bar();
    };
  };

I compile them with:

  omniidl -bpython Bar.idl
  omniidl -bpython Foo.idl

Now, if I run this script:

  import Foo
  import Bar

  print dir(Foo)
  print dir(Bar)

Then I get this output:

  ['Foo_i', 'Foo_idl', '__builtins__', '__doc__', '__file__', '__name__', '__path__', '_d_Foo_i', '_objref_Foo_i', '_tc_Foo_i']
  ['Bar_i', '__doc__', '__name__', '_d_Bar_i', '_objref_Bar_i', '_tc_Bar_i']

But if I run this script:

  # import Foo
  import Bar

  # print dir(Foo)
  print dir(Bar)

Then I get this output:

  ['Bar_i', 'Bar_idl', '__builtins__', '__doc__', '__file__', '__name__', '__path__', '_d_Bar_i', '_objref_Bar_i', '_tc_Bar_i']

Why are some items missing from the Bar's directory in the first case?

In this simple test, the items that are missing are not important, but
in my real-life case, I am missing an entire IDL interface.  Any ideas?

TIA,

Paul Brannan
paul@atdesk.com




----- End forwarded message -----