Giter VIP home page Giter VIP logo

lpd-monitor's People

Contributors

jonls avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lpd-monitor's Issues

Errors in gtk client: TypeError: Must be string, not datetime.datetime

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

inconsistant use of tab/space for indentation

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):

No license listed.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.