magnetico
magnetico copied to clipboard
magneticod crashing on FreeBSD
This is what I get when it's left running for a bit:
2017-05-23 11:17:38,951 WARNING Belated TICK! (Δ = 5)
2017-05-23 11:17:44,973 WARNING Belated TICK! (Δ = 5)
2017-05-23 11:17:50,994 WARNING Belated TICK! (Δ = 5)
Traceback (most recent call last):
File "/usr/local/bin/magneticod", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/site-packages/magneticod/__main__.py", line 81, in main
loop()
File "/usr/local/lib/python3.6/site-packages/magneticod/__main__.py", line 160, in loop
key.fileobj.on_receivable()
File "/usr/local/lib/python3.6/site-packages/magneticod/bittorrent.py", line 122, in on_receivable
self.__on_bt_handshake(self.__incoming_buffer[:68])
File "/usr/local/lib/python3.6/site-packages/magneticod/bittorrent.py", line 193, in __on_bt_handshake
msg_dict_dump
TypeError: not all arguments converted during bytes formatting
Any clue on how to debug it?
Hey @ciaby, thanks for reporting it. =)
It's due to a bug in the Python 3.6 and 3.6.1, which has nothing to do with us, and causes the crash.
I was against developing a workaround -since I stubbornly insisted that it's not our fault- but since many people encountered that, I think I'll fix it soon, hopefully before Python 3.6.2 which fixes that.
The bug: http://bugs.python.org/issue29714
Oh, ok :) Should I switch to Python 3.5 in the meantime?
Sure, if you can!
Yep, I just switched to 3.5. The Belated TICK problem is still there... (delta is always 5 seconds). What could be?
@ciaby , this is another issue. See #11.
I believe issue29714 is fixed by https://github.com/boramalper/magnetico/pull/74
I've successfully started magneticod on FreeBSD 11, I think it's safe to mark this as resolved.