"ImportError: No module named gobject"

2011-02-21 Thread Luther
I recently had to install 2.7.1 from source, and since then, I have
been unable to run exaile, which comes with Trisquel 4.0. Here is the
error message:

Traceback (most recent call last):
  File "/usr/lib/exaile/exaile.py", line 52, in 
main()
  File "/usr/lib/exaile/exaile.py", line 49, in main
exaile = main.Exaile()
  File "/usr/lib/exaile/xl/main.py", line 74, in __init__
self.mainloop_init()
  File "/usr/lib/exaile/xl/main.py", line 439, in mainloop_init
import gobject
ImportError: No module named gobject

Is there some special way to compile Python? Do I have to install
another Debian package?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: "ImportError: No module named gobject"

2011-02-21 Thread Luther
I've tried installing pygtk, pygobject, and gobject-introspection from
source, but none of them will compile, and nothing I install through
synaptic has any effect.

I've tried too many things to post all the details here, but I'll post
any details on request.
-- 
http://mail.python.org/mailman/listinfo/python-list


Twisted: UDP socket not closed.

2012-04-19 Thread Luther Edwards
Did anyone in the group ever have an answer to Kevac's question, I'm having a 
similar issue?

Thanks in advance, Luther

[Python] Twisted: UDP socket not closed.
[cid:[email protected]]<http://grokbase.com/user/Kevac-Marko/tTjuHcXzmQtuttsnhLfi5e>

Kevac Marko<http://grokbase.com/user/Kevac-Marko/tTjuHcXzmQtuttsnhLfi5e>
Dec 22, 2007 at 9:02 am<http://grokbase.com/g/python/python-list/2007/12>

Hi.

I have to send UDP packets very often. Approx twice in a second.
But socket is not closed after sending packet. So soon i bump into
open sockets\files limit.
How to close socket after sending data?

Python 2.5, Twisted

class DataClient(DatagramProtocol):

def __init__(self, address, datagram = "PONG"):
self.address, self.datagram = address, datagram

def startProtocol(self):
self.transport.socket.setsockopt(socket.SOL_SOCKET, \
socket.SO_BROADCAST, True)
self.transport.connect(self.address[0], self.address[1])
self.sendDatagram()

def sendDatagram(self):
self.transport.write(self.datagram)
debug("Data client: Sending to %s" % repr(self.address))

while True:
clientprotocol = DataClient(("255.255.255.255", 5999), data)
reactor.listenUDP(0, clientprotocol).stopListening()

knight at rknb:~$ ls -la /proc/15429/fd/ | wc -l
43
knight at rknb:~$ ls -la /proc/15429/fd/ | wc -l
44
knight at rknb:~$ ls -la /proc/15429/fd/ | wc -l
44
knight at rknb:~$ ls -la /proc/15429/fd/ | wc -l
44
knight at rknb:~$ ls -la /proc/15429/fd/ | wc -l
45
knight at rknb:~$ ls -la /proc/15429/fd/ | wc -l
45
knight at rknb:~$ ls -la /proc/15429/fd/ | wc -l
46

<>-- 
http://mail.python.org/mailman/listinfo/python-list