bittorrent / bencode Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
This package simply re-packages the existing bencoding and bdecoding implemention from the 'official' BitTorrent client as a separate, leight-weight package for re-using them without having the entire BitTorrent software as a dependency. It currently uses the implementation from BitTorrent Version 5.0.8, the file `bencode.py` is a verbatim, unmodified copy from that distribution. It also contains some tests and a benchmark. Tom Lazar, [email protected]
Originally sent to [email protected] but since his mail does not exist anymore posting this here.
Hello Thomas,
the bencode Package you distribute via pypi does not work with recent Python (3.7.7). I get the error:
$ python3
Python 3.7.7 (default, Mar 13 2020, 10:23:39)
[GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import bencode
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/da/.local/lib/python3.7/site-packages/bencode/__init__.py", line 13, in <module>
from BTL import BTFailure
ModuleNotFoundError: No module named 'BTL'
Please consider updating or removing this module since it is wasting peoples' time. There are working alternatives like bencode.py so removal would be a viable option.
Best regards
ImportError: cannot import name 'StringType' from 'types' (/usr/lib/python3.7/types.py)
File "/home/muad/workbench/gitlab/OutOfGears/sickbeard/providers/rsstorrent.py", line 24, in
from bencode import bdecode
File "/home/muad/workbench/gitlab/OutOfGears/venv/lib/python3.7/site-packages/bencode.py", line 73, in
from types import StringType, IntType, LongType, DictType, ListType, TupleType
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.