This forum has been archived. Please start a new discussion on GitHub.

"error return without exception set" when Ice.ImplicitContext not set in IcePy

The exception thrown when getImplicitContext() is called without "Ice.ImplicitContext" set is somewhat confusing. With a blank ICE_CONFIG environment variable:
$ python
Python 2.4.5 (#1, Jul  4 2008, 21:52:53) 
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import Ice, IcePy
>>> IcePy.stringVersion()
>>> ic = Ice.initialize()
>>> ic.getImplicitContext()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/", line 330, in getImplicitContext
    return ImplicitContextI(self._impl.getImplicitContext())
SystemError: error return without exception set
>>> Ice.InitializationData()
<Ice.InitializationData object at 0x5a670>
>>> id = Ice.InitializationData()
>>> = Ice.createProperties()
>>> ic = Ice.initialize(id)
>>> ic.getImplicitContext()
object #0 (::Ice::ImplicitContext)


  • matthew
    matthew NL, Canada
    Thanks for the report. This appears to be a bug in the python plug-in. We'll address it in the next Ice release.