Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1 skipping tracker anounce #7588

Open
tanishbajaj101 opened this issue Jan 19, 2024 · 1 comment
Open

v1 skipping tracker anounce #7588

tanishbajaj101 opened this issue Jan 19, 2024 · 1 comment

Comments

@tanishbajaj101
Copy link

tanishbajaj101 commented Jan 19, 2024

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)

@arvidn
Copy link
Owner

arvidn commented Feb 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants