jonls / lpd-monitor Goto Github PK
View Code? Open in Web Editor NEWMonitor BitTorrent activity on the LAN through LPD
Home Page: http://jonls.dk/2013/03/monitoring-bittorrent-lan-activity/
License: MIT License
Monitor BitTorrent activity on the LAN through LPD
Home Page: http://jonls.dk/2013/03/monitoring-bittorrent-lan-activity/
License: MIT License
Hi, I'm getting these errors in the GTK client.
python --version master
Python 2.7.6
Traceback (most recent call last):
File "./lpd-monitor-gtk", line 135, in torrents_update_time_data_cb
cell.set_property('text', model.get_value(it, 0).update_time)
TypeError: Must be string, not datetime.datetime
Traceback (most recent call last):
File "./lpd-monitor-gtk", line 135, in torrents_update_time_data_cb
cell.set_property('text', model.get_value(it, 0).update_time)
TypeError: Must be string, not datetime.datetime
Traceback (most recent call last):
File "./lpd-monitor-gtk", line 135, in torrents_update_time_data_cb
cell.set_property('text', model.get_value(it, 0).update_time)
TypeError: Must be string, not datetime.datetime
Traceback (most recent call last):
File "./lpd-monitor-gtk", line 135, in torrents_update_time_data_cb
cell.set_property('text', model.get_value(it, 0).update_time)
TypeError: Must be string, not datetime.datetime
Traceback (most recent call last):
File "./lpd-monitor-gtk", line 135, in torrents_update_time_data_cb
cell.set_property('text', model.get_value(it, 0).update_time)
TypeError: Must be string, not datetime.datetime
Traceback (most recent call last):
File "./lpd-monitor-gtk", line 135, in torrents_update_time_data_cb
cell.set_property('text', model.get_value(it, 0).update_time)
TypeError: Must be string, not datetime.datetime
Traceback (most recent call last):
File "./lpd-monitor-gtk", line 135, in torrents_update_time_data_cb
cell.set_property('text', model.get_value(it, 0).update_time)
TypeError: Must be string, not datetime.datetime
Traceback (most recent call last):
File "./lpd-monitor-gtk", line 135, in torrents_update_time_data_cb
cell.set_property('text', model.get_value(it, 0).update_time)
TypeError: Must be string, not datetime.datetime
Line 18 in lpd.py uses tab for indentation, while the rest of the file uses spaces. This causes a backtrace when running lpd-monitor.
diff:
--- a/lpd-monitor/lpd.py 2014-12-01 21:10:52.602810871 -0500
+++ b/lpd-monitor/lpd.py 2014-12-01 20:58:31.983489817 -0500
@@ -15,7 +15,7 @@
self.bind(('', local_port))
def mcast_add(self, addr):
- mreq = struct.pack('=4sl', socket.inet_aton(addr), socket.INADDR_ANY)
+ mreq = struct.pack('=4sl', socket.inet_aton(addr), socket.INADDR_ANY)
self.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq)
class LPDSocket(MulticastUDPSocket):
Greetings.
I am not seeing a license on this, and would very much like to go over this code and possibly hack on it since I am new to Python.
If there is one and I have missed it, please close this saying so.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.