Archived

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

Ice in debian + python2.4

Hi, i install ICE in my ubuntu (Ubuntu breesy, python2.4), pass rpm to deb, when proving the examples of capito "3,7 Writing an Ice Application with Python", obtained east error:

=======================================================
>python -u Client.py
Traceback (most recent call last):
File "Client.py", line 14, in ?
printer = Demo.PrinterPrx.checkedCast(base)
File "/home/miuler/Personal/practicas/programacion/python/Ice/Printer_ice.py", line 48, in checkedCast
return _M_Demo.PrinterPrx.ice_checkedCast(proxy, '::Demo::Printer', facet, _ctx)
ConnectionRefusedException: Ice.ConnectionRefusedException:
Connection refused
>Exit code: 1
==========================================================
>python -u Server.py
Traceback (most recent call last):
File "Server.py", line 16, in ?
adapter = ic.createObjectAdaperWithEndPoints ("SimplePrinterAdapter", "default -p 10000")
AttributeError: 'CommunicatorI' object has no attribute 'createObjectAdaperWithEndPoints'
>Exit code: 1
==========================================================

it exists some plans to have binary for debian/ubuntu?

Comments

  • marc
    marc Florida
    Please see this post regarding our support policy here on these forums:

    http://www.zeroc.com/vbulletin/showthread.php?t=1697
  • Miuler wrote:
    >python -u Client.py
    Traceback (most recent call last):
    File "Client.py", line 14, in ?
    printer = Demo.PrinterPrx.checkedCast(base)
    File "/home/miuler/Personal/practicas/programacion/python/Ice/Printer_ice.py", line 48, in checkedCast
    return _M_Demo.PrinterPrx.ice_checkedCast(proxy, '::Demo::Printer', facet, _ctx)
    ConnectionRefusedException: Ice.ConnectionRefusedException:
    Connection refused

    A ConnectionRefusedException indicates that no server is listening at the port that the client is trying to connect to.
    >python -u Server.py
    Traceback (most recent call last):
    File "Server.py", line 16, in ?
    adapter = ic.createObjectAdaperWithEndPoints ("SimplePrinterAdapter", "default -p 10000")
    AttributeError: 'CommunicatorI' object has no attribute 'createObjectAdaperWithEndPoints'

    You have two typos in the method name: it should be createObjectAdapterWithEndpoints, not createObjectAdaperWithEndPoints.

    That's probably the reason for the client getting the ConnectionRefusedException: the server never gets off the ground, so the client gets a failure as well.

    Cheers,

    Michi.
  • Thanks.

    Thanks, python OK