PyBrenda Updates and some Problems

Carlos Moreira duduca007 at yahoo.com
Tue Sep 24 18:04:07 EDT 2002


Ok, I found the problem again...:))))

for curious people:

Brenda.py: 285 line
host = socket.gethostbyname( socket.gethostname() )

Of course, primarily, this was for my personal use....
and before show this code for people I must to talk
with PyBrenda's author....

	[]'s

Cadu Moreira
KaduSoft President
-----------------------
[......]


--- 
Carlos Moreira <duduca007 at yahoo.com> wrote:
> Hi,
> 
> 	I did some updates in PyBrenda for my particular
> use:
> 
> Brenda.py
> old: sock.connect(host, port)
> new: sock.connect(host, port)
> 
> old: sock.bind(host, port)
> new: sock.bind((host, port))
> 
> old: command = ('rsh ' +
> self._nodelist[self._nodeIndex] + ' python ' +
> tmpFile)
> new: command = ('ssh ' +
> self._nodelist[self._nodeIndex] + ' $PYTHON/python '
> +
> tmpFile)
> 
> Well, I need real parallelism (as you can see), so,
> first of all, I performed tests/test3.py, that
> result
> in a "error message" below:
> 
> :ts got conn <niftySocket.FileSocket instance at
> 0x81b3594> from ('10.16.165.38', 34043)
> :tcr: command is ssh glover /home/pgs/carlos/py
> /home/pgs/carlos/.PyBrenda.tmp/@13190.0
> :ts: <niftySocket.FileSocket instance at 0x81b3594>
> pend (in) ('workerDone',)
> carlos at glover's password: 
> Traceback (most recent call last):
>   File "/home/pgs/carlos/.PyBrenda.tmp/@13190.0",
> line
> 14, in ?
>     c = Brenda.TupleClientRsh('isere', 2012)
>   File
>
"/home/pgs/carlos/python/Python-2.2/lib/python2.2/site-packages/Brenda.py",
> line 387, in __init__
>     TupleClientCds.__init__(self, host, port)
>   File
>
"/home/pgs/carlos/python/Python-2.2/lib/python2.2/site-packages/Brenda.py",
> line 297, in __init__
>     self._conn = self._connectTo(host, port)
>   File
>
"/home/pgs/carlos/python/Python-2.2/lib/python2.2/site-packages/Brenda.py",
> line 313, in _connectTo
>     sock.connect((host, port))
> socket.gaierror: (-2, 'Name or service not known')
> 
> I need your help. Do I some mistake? What I can do
> for
> repare this and configure PyBrenda correctly?
> 
> 	[]'s
> 
> Cadu Moreira
> KaduSoft President
> -----------------------
> [......]
> 
> __________________________________________________
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com




More information about the Python-list mailing list