Results 1 to 3 of 3

Thread: IcePy: some Glacier2 objects are not accessible when IceGrid module is imported

  1. #1
    vsevolod is offline Registered User
    Name: Vsevolod Fedorov
    Organization: "NTC Komset"
    Project: telecom monitoring (ss7,sigtran,etc) software
    Join Date
    Oct 2009
    Posts
    4

    IcePy: some Glacier2 objects are not accessible when IceGrid module is imported

    Hello.

    When I import Glacier2 module under python, all its objects can be accessed:
    Code:
    $ python
    >>> import Glacier2  
    >>> Glacier2.RouterPrx
    <class 'Glacier2.RouterPrx'>
    But when I import IceGrid module before Glacier2, I can not access some objects any more:
    Code:
     $ python
    >>> import IceGrid, Glacier2
    >>> Glacier2.RouterPrx
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    AttributeError: 'module' object has no attribute 'RouterPrx'
    Tested on Ice 3.3.1 under linux
    Last edited by vsevolod; 10-28-2009 at 06:32 AM. Reason: forgot to mention ice version

  2. #2
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    Thanks for the bug report. We'll look into fixing this for the upcoming Ice 3.4 release.

  3. #3
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    A work around for this bug, btw, is to import the modules in the opposite order.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. IceGrid objects, multiple endpoints
    By stephan in forum Help Center
    Replies: 4
    Last Post: 11-29-2009, 11:46 AM
  2. Replies: 2
    Last Post: 04-04-2008, 01:09 PM
  3. Replies: 3
    Last Post: 07-09-2007, 02:47 PM
  4. Multiple objects with IceGrid
    By lucsat in forum Help Center
    Replies: 3
    Last Post: 01-16-2007, 11:35 AM
  5. Replies: 4
    Last Post: 08-18-2005, 03:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •