effigies / BitTornado

UNMAINTAINED - John Hoffman's fork of the original bittorrent
Other
150 stars 44 forks source link

Downloader doesn't work out of the box? #58

Open davidawad opened 6 years ago

davidawad commented 6 years ago

I have a repo that creates some virtual machines for testing this project.

# within the 'seeder' machine
vagrant@vagrant:~/murder$ python3 downloadtorrent.py ../200MB.zip.torrent
saving:         200MB.zip (200.0 MB)
percent done:   0.0
time left:
download to:    /home/vagrant/murder/200MB.zip
download rate:
upload rate:
share rating:
seed status:
peer status:
Traceback (most recent call last):
  File "downloadtorrent.py", line 221, in <module>
    run(sys.argv[1:])
  File "downloadtorrent.py", line 189, in run
    dow.startRerequester()
  File "/home/vagrant/murder/BitTornado/Client/download_bt1.py", line 578, in startRerequester
    announcers = urls_to_announcers(tracker_urls, **kwargs)
  File "/home/vagrant/murder/BitTornado/Client/Announce.py", line 436, in urls_to_announcers
    for tier in trackerlist]
  File "/home/vagrant/murder/BitTornado/Client/Announce.py", line 436, in <listcomp>
    for tier in trackerlist]
  File "/home/vagrant/murder/BitTornado/Client/Announce.py", line 435, in <listcomp>
    return [[Announcer(url, *args, **kwargs) for url in tier]
  File "/home/vagrant/murder/BitTornado/Client/Announce.py", line 98, in __new__
    return cls.subclasses[scheme](tracker_url, port, *args, **kwargs)
KeyError: ''
vagrant@vagrant:~/murder$

to reproduce environment

clone the repo, cd to test/test_cluster, and run make.

$ git clone https://gitlab.com/davidawad/tbd-murder/
$ cd tbd-murder/test/test_cluster
$ make 

This will create some VM's, (the makefile is really simple) and inside of the seeder vm, I can't run the downloader.

Any ideas? Thanks