libtorrent icon indicating copy to clipboard operation
libtorrent copied to clipboard

v1 skipping tracker anounce

Open tanishbajaj101 opened this issue 1 year ago • 1 comments

Please provide the following information

libtorrent version (or branch): Python bindings from pip install libtorrent (latest)

platform/architecture: Google Colab

compiler and compiler version:

my complete code from libtorrent tutorial :

import time
import sys
from google.colab import files
ses = lt.session({'listen_interfaces': '0.0.0.0:1278'})
downloads=[]


source=files.upload()
params={
    "save_path": "/content/drive/downloaded/", "ti": lt.torrent_info(list(source.keys())[0])
}
downloads.append(ses.add_torrent(params))


print('starting', s.name)

while (not s.is_seeding):
    h = downloads[-1]
    s = h.status()

    print('\r%.2f%% complete (down: %.1f kB/s up: %.1f kB/s peers: %d) %s' % (
        s.progress * 100, s.download_rate / 1000, s.upload_rate / 1000,
        s.num_peers, s.state), end=' ')

    alerts = ses.pop_alerts()
    for a in alerts:
        if a.category() & lt.alert.category_t.error_notification:
            print(a)

    sys.stdout.flush()

    time.sleep(1)

print(h.status().name, 'complete')

Screenshot 2024-01-19 192830

It is clearly not connecting to trackers i tried out different ports and downloaded using qbittorrent gui (which downloaded in just a few seconds)

tanishbajaj101 avatar Jan 19 '24 14:01 tanishbajaj101

from your screenshot, it's saying that:

  1. your loopback device (127.0.0.1) is not announced (which makes sense, since the tracker isn't also running on loopback).
  2. wss is not a supported tracker schema. It looks like this is perhaps a webtorrent, which requires a build from the master branch with webtorrent support enabled

arvidn avatar Feb 17 '24 20:02 arvidn