2023-09-11T10:20:07,012 Created temporary directory: /tmp/pip-build-tracker-4nvb6edj 2023-09-11T10:20:07,013 Initialized build tracking at /tmp/pip-build-tracker-4nvb6edj 2023-09-11T10:20:07,013 Created build tracker: /tmp/pip-build-tracker-4nvb6edj 2023-09-11T10:20:07,014 Entered build tracker: /tmp/pip-build-tracker-4nvb6edj 2023-09-11T10:20:07,015 Created temporary directory: /tmp/pip-wheel-zn7wfqdd 2023-09-11T10:20:07,018 Created temporary directory: /tmp/pip-ephem-wheel-cache-8t3jq3hw 2023-09-11T10:20:07,042 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple 2023-09-11T10:20:07,046 2 location(s) to search for versions of opendht: 2023-09-11T10:20:07,046 * https://pypi.org/simple/opendht/ 2023-09-11T10:20:07,046 * https://www.piwheels.org/simple/opendht/ 2023-09-11T10:20:07,046 Fetching project page and analyzing links: https://pypi.org/simple/opendht/ 2023-09-11T10:20:07,047 Getting page https://pypi.org/simple/opendht/ 2023-09-11T10:20:07,049 Found index url https://pypi.org/simple/ 2023-09-11T10:20:07,266 Fetched page https://pypi.org/simple/opendht/ as application/vnd.pypi.simple.v1+json 2023-09-11T10:20:07,268 Found link https://files.pythonhosted.org/packages/99/ff/4e77a933075841293345b9b2734b55c7b0693030da5da0b62b3a1311890f/opendht-1.8.1.tar.gz (from https://pypi.org/simple/opendht/), version: 1.8.1 2023-09-11T10:20:07,268 Fetching project page and analyzing links: https://www.piwheels.org/simple/opendht/ 2023-09-11T10:20:07,269 Getting page https://www.piwheels.org/simple/opendht/ 2023-09-11T10:20:07,270 Found index url https://www.piwheels.org/simple/ 2023-09-11T10:20:09,265 Fetched page https://www.piwheels.org/simple/opendht/ as text/html 2023-09-11T10:20:09,267 Skipping link: not a file: https://www.piwheels.org/simple/opendht/ 2023-09-11T10:20:09,268 Skipping link: not a file: https://pypi.org/simple/opendht/ 2023-09-11T10:20:09,302 Given no hashes to check 1 links for project 'opendht': discarding no candidates 2023-09-11T10:20:09,331 Collecting opendht==1.8.1 2023-09-11T10:20:09,335 Created temporary directory: /tmp/pip-unpack-kffqevr6 2023-09-11T10:20:09,497 Downloading opendht-1.8.1.tar.gz (116 kB) 2023-09-11T10:20:09,630 Added opendht==1.8.1 from https://files.pythonhosted.org/packages/99/ff/4e77a933075841293345b9b2734b55c7b0693030da5da0b62b3a1311890f/opendht-1.8.1.tar.gz to build tracker '/tmp/pip-build-tracker-4nvb6edj' 2023-09-11T10:20:09,632 Running setup.py (path:/tmp/pip-wheel-zn7wfqdd/opendht_9ec8dfa4daaf4d14b3b0730a1370dc73/setup.py) egg_info for package opendht 2023-09-11T10:20:09,633 Created temporary directory: /tmp/pip-pip-egg-info-a0kkpdai 2023-09-11T10:20:09,633 Preparing metadata (setup.py): started 2023-09-11T10:20:09,635 Running command python setup.py egg_info 2023-09-11T10:20:14,818 Error compiling Cython file: 2023-09-11T10:20:14,819 ------------------------------------------------------------ 2023-09-11T10:20:14,819 ... 2023-09-11T10:20:14,821 from cython.parallel import parallel, prange 2023-09-11T10:20:14,821 from cython.operator cimport dereference as deref, preincrement as inc, predecrement as dec 2023-09-11T10:20:14,822 from cpython cimport ref 2023-09-11T10:20:14,823 cimport opendht_cpp as cpp 2023-09-11T10:20:14,823 ^ 2023-09-11T10:20:14,824 ------------------------------------------------------------ 2023-09-11T10:20:14,825 opendht.pyx:40:8: 'opendht_cpp.pxd' not found 2023-09-11T10:20:14,826 Error compiling Cython file: 2023-09-11T10:20:14,827 ------------------------------------------------------------ 2023-09-11T10:20:14,827 ... 2023-09-11T10:20:14,828 cbs = user_data 2023-09-11T10:20:14,829 if 'shutdown' in cbs and cbs['shutdown']: 2023-09-11T10:20:14,829 cbs['shutdown']() 2023-09-11T10:20:14,830 ref.Py_DECREF(cbs) 2023-09-11T10:20:14,832 cdef inline bool get_callback(shared_ptr[cpp.Value] value, void *user_data) with gil: 2023-09-11T10:20:14,833 ^ 2023-09-11T10:20:14,833 ------------------------------------------------------------ 2023-09-11T10:20:14,835 opendht.pyx:62:45: unknown type in template argument 2023-09-11T10:20:14,836 Error compiling Cython file: 2023-09-11T10:20:14,837 ------------------------------------------------------------ 2023-09-11T10:20:14,837 ... 2023-09-11T10:20:14,838 f = cbs['filter'] if 'filter' in cbs else None 2023-09-11T10:20:14,838 pv = Value() 2023-09-11T10:20:14,839 pv._value = value 2023-09-11T10:20:14,839 return cb(pv) if not f or f(pv) else True 2023-09-11T10:20:14,840 cdef inline void done_callback(bool done, cpp.vector[shared_ptr[cpp.Node]]* nodes, void *user_data) with gil: 2023-09-11T10:20:14,840 ^ 2023-09-11T10:20:14,841 ------------------------------------------------------------ 2023-09-11T10:20:14,842 opendht.pyx:70:42: 'vector' is not a type identifier 2023-09-11T10:20:14,843 Error compiling Cython file: 2023-09-11T10:20:14,843 ------------------------------------------------------------ 2023-09-11T10:20:14,844 ... 2023-09-11T10:20:14,844 return "<%s '%s'>" % (self.__class__.__name__, str(self)) 2023-09-11T10:20:14,844 def __str__(self): 2023-09-11T10:20:14,845 return self.getId().toString().decode() 2023-09-11T10:20:14,846 cdef class InfoHash(_WithID): 2023-09-11T10:20:14,846 cdef cpp.InfoHash _infohash 2023-09-11T10:20:14,847 ^ 2023-09-11T10:20:14,847 ------------------------------------------------------------ 2023-09-11T10:20:14,849 opendht.pyx:95:9: 'InfoHash' is not a type identifier 2023-09-11T10:20:14,850 Error compiling Cython file: 2023-09-11T10:20:14,851 ------------------------------------------------------------ 2023-09-11T10:20:14,851 ... 2023-09-11T10:20:14,852 h = InfoHash() 2023-09-11T10:20:14,852 h._infohash = cpp.InfoHash.getRandom() 2023-09-11T10:20:14,853 return h 2023-09-11T10:20:14,854 cdef class SockAddr(object): 2023-09-11T10:20:14,855 cdef cpp.SockAddr _addr 2023-09-11T10:20:14,855 ^ 2023-09-11T10:20:14,856 ------------------------------------------------------------ 2023-09-11T10:20:14,857 opendht.pyx:133:9: 'SockAddr' is not a type identifier 2023-09-11T10:20:14,859 Error compiling Cython file: 2023-09-11T10:20:14,859 ------------------------------------------------------------ 2023-09-11T10:20:14,860 ... 2023-09-11T10:20:14,860 return self._addr.toString() 2023-09-11T10:20:14,861 def getPort(SockAddr self): 2023-09-11T10:20:14,862 return self._addr.getPort() 2023-09-11T10:20:14,863 def getFamily(SockAddr self): 2023-09-11T10:20:14,863 return self._addr.getFamily() 2023-09-11T10:20:14,864 def setPort(SockAddr self, cpp.in_port_t port): 2023-09-11T10:20:14,864 ^ 2023-09-11T10:20:14,865 ------------------------------------------------------------ 2023-09-11T10:20:14,866 opendht.pyx:140:31: 'in_port_t' is not a type identifier 2023-09-11T10:20:14,867 Error compiling Cython file: 2023-09-11T10:20:14,868 ------------------------------------------------------------ 2023-09-11T10:20:14,869 ... 2023-09-11T10:20:14,870 return self._addr.getPort() 2023-09-11T10:20:14,870 def getFamily(SockAddr self): 2023-09-11T10:20:14,871 return self._addr.getFamily() 2023-09-11T10:20:14,872 def setPort(SockAddr self, cpp.in_port_t port): 2023-09-11T10:20:14,872 return self._addr.setPort(port) 2023-09-11T10:20:14,873 def setFamily(SockAddr self, cpp.sa_family_t af): 2023-09-11T10:20:14,873 ^ 2023-09-11T10:20:14,875 ------------------------------------------------------------ 2023-09-11T10:20:14,876 opendht.pyx:142:33: 'sa_family_t' is not a type identifier 2023-09-11T10:20:14,877 Error compiling Cython file: 2023-09-11T10:20:14,878 ------------------------------------------------------------ 2023-09-11T10:20:14,879 ... 2023-09-11T10:20:14,880 return self.toString().decode() 2023-09-11T10:20:14,881 def __repr__(self): 2023-09-11T10:20:14,882 return "<%s '%s'>" % (self.__class__.__name__, str(self)) 2023-09-11T10:20:14,883 cdef class Node(_WithID): 2023-09-11T10:20:14,883 cdef shared_ptr[cpp.Node] _node 2023-09-11T10:20:14,884 ^ 2023-09-11T10:20:14,885 ------------------------------------------------------------ 2023-09-11T10:20:14,885 opendht.pyx:156:24: unknown type in template argument 2023-09-11T10:20:14,886 Error compiling Cython file: 2023-09-11T10:20:14,887 ------------------------------------------------------------ 2023-09-11T10:20:14,887 ... 2023-09-11T10:20:14,888 return self._node.get().getAddrStr() 2023-09-11T10:20:14,888 def isExpired(self): 2023-09-11T10:20:14,889 return self._node.get().isExpired() 2023-09-11T10:20:14,890 cdef class NodeEntry(_WithID): 2023-09-11T10:20:14,890 cdef cpp.pair[cpp.InfoHash, shared_ptr[cpp.Node]] _v 2023-09-11T10:20:14,891 ^ 2023-09-11T10:20:14,891 ------------------------------------------------------------ 2023-09-11T10:20:14,892 opendht.pyx:167:9: 'pair' is not a type identifier 2023-09-11T10:20:14,893 Error compiling Cython file: 2023-09-11T10:20:14,893 ------------------------------------------------------------ 2023-09-11T10:20:14,894 ... 2023-09-11T10:20:14,894 n = Node() 2023-09-11T10:20:14,895 n._node = self._v.second 2023-09-11T10:20:14,896 return n 2023-09-11T10:20:14,897 cdef class Query(object): 2023-09-11T10:20:14,897 cdef cpp.Query _query 2023-09-11T10:20:14,898 ^ 2023-09-11T10:20:14,898 ------------------------------------------------------------ 2023-09-11T10:20:14,899 opendht.pyx:178:9: 'Query' is not a type identifier 2023-09-11T10:20:14,901 Error compiling Cython file: 2023-09-11T10:20:14,901 ------------------------------------------------------------ 2023-09-11T10:20:14,902 ... 2023-09-11T10:20:14,902 self._query = cpp.Query(s._select, w._where) 2023-09-11T10:20:14,903 def isSatisfiedBy(self, Query q): 2023-09-11T10:20:14,904 return self._query.isSatisfiedBy(q._query) 2023-09-11T10:20:14,905 cdef class Select(object): 2023-09-11T10:20:14,906 cdef cpp.Select _select 2023-09-11T10:20:14,906 ^ 2023-09-11T10:20:14,907 ------------------------------------------------------------ 2023-09-11T10:20:14,908 opendht.pyx:189:9: 'Select' is not a type identifier 2023-09-11T10:20:14,909 Error compiling Cython file: 2023-09-11T10:20:14,910 ------------------------------------------------------------ 2023-09-11T10:20:14,911 ... 2023-09-11T10:20:14,912 def field(self, int field): 2023-09-11T10:20:14,912 self._select.field( field) 2023-09-11T10:20:14,913 return self 2023-09-11T10:20:14,914 cdef class Where(object): 2023-09-11T10:20:14,915 cdef cpp.Where _where 2023-09-11T10:20:14,916 ^ 2023-09-11T10:20:14,916 ------------------------------------------------------------ 2023-09-11T10:20:14,917 opendht.pyx:204:9: 'Where' is not a type identifier 2023-09-11T10:20:14,918 Error compiling Cython file: 2023-09-11T10:20:14,919 ------------------------------------------------------------ 2023-09-11T10:20:14,920 ... 2023-09-11T10:20:14,920 self._where = cpp.Where() 2023-09-11T10:20:14,921 def __str__(self): 2023-09-11T10:20:14,921 return self._where.toString().decode() 2023-09-11T10:20:14,922 def isSatisfiedBy(self, Where where): 2023-09-11T10:20:14,923 return self._where.isSatisfiedBy(where._where) 2023-09-11T10:20:14,923 def id(self, cpp.uint64_t id): 2023-09-11T10:20:14,924 ^ 2023-09-11T10:20:14,925 ------------------------------------------------------------ 2023-09-11T10:20:14,926 opendht.pyx:214:17: 'uint64_t' is not a type identifier 2023-09-11T10:20:14,927 Error compiling Cython file: 2023-09-11T10:20:14,928 ------------------------------------------------------------ 2023-09-11T10:20:14,929 ... 2023-09-11T10:20:14,929 def isSatisfiedBy(self, Where where): 2023-09-11T10:20:14,930 return self._where.isSatisfiedBy(where._where) 2023-09-11T10:20:14,930 def id(self, cpp.uint64_t id): 2023-09-11T10:20:14,931 self._where.id(id) 2023-09-11T10:20:14,931 return self 2023-09-11T10:20:14,932 def valueType(self, cpp.uint16_t type): 2023-09-11T10:20:14,932 ^ 2023-09-11T10:20:14,933 ------------------------------------------------------------ 2023-09-11T10:20:14,934 opendht.pyx:217:24: 'uint16_t' is not a type identifier 2023-09-11T10:20:14,934 Error compiling Cython file: 2023-09-11T10:20:14,935 ------------------------------------------------------------ 2023-09-11T10:20:14,935 ... 2023-09-11T10:20:14,936 self._where.valueType(type) 2023-09-11T10:20:14,936 return self 2023-09-11T10:20:14,937 def owner(self, InfoHash owner_pk_hash): 2023-09-11T10:20:14,937 self._where.owner(owner_pk_hash._infohash) 2023-09-11T10:20:14,937 return self 2023-09-11T10:20:14,938 def seq(self, cpp.uint16_t seq_no): 2023-09-11T10:20:14,938 ^ 2023-09-11T10:20:14,939 ------------------------------------------------------------ 2023-09-11T10:20:14,940 opendht.pyx:223:18: 'uint16_t' is not a type identifier 2023-09-11T10:20:14,941 Error compiling Cython file: 2023-09-11T10:20:14,941 ------------------------------------------------------------ 2023-09-11T10:20:14,942 ... 2023-09-11T10:20:14,942 def userType(self, str user_type): 2023-09-11T10:20:14,943 self._where.userType(user_type.encode()) 2023-09-11T10:20:14,943 return self 2023-09-11T10:20:14,945 cdef class Value(object): 2023-09-11T10:20:14,945 cdef shared_ptr[cpp.Value] _value 2023-09-11T10:20:14,946 ^ 2023-09-11T10:20:14,947 ------------------------------------------------------------ 2023-09-11T10:20:14,948 opendht.pyx:231:24: unknown type in template argument 2023-09-11T10:20:14,949 Error compiling Cython file: 2023-09-11T10:20:14,950 ------------------------------------------------------------ 2023-09-11T10:20:14,951 ... 2023-09-11T10:20:14,951 def __set__(self, str t): 2023-09-11T10:20:14,952 self._value.get().user_type = t.encode() 2023-09-11T10:20:14,953 property id: 2023-09-11T10:20:14,953 def __get__(self): 2023-09-11T10:20:14,954 return self._value.get().id 2023-09-11T10:20:14,955 def __set__(self, cpp.uint64_t value): 2023-09-11T10:20:14,955 ^ 2023-09-11T10:20:14,956 ------------------------------------------------------------ 2023-09-11T10:20:14,957 opendht.pyx:261:26: 'uint64_t' is not a type identifier 2023-09-11T10:20:14,958 Error compiling Cython file: 2023-09-11T10:20:14,959 ------------------------------------------------------------ 2023-09-11T10:20:14,960 ... 2023-09-11T10:20:14,960 property size: 2023-09-11T10:20:14,961 def __get__(self): 2023-09-11T10:20:14,961 return self._value.get().size() 2023-09-11T10:20:14,962 cdef class NodeSetIter(object): 2023-09-11T10:20:14,963 cdef map[cpp.InfoHash, shared_ptr[cpp.Node]]* _nodes 2023-09-11T10:20:14,963 ^ 2023-09-11T10:20:14,964 ------------------------------------------------------------ 2023-09-11T10:20:14,965 opendht.pyx:268:17: unknown type in template argument 2023-09-11T10:20:14,966 Error compiling Cython file: 2023-09-11T10:20:14,967 ------------------------------------------------------------ 2023-09-11T10:20:14,968 ... 2023-09-11T10:20:14,968 property size: 2023-09-11T10:20:14,969 def __get__(self): 2023-09-11T10:20:14,970 return self._value.get().size() 2023-09-11T10:20:14,971 cdef class NodeSetIter(object): 2023-09-11T10:20:14,972 cdef map[cpp.InfoHash, shared_ptr[cpp.Node]]* _nodes 2023-09-11T10:20:14,972 ^ 2023-09-11T10:20:14,973 ------------------------------------------------------------ 2023-09-11T10:20:14,974 opendht.pyx:268:42: unknown type in template argument 2023-09-11T10:20:14,975 Error compiling Cython file: 2023-09-11T10:20:14,975 ------------------------------------------------------------ 2023-09-11T10:20:14,976 ... 2023-09-11T10:20:14,976 def __get__(self): 2023-09-11T10:20:14,976 return self._value.get().size() 2023-09-11T10:20:14,977 cdef class NodeSetIter(object): 2023-09-11T10:20:14,978 cdef map[cpp.InfoHash, shared_ptr[cpp.Node]]* _nodes 2023-09-11T10:20:14,978 cdef map[cpp.InfoHash, shared_ptr[cpp.Node]].iterator _curIter 2023-09-11T10:20:14,979 ^ 2023-09-11T10:20:14,979 ------------------------------------------------------------ 2023-09-11T10:20:14,980 opendht.pyx:269:17: unknown type in template argument 2023-09-11T10:20:14,981 Error compiling Cython file: 2023-09-11T10:20:14,982 ------------------------------------------------------------ 2023-09-11T10:20:14,983 ... 2023-09-11T10:20:14,984 def __get__(self): 2023-09-11T10:20:14,984 return self._value.get().size() 2023-09-11T10:20:14,985 cdef class NodeSetIter(object): 2023-09-11T10:20:14,986 cdef map[cpp.InfoHash, shared_ptr[cpp.Node]]* _nodes 2023-09-11T10:20:14,986 cdef map[cpp.InfoHash, shared_ptr[cpp.Node]].iterator _curIter 2023-09-11T10:20:14,987 ^ 2023-09-11T10:20:14,987 ------------------------------------------------------------ 2023-09-11T10:20:14,988 opendht.pyx:269:42: unknown type in template argument 2023-09-11T10:20:14,989 Error compiling Cython file: 2023-09-11T10:20:14,990 ------------------------------------------------------------ 2023-09-11T10:20:14,991 ... 2023-09-11T10:20:14,991 h._v = deref(self._curIter) 2023-09-11T10:20:14,992 inc(self._curIter) 2023-09-11T10:20:14,993 return h 2023-09-11T10:20:14,994 cdef class NodeSet(object): 2023-09-11T10:20:14,995 cdef map[cpp.InfoHash, shared_ptr[cpp.Node]] _nodes 2023-09-11T10:20:14,995 ^ 2023-09-11T10:20:14,996 ------------------------------------------------------------ 2023-09-11T10:20:14,997 opendht.pyx:282:17: unknown type in template argument 2023-09-11T10:20:14,999 Error compiling Cython file: 2023-09-11T10:20:14,999 ------------------------------------------------------------ 2023-09-11T10:20:15,000 ... 2023-09-11T10:20:15,001 h._v = deref(self._curIter) 2023-09-11T10:20:15,001 inc(self._curIter) 2023-09-11T10:20:15,002 return h 2023-09-11T10:20:15,003 cdef class NodeSet(object): 2023-09-11T10:20:15,004 cdef map[cpp.InfoHash, shared_ptr[cpp.Node]] _nodes 2023-09-11T10:20:15,004 ^ 2023-09-11T10:20:15,005 ------------------------------------------------------------ 2023-09-11T10:20:15,007 opendht.pyx:282:42: unknown type in template argument 2023-09-11T10:20:15,008 Error compiling Cython file: 2023-09-11T10:20:15,008 ------------------------------------------------------------ 2023-09-11T10:20:15,009 ... 2023-09-11T10:20:15,009 return s 2023-09-11T10:20:15,010 def __iter__(self): 2023-09-11T10:20:15,011 return NodeSetIter(self) 2023-09-11T10:20:15,012 cdef class PrivateKey(_WithID): 2023-09-11T10:20:15,013 cdef shared_ptr[cpp.PrivateKey] _key 2023-09-11T10:20:15,013 ^ 2023-09-11T10:20:15,014 ------------------------------------------------------------ 2023-09-11T10:20:15,015 opendht.pyx:313:24: unknown type in template argument 2023-09-11T10:20:15,016 Error compiling Cython file: 2023-09-11T10:20:15,017 ------------------------------------------------------------ 2023-09-11T10:20:15,018 ... 2023-09-11T10:20:15,018 k = PrivateKey() 2023-09-11T10:20:15,019 k._key = cpp.make_shared[cpp.PrivateKey](cpp.PrivateKey.generateEC()) 2023-09-11T10:20:15,020 return k 2023-09-11T10:20:15,021 cdef class PublicKey(_WithID): 2023-09-11T10:20:15,022 cdef cpp.PublicKey _key 2023-09-11T10:20:15,022 ^ 2023-09-11T10:20:15,023 ------------------------------------------------------------ 2023-09-11T10:20:15,024 opendht.pyx:345:9: 'PublicKey' is not a type identifier 2023-09-11T10:20:15,024 Error compiling Cython file: 2023-09-11T10:20:15,025 ------------------------------------------------------------ 2023-09-11T10:20:15,025 ... 2023-09-11T10:20:15,026 cdef char* encrypted_c_str = encrypted.data() 2023-09-11T10:20:15,026 cdef Py_ssize_t length = encrypted.size() 2023-09-11T10:20:15,027 return encrypted_c_str[:length] 2023-09-11T10:20:15,027 cdef class Certificate(_WithID): 2023-09-11T10:20:15,028 cdef shared_ptr[cpp.Certificate] _cert 2023-09-11T10:20:15,028 ^ 2023-09-11T10:20:15,029 ------------------------------------------------------------ 2023-09-11T10:20:15,030 opendht.pyx:361:24: unknown type in template argument 2023-09-11T10:20:15,031 Error compiling Cython file: 2023-09-11T10:20:15,031 ------------------------------------------------------------ 2023-09-11T10:20:15,031 ... 2023-09-11T10:20:15,032 c = Certificate() 2023-09-11T10:20:15,032 c._cert = cpp.make_shared[cpp.Certificate](cpp.Certificate.generate(deref(k._key.get()), name.encode(), i._id, is_ca)) 2023-09-11T10:20:15,033 return c 2023-09-11T10:20:15,034 cdef class VerifyResult(object): 2023-09-11T10:20:15,034 cdef cpp.TrustListVerifyResult _result 2023-09-11T10:20:15,034 ^ 2023-09-11T10:20:15,035 ------------------------------------------------------------ 2023-09-11T10:20:15,036 opendht.pyx:390:9: 'TrustListVerifyResult' is not a type identifier 2023-09-11T10:20:15,037 Error compiling Cython file: 2023-09-11T10:20:15,038 ------------------------------------------------------------ 2023-09-11T10:20:15,039 ... 2023-09-11T10:20:15,039 return self._result.isValid() 2023-09-11T10:20:15,040 def __str(self): 2023-09-11T10:20:15,040 return self._result.toString() 2023-09-11T10:20:15,042 cdef class TrustList(object): 2023-09-11T10:20:15,042 cdef cpp.TrustList _trust 2023-09-11T10:20:15,043 ^ 2023-09-11T10:20:15,043 ------------------------------------------------------------ 2023-09-11T10:20:15,044 opendht.pyx:397:9: 'TrustList' is not a type identifier 2023-09-11T10:20:15,046 Error compiling Cython file: 2023-09-11T10:20:15,046 ------------------------------------------------------------ 2023-09-11T10:20:15,047 ... 2023-09-11T10:20:15,047 r = VerifyResult() 2023-09-11T10:20:15,048 r._result = self._trust.verify(deref(cert._cert.get())) 2023-09-11T10:20:15,049 return r 2023-09-11T10:20:15,050 cdef class ListenToken(object): 2023-09-11T10:20:15,050 cdef cpp.InfoHash _h 2023-09-11T10:20:15,051 ^ 2023-09-11T10:20:15,051 ------------------------------------------------------------ 2023-09-11T10:20:15,052 opendht.pyx:408:9: 'InfoHash' is not a type identifier 2023-09-11T10:20:15,054 Error compiling Cython file: 2023-09-11T10:20:15,054 ------------------------------------------------------------ 2023-09-11T10:20:15,055 ... 2023-09-11T10:20:15,055 r._result = self._trust.verify(deref(cert._cert.get())) 2023-09-11T10:20:15,056 return r 2023-09-11T10:20:15,057 cdef class ListenToken(object): 2023-09-11T10:20:15,057 cdef cpp.InfoHash _h 2023-09-11T10:20:15,058 cdef cpp.shared_future[size_t] _t 2023-09-11T10:20:15,058 ^ 2023-09-11T10:20:15,059 ------------------------------------------------------------ 2023-09-11T10:20:15,060 opendht.pyx:409:9: 'shared_future' is not a type identifier 2023-09-11T10:20:15,062 Error compiling Cython file: 2023-09-11T10:20:15,062 ------------------------------------------------------------ 2023-09-11T10:20:15,063 ... 2023-09-11T10:20:15,064 r._result = self._trust.verify(deref(cert._cert.get())) 2023-09-11T10:20:15,064 return r 2023-09-11T10:20:15,065 cdef class ListenToken(object): 2023-09-11T10:20:15,066 cdef cpp.InfoHash _h 2023-09-11T10:20:15,066 cdef cpp.shared_future[size_t] _t 2023-09-11T10:20:15,066 ^ 2023-09-11T10:20:15,067 ------------------------------------------------------------ 2023-09-11T10:20:15,068 opendht.pyx:409:9: 'shared_future' is not a type identifier 2023-09-11T10:20:15,069 Error compiling Cython file: 2023-09-11T10:20:15,069 ------------------------------------------------------------ 2023-09-11T10:20:15,069 ... 2023-09-11T10:20:15,070 cdef cpp.InfoHash _h 2023-09-11T10:20:15,070 cdef cpp.shared_future[size_t] _t 2023-09-11T10:20:15,071 _cb = dict() 2023-09-11T10:20:15,072 cdef class Identity(object): 2023-09-11T10:20:15,072 cdef cpp.Identity _id 2023-09-11T10:20:15,072 ^ 2023-09-11T10:20:15,073 ------------------------------------------------------------ 2023-09-11T10:20:15,074 opendht.pyx:413:9: 'Identity' is not a type identifier 2023-09-11T10:20:15,075 Error compiling Cython file: 2023-09-11T10:20:15,075 ------------------------------------------------------------ 2023-09-11T10:20:15,075 ... 2023-09-11T10:20:15,076 k = PrivateKey() 2023-09-11T10:20:15,077 k._key = self._id.first 2023-09-11T10:20:15,077 return k 2023-09-11T10:20:15,078 cdef class DhtConfig(object): 2023-09-11T10:20:15,079 cdef cpp.DhtRunnerConfig _config 2023-09-11T10:20:15,079 ^ 2023-09-11T10:20:15,080 ------------------------------------------------------------ 2023-09-11T10:20:15,080 opendht.pyx:441:9: 'DhtRunnerConfig' is not a type identifier 2023-09-11T10:20:15,081 Error compiling Cython file: 2023-09-11T10:20:15,082 ------------------------------------------------------------ 2023-09-11T10:20:15,083 ... 2023-09-11T10:20:15,083 self._config.dht_config.node_config.network = netid 2023-09-11T10:20:15,084 def setMaintainStorage(self, bool maintain_storage): 2023-09-11T10:20:15,084 self._config.dht_config.node_config.maintain_storage = maintain_storage 2023-09-11T10:20:15,085 cdef class DhtRunner(_WithID): 2023-09-11T10:20:15,086 cdef cpp.shared_ptr[cpp.DhtRunner] thisptr 2023-09-11T10:20:15,087 ^ 2023-09-11T10:20:15,087 ------------------------------------------------------------ 2023-09-11T10:20:15,088 opendht.pyx:457:9: 'shared_ptr' is not a type identifier 2023-09-11T10:20:15,089 Error compiling Cython file: 2023-09-11T10:20:15,090 ------------------------------------------------------------ 2023-09-11T10:20:15,091 ... 2023-09-11T10:20:15,091 self._config.dht_config.node_config.network = netid 2023-09-11T10:20:15,092 def setMaintainStorage(self, bool maintain_storage): 2023-09-11T10:20:15,092 self._config.dht_config.node_config.maintain_storage = maintain_storage 2023-09-11T10:20:15,093 cdef class DhtRunner(_WithID): 2023-09-11T10:20:15,094 cdef cpp.shared_ptr[cpp.DhtRunner] thisptr 2023-09-11T10:20:15,094 ^ 2023-09-11T10:20:15,095 ------------------------------------------------------------ 2023-09-11T10:20:15,096 opendht.pyx:457:9: 'shared_ptr' is not a type identifier 2023-09-11T10:20:15,097 Error compiling Cython file: 2023-09-11T10:20:15,098 ------------------------------------------------------------ 2023-09-11T10:20:15,098 ... 2023-09-11T10:20:15,099 return ok 2023-09-11T10:20:15,099 def bootstrap(self, str host, str port=None): 2023-09-11T10:20:15,100 host_bytes = host.encode() 2023-09-11T10:20:15,100 port_bytes = port.encode() if port else b'4222' 2023-09-11T10:20:15,101 self.thisptr.get().bootstrap(host_bytes, port_bytes) 2023-09-11T10:20:15,101 def run(self, Identity id=None, is_bootstrap=False, cpp.in_port_t port=0, str ipv4="", str ipv6="", DhtConfig config=DhtConfig()): 2023-09-11T10:20:15,102 ^ 2023-09-11T10:20:15,103 ------------------------------------------------------------ 2023-09-11T10:20:15,104 opendht.pyx:492:56: 'in_port_t' is not a type identifier 2023-09-11T10:20:15,104 Error compiling Cython file: 2023-09-11T10:20:15,105 ------------------------------------------------------------ 2023-09-11T10:20:15,105 ... 2023-09-11T10:20:15,106 cpp.disableLogging(self.thisptr.get()[0]) 2023-09-11T10:20:15,106 def enableFileLogging(self, str path): 2023-09-11T10:20:15,107 cpp.enableFileLogging(self.thisptr.get()[0], path.encode()) 2023-09-11T10:20:15,107 def isRunning(self): 2023-09-11T10:20:15,107 return self.thisptr.get().isRunning() 2023-09-11T10:20:15,108 def getBound(self, cpp.sa_family_t af = 0): 2023-09-11T10:20:15,108 ^ 2023-09-11T10:20:15,109 ------------------------------------------------------------ 2023-09-11T10:20:15,109 opendht.pyx:515:23: 'sa_family_t' is not a type identifier 2023-09-11T10:20:15,110 Error compiling Cython file: 2023-09-11T10:20:15,111 ------------------------------------------------------------ 2023-09-11T10:20:15,111 ... 2023-09-11T10:20:15,112 s = SockAddr() 2023-09-11T10:20:15,113 s._addr = self.thisptr.get().getBound(af) 2023-09-11T10:20:15,113 return s 2023-09-11T10:20:15,114 def getStorageLog(self): 2023-09-11T10:20:15,114 return self.thisptr.get().getStorageLog().decode() 2023-09-11T10:20:15,115 def getRoutingTablesLog(self, cpp.sa_family_t af): 2023-09-11T10:20:15,115 ^ 2023-09-11T10:20:15,115 ------------------------------------------------------------ 2023-09-11T10:20:15,116 opendht.pyx:521:34: 'sa_family_t' is not a type identifier 2023-09-11T10:20:15,117 Error compiling Cython file: 2023-09-11T10:20:15,118 ------------------------------------------------------------ 2023-09-11T10:20:15,118 ... 2023-09-11T10:20:15,119 return s 2023-09-11T10:20:15,119 def getStorageLog(self): 2023-09-11T10:20:15,120 return self.thisptr.get().getStorageLog().decode() 2023-09-11T10:20:15,121 def getRoutingTablesLog(self, cpp.sa_family_t af): 2023-09-11T10:20:15,121 return self.thisptr.get().getRoutingTablesLog(af).decode() 2023-09-11T10:20:15,122 def getSearchesLog(self, cpp.sa_family_t af): 2023-09-11T10:20:15,122 ^ 2023-09-11T10:20:15,123 ------------------------------------------------------------ 2023-09-11T10:20:15,124 opendht.pyx:523:29: 'sa_family_t' is not a type identifier 2023-09-11T10:20:15,125 Error compiling Cython file: 2023-09-11T10:20:15,126 ------------------------------------------------------------ 2023-09-11T10:20:15,126 ... 2023-09-11T10:20:15,127 h = InfoHash() 2023-09-11T10:20:15,127 h._infohash = deref(dec(self._nodes.end())).first 2023-09-11T10:20:15,128 return h 2023-09-11T10:20:15,129 def __str__(self): 2023-09-11T10:20:15,130 s = '' 2023-09-11T10:20:15,130 cdef map[cpp.InfoHash, shared_ptr[cpp.Node]].iterator it = self._nodes.begin() 2023-09-11T10:20:15,131 ^ 2023-09-11T10:20:15,131 ------------------------------------------------------------ 2023-09-11T10:20:15,132 opendht.pyx:304:21: unknown type in template argument 2023-09-11T10:20:15,134 Error compiling Cython file: 2023-09-11T10:20:15,134 ------------------------------------------------------------ 2023-09-11T10:20:15,135 ... 2023-09-11T10:20:15,135 h = InfoHash() 2023-09-11T10:20:15,136 h._infohash = deref(dec(self._nodes.end())).first 2023-09-11T10:20:15,136 return h 2023-09-11T10:20:15,137 def __str__(self): 2023-09-11T10:20:15,137 s = '' 2023-09-11T10:20:15,138 cdef map[cpp.InfoHash, shared_ptr[cpp.Node]].iterator it = self._nodes.begin() 2023-09-11T10:20:15,139 ^ 2023-09-11T10:20:15,139 ------------------------------------------------------------ 2023-09-11T10:20:15,141 opendht.pyx:304:46: unknown type in template argument 2023-09-11T10:20:15,142 Error compiling Cython file: 2023-09-11T10:20:15,142 ------------------------------------------------------------ 2023-09-11T10:20:15,142 ... 2023-09-11T10:20:15,143 pk = PublicKey() 2023-09-11T10:20:15,143 pk._key = self._key.get().getPublicKey() 2023-09-11T10:20:15,144 return pk 2023-09-11T10:20:15,144 def decrypt(self, bytes dat): 2023-09-11T10:20:15,145 cdef size_t d_len = len(dat) 2023-09-11T10:20:15,145 cdef cpp.uint8_t* d_ptr = dat 2023-09-11T10:20:15,145 ^ 2023-09-11T10:20:15,146 ------------------------------------------------------------ 2023-09-11T10:20:15,147 opendht.pyx:324:13: 'uint8_t' is not a type identifier 2023-09-11T10:20:15,148 Error compiling Cython file: 2023-09-11T10:20:15,148 ------------------------------------------------------------ 2023-09-11T10:20:15,149 ... 2023-09-11T10:20:15,149 pk._key = self._key.get().getPublicKey() 2023-09-11T10:20:15,149 return pk 2023-09-11T10:20:15,150 def decrypt(self, bytes dat): 2023-09-11T10:20:15,151 cdef size_t d_len = len(dat) 2023-09-11T10:20:15,151 cdef cpp.uint8_t* d_ptr = dat 2023-09-11T10:20:15,151 cdef cpp.Blob indat 2023-09-11T10:20:15,152 ^ 2023-09-11T10:20:15,152 ------------------------------------------------------------ 2023-09-11T10:20:15,153 opendht.pyx:325:13: 'Blob' is not a type identifier 2023-09-11T10:20:15,154 Error compiling Cython file: 2023-09-11T10:20:15,155 ------------------------------------------------------------ 2023-09-11T10:20:15,155 ... 2023-09-11T10:20:15,156 def decrypt(self, bytes dat): 2023-09-11T10:20:15,156 cdef size_t d_len = len(dat) 2023-09-11T10:20:15,157 cdef cpp.uint8_t* d_ptr = dat 2023-09-11T10:20:15,157 cdef cpp.Blob indat 2023-09-11T10:20:15,158 indat.assign(d_ptr, (d_ptr + d_len)) 2023-09-11T10:20:15,159 cdef cpp.Blob decrypted = self._key.get().decrypt(indat) 2023-09-11T10:20:15,159 ^ 2023-09-11T10:20:15,160 ------------------------------------------------------------ 2023-09-11T10:20:15,161 opendht.pyx:327:13: 'Blob' is not a type identifier 2023-09-11T10:20:15,162 Error compiling Cython file: 2023-09-11T10:20:15,163 ------------------------------------------------------------ 2023-09-11T10:20:15,163 ... 2023-09-11T10:20:15,164 h = InfoHash() 2023-09-11T10:20:15,164 h._infohash = self._key.getId() 2023-09-11T10:20:15,165 return h 2023-09-11T10:20:15,166 def encrypt(self, bytes dat): 2023-09-11T10:20:15,166 cdef size_t d_len = len(dat) 2023-09-11T10:20:15,167 cdef cpp.uint8_t* d_ptr = dat 2023-09-11T10:20:15,167 ^ 2023-09-11T10:20:15,168 ------------------------------------------------------------ 2023-09-11T10:20:15,169 opendht.pyx:352:13: 'uint8_t' is not a type identifier 2023-09-11T10:20:15,170 Error compiling Cython file: 2023-09-11T10:20:15,171 ------------------------------------------------------------ 2023-09-11T10:20:15,171 ... 2023-09-11T10:20:15,172 h._infohash = self._key.getId() 2023-09-11T10:20:15,172 return h 2023-09-11T10:20:15,173 def encrypt(self, bytes dat): 2023-09-11T10:20:15,174 cdef size_t d_len = len(dat) 2023-09-11T10:20:15,174 cdef cpp.uint8_t* d_ptr = dat 2023-09-11T10:20:15,175 cdef cpp.Blob indat 2023-09-11T10:20:15,175 ^ 2023-09-11T10:20:15,176 ------------------------------------------------------------ 2023-09-11T10:20:15,177 opendht.pyx:353:13: 'Blob' is not a type identifier 2023-09-11T10:20:15,178 Error compiling Cython file: 2023-09-11T10:20:15,179 ------------------------------------------------------------ 2023-09-11T10:20:15,180 ... 2023-09-11T10:20:15,181 def encrypt(self, bytes dat): 2023-09-11T10:20:15,181 cdef size_t d_len = len(dat) 2023-09-11T10:20:15,181 cdef cpp.uint8_t* d_ptr = dat 2023-09-11T10:20:15,182 cdef cpp.Blob indat 2023-09-11T10:20:15,182 indat.assign(d_ptr, (d_ptr + d_len)) 2023-09-11T10:20:15,183 cdef cpp.Blob encrypted = self._key.encrypt(indat) 2023-09-11T10:20:15,183 ^ 2023-09-11T10:20:15,184 ------------------------------------------------------------ 2023-09-11T10:20:15,184 opendht.pyx:355:13: 'Blob' is not a type identifier 2023-09-11T10:20:15,185 Error compiling Cython file: 2023-09-11T10:20:15,186 ------------------------------------------------------------ 2023-09-11T10:20:15,186 ... 2023-09-11T10:20:15,186 return self.thisptr.get().getRoutingTablesLog(af).decode() 2023-09-11T10:20:15,187 def getSearchesLog(self, cpp.sa_family_t af): 2023-09-11T10:20:15,187 return self.thisptr.get().getSearchesLog(af).decode() 2023-09-11T10:20:15,188 def getNodeMessageStats(self): 2023-09-11T10:20:15,188 stats = [] 2023-09-11T10:20:15,188 cdef cpp.vector[unsigned] res = self.thisptr.get().getNodeMessageStats(False) 2023-09-11T10:20:15,189 ^ 2023-09-11T10:20:15,189 ------------------------------------------------------------ 2023-09-11T10:20:15,190 opendht.pyx:527:13: 'vector' is not a type identifier 2023-09-11T10:20:15,191 Error compiling Cython file: 2023-09-11T10:20:15,192 ------------------------------------------------------------ 2023-09-11T10:20:15,192 ... 2023-09-11T10:20:15,193 return self.thisptr.get().getRoutingTablesLog(af).decode() 2023-09-11T10:20:15,193 def getSearchesLog(self, cpp.sa_family_t af): 2023-09-11T10:20:15,194 return self.thisptr.get().getSearchesLog(af).decode() 2023-09-11T10:20:15,194 def getNodeMessageStats(self): 2023-09-11T10:20:15,195 stats = [] 2023-09-11T10:20:15,195 cdef cpp.vector[unsigned] res = self.thisptr.get().getNodeMessageStats(False) 2023-09-11T10:20:15,196 ^ 2023-09-11T10:20:15,196 ------------------------------------------------------------ 2023-09-11T10:20:15,197 opendht.pyx:527:13: 'vector' is not a type identifier 2023-09-11T10:20:15,488 Error compiling Cython file: 2023-09-11T10:20:15,488 ------------------------------------------------------------ 2023-09-11T10:20:15,489 ... 2023-09-11T10:20:15,489 return self.getId().toString().decode() 2023-09-11T10:20:15,491 cdef class InfoHash(_WithID): 2023-09-11T10:20:15,491 cdef cpp.InfoHash _infohash 2023-09-11T10:20:15,492 def __cinit__(self, bytes str=b''): 2023-09-11T10:20:15,492 self._infohash = cpp.InfoHash(str) if str else cpp.InfoHash() 2023-09-11T10:20:15,493 ^ 2023-09-11T10:20:15,493 ------------------------------------------------------------ 2023-09-11T10:20:15,494 opendht.pyx:97:28: cimported module has no attribute 'InfoHash' 2023-09-11T10:20:15,496 Error compiling Cython file: 2023-09-11T10:20:15,496 ------------------------------------------------------------ 2023-09-11T10:20:15,497 ... 2023-09-11T10:20:15,497 return self.getId().toString().decode() 2023-09-11T10:20:15,498 cdef class InfoHash(_WithID): 2023-09-11T10:20:15,499 cdef cpp.InfoHash _infohash 2023-09-11T10:20:15,499 def __cinit__(self, bytes str=b''): 2023-09-11T10:20:15,500 self._infohash = cpp.InfoHash(str) if str else cpp.InfoHash() 2023-09-11T10:20:15,501 ^ 2023-09-11T10:20:15,501 ------------------------------------------------------------ 2023-09-11T10:20:15,502 opendht.pyx:97:58: cimported module has no attribute 'InfoHash' 2023-09-11T10:20:15,504 Error compiling Cython file: 2023-09-11T10:20:15,504 ------------------------------------------------------------ 2023-09-11T10:20:15,505 ... 2023-09-11T10:20:15,506 return self._infohash.toString() 2023-09-11T10:20:15,507 def toFloat(InfoHash self): 2023-09-11T10:20:15,507 return self._infohash.toFloat() 2023-09-11T10:20:15,508 @staticmethod 2023-09-11T10:20:15,508 def commonBits(InfoHash a, InfoHash b): 2023-09-11T10:20:15,508 return cpp.InfoHash.commonBits(a._infohash, b._infohash) 2023-09-11T10:20:15,509 ^ 2023-09-11T10:20:15,509 ------------------------------------------------------------ 2023-09-11T10:20:15,510 opendht.pyx:120:18: cimported module has no attribute 'InfoHash' 2023-09-11T10:20:15,511 Error compiling Cython file: 2023-09-11T10:20:15,512 ------------------------------------------------------------ 2023-09-11T10:20:15,512 ... 2023-09-11T10:20:15,512 def commonBits(InfoHash a, InfoHash b): 2023-09-11T10:20:15,513 return cpp.InfoHash.commonBits(a._infohash, b._infohash) 2023-09-11T10:20:15,513 @staticmethod 2023-09-11T10:20:15,514 def get(str key): 2023-09-11T10:20:15,514 h = InfoHash() 2023-09-11T10:20:15,515 h._infohash = cpp.InfoHash.get(key.encode()) 2023-09-11T10:20:15,515 ^ 2023-09-11T10:20:15,516 ------------------------------------------------------------ 2023-09-11T10:20:15,517 opendht.pyx:124:25: cimported module has no attribute 'InfoHash' 2023-09-11T10:20:15,518 Error compiling Cython file: 2023-09-11T10:20:15,518 ------------------------------------------------------------ 2023-09-11T10:20:15,519 ... 2023-09-11T10:20:15,519 h._infohash = cpp.InfoHash.get(key.encode()) 2023-09-11T10:20:15,520 return h 2023-09-11T10:20:15,520 @staticmethod 2023-09-11T10:20:15,521 def getRandom(): 2023-09-11T10:20:15,521 h = InfoHash() 2023-09-11T10:20:15,522 h._infohash = cpp.InfoHash.getRandom() 2023-09-11T10:20:15,523 ^ 2023-09-11T10:20:15,523 ------------------------------------------------------------ 2023-09-11T10:20:15,525 opendht.pyx:129:25: cimported module has no attribute 'InfoHash' 2023-09-11T10:20:15,525 Error compiling Cython file: 2023-09-11T10:20:15,526 ------------------------------------------------------------ 2023-09-11T10:20:15,527 ... 2023-09-11T10:20:15,528 cdef class Node(_WithID): 2023-09-11T10:20:15,528 cdef shared_ptr[cpp.Node] _node 2023-09-11T10:20:15,529 def getId(self): 2023-09-11T10:20:15,529 h = InfoHash() 2023-09-11T10:20:15,530 h._infohash = self._node.get().getId() 2023-09-11T10:20:15,530 ^ 2023-09-11T10:20:15,531 ------------------------------------------------------------ 2023-09-11T10:20:15,532 opendht.pyx:159:36: Cannot convert '' to Python object 2023-09-11T10:20:15,533 Error compiling Cython file: 2023-09-11T10:20:15,534 ------------------------------------------------------------ 2023-09-11T10:20:15,535 ... 2023-09-11T10:20:15,535 def getId(self): 2023-09-11T10:20:15,536 h = InfoHash() 2023-09-11T10:20:15,536 h._infohash = self._node.get().getId() 2023-09-11T10:20:15,537 return h 2023-09-11T10:20:15,537 def getAddr(self): 2023-09-11T10:20:15,538 return self._node.get().getAddrStr() 2023-09-11T10:20:15,538 ^ 2023-09-11T10:20:15,539 ------------------------------------------------------------ 2023-09-11T10:20:15,540 opendht.pyx:162:29: Cannot convert '' to Python object 2023-09-11T10:20:15,541 Error compiling Cython file: 2023-09-11T10:20:15,542 ------------------------------------------------------------ 2023-09-11T10:20:15,542 ... 2023-09-11T10:20:15,543 h._infohash = self._node.get().getId() 2023-09-11T10:20:15,543 return h 2023-09-11T10:20:15,544 def getAddr(self): 2023-09-11T10:20:15,545 return self._node.get().getAddrStr() 2023-09-11T10:20:15,545 def isExpired(self): 2023-09-11T10:20:15,546 return self._node.get().isExpired() 2023-09-11T10:20:15,547 ^ 2023-09-11T10:20:15,547 ------------------------------------------------------------ 2023-09-11T10:20:15,548 opendht.pyx:164:29: Cannot convert '' to Python object 2023-09-11T10:20:15,549 Error compiling Cython file: 2023-09-11T10:20:15,549 ------------------------------------------------------------ 2023-09-11T10:20:15,550 ... 2023-09-11T10:20:15,550 h = InfoHash() 2023-09-11T10:20:15,551 h._infohash = self._v.first 2023-09-11T10:20:15,551 return h 2023-09-11T10:20:15,551 def getNode(self): 2023-09-11T10:20:15,552 n = Node() 2023-09-11T10:20:15,552 n._node = self._v.second 2023-09-11T10:20:15,553 ^ 2023-09-11T10:20:15,553 ------------------------------------------------------------ 2023-09-11T10:20:15,554 opendht.pyx:174:25: Cannot convert Python object to 'shared_ptr[]' 2023-09-11T10:20:15,555 Error compiling Cython file: 2023-09-11T10:20:15,556 ------------------------------------------------------------ 2023-09-11T10:20:15,556 ... 2023-09-11T10:20:15,557 return n 2023-09-11T10:20:15,558 cdef class Query(object): 2023-09-11T10:20:15,558 cdef cpp.Query _query 2023-09-11T10:20:15,559 def __cinit__(self, str q_str=''): 2023-09-11T10:20:15,559 self._query = cpp.Query(q_str.encode()) 2023-09-11T10:20:15,559 ^ 2023-09-11T10:20:15,560 ------------------------------------------------------------ 2023-09-11T10:20:15,561 opendht.pyx:180:25: cimported module has no attribute 'Query' 2023-09-11T10:20:15,562 Error compiling Cython file: 2023-09-11T10:20:15,562 ------------------------------------------------------------ 2023-09-11T10:20:15,563 ... 2023-09-11T10:20:15,564 def __cinit__(self, str q_str=''): 2023-09-11T10:20:15,564 self._query = cpp.Query(q_str.encode()) 2023-09-11T10:20:15,565 def __str__(self): 2023-09-11T10:20:15,565 return self._query.toString().decode() 2023-09-11T10:20:15,566 def buildFrom(self, Select s, Where w): 2023-09-11T10:20:15,566 self._query = cpp.Query(s._select, w._where) 2023-09-11T10:20:15,567 ^ 2023-09-11T10:20:15,568 ------------------------------------------------------------ 2023-09-11T10:20:15,569 opendht.pyx:184:25: cimported module has no attribute 'Query' 2023-09-11T10:20:15,570 Error compiling Cython file: 2023-09-11T10:20:15,571 ------------------------------------------------------------ 2023-09-11T10:20:15,571 ... 2023-09-11T10:20:15,572 cdef class Select(object): 2023-09-11T10:20:15,573 cdef cpp.Select _select 2023-09-11T10:20:15,574 def __cinit__(self, str q_str=None): 2023-09-11T10:20:15,574 if q_str: 2023-09-11T10:20:15,575 self._select = cpp.Select(q_str.encode()) 2023-09-11T10:20:15,575 ^ 2023-09-11T10:20:15,576 ------------------------------------------------------------ 2023-09-11T10:20:15,577 opendht.pyx:192:30: cimported module has no attribute 'Select' 2023-09-11T10:20:15,578 Error compiling Cython file: 2023-09-11T10:20:15,579 ------------------------------------------------------------ 2023-09-11T10:20:15,579 ... 2023-09-11T10:20:15,580 cdef cpp.Select _select 2023-09-11T10:20:15,580 def __cinit__(self, str q_str=None): 2023-09-11T10:20:15,581 if q_str: 2023-09-11T10:20:15,581 self._select = cpp.Select(q_str.encode()) 2023-09-11T10:20:15,582 else: 2023-09-11T10:20:15,583 self._select = cpp.Select() 2023-09-11T10:20:15,583 ^ 2023-09-11T10:20:15,584 ------------------------------------------------------------ 2023-09-11T10:20:15,585 opendht.pyx:194:30: cimported module has no attribute 'Select' 2023-09-11T10:20:15,586 Error compiling Cython file: 2023-09-11T10:20:15,587 ------------------------------------------------------------ 2023-09-11T10:20:15,588 ... 2023-09-11T10:20:15,588 def __str__(self): 2023-09-11T10:20:15,589 return self._select.toString().decode() 2023-09-11T10:20:15,589 def isSatisfiedBy(self, Select os): 2023-09-11T10:20:15,590 return self._select.isSatisfiedBy(os._select) 2023-09-11T10:20:15,590 def field(self, int field): 2023-09-11T10:20:15,591 self._select.field( field) 2023-09-11T10:20:15,591 ^ 2023-09-11T10:20:15,591 ------------------------------------------------------------ 2023-09-11T10:20:15,592 opendht.pyx:200:28: 'Field' is not a type identifier 2023-09-11T10:20:15,593 Error compiling Cython file: 2023-09-11T10:20:15,594 ------------------------------------------------------------ 2023-09-11T10:20:15,594 ... 2023-09-11T10:20:15,595 cdef class Where(object): 2023-09-11T10:20:15,596 cdef cpp.Where _where 2023-09-11T10:20:15,596 def __cinit__(self, str q_str=None): 2023-09-11T10:20:15,596 if q_str: 2023-09-11T10:20:15,597 self._where = cpp.Where(q_str.encode()) 2023-09-11T10:20:15,597 ^ 2023-09-11T10:20:15,598 ------------------------------------------------------------ 2023-09-11T10:20:15,600 opendht.pyx:207:29: cimported module has no attribute 'Where' 2023-09-11T10:20:15,601 Error compiling Cython file: 2023-09-11T10:20:15,601 ------------------------------------------------------------ 2023-09-11T10:20:15,602 ... 2023-09-11T10:20:15,602 cdef cpp.Where _where 2023-09-11T10:20:15,603 def __cinit__(self, str q_str=None): 2023-09-11T10:20:15,603 if q_str: 2023-09-11T10:20:15,604 self._where = cpp.Where(q_str.encode()) 2023-09-11T10:20:15,604 else: 2023-09-11T10:20:15,604 self._where = cpp.Where() 2023-09-11T10:20:15,605 ^ 2023-09-11T10:20:15,606 ------------------------------------------------------------ 2023-09-11T10:20:15,607 opendht.pyx:209:29: cimported module has no attribute 'Where' 2023-09-11T10:20:15,608 Error compiling Cython file: 2023-09-11T10:20:15,608 ------------------------------------------------------------ 2023-09-11T10:20:15,609 ... 2023-09-11T10:20:15,610 return self 2023-09-11T10:20:15,611 cdef class Value(object): 2023-09-11T10:20:15,612 cdef shared_ptr[cpp.Value] _value 2023-09-11T10:20:15,612 def __init__(self, bytes val=b''): 2023-09-11T10:20:15,613 self._value.reset(new cpp.Value(val, len(val))) 2023-09-11T10:20:15,613 ^ 2023-09-11T10:20:15,614 ------------------------------------------------------------ 2023-09-11T10:20:15,615 opendht.pyx:233:30: 'Value' is not a type identifier 2023-09-11T10:20:15,616 Error compiling Cython file: 2023-09-11T10:20:15,617 ------------------------------------------------------------ 2023-09-11T10:20:15,617 ... 2023-09-11T10:20:15,618 return self 2023-09-11T10:20:15,619 cdef class Value(object): 2023-09-11T10:20:15,619 cdef shared_ptr[cpp.Value] _value 2023-09-11T10:20:15,620 def __init__(self, bytes val=b''): 2023-09-11T10:20:15,620 self._value.reset(new cpp.Value(val, len(val))) 2023-09-11T10:20:15,621 ^ 2023-09-11T10:20:15,622 ------------------------------------------------------------ 2023-09-11T10:20:15,623 opendht.pyx:233:26: new operator can only be applied to a C++ class 2023-09-11T10:20:15,624 Error compiling Cython file: 2023-09-11T10:20:15,624 ------------------------------------------------------------ 2023-09-11T10:20:15,625 ... 2023-09-11T10:20:15,626 cdef class Value(object): 2023-09-11T10:20:15,626 cdef shared_ptr[cpp.Value] _value 2023-09-11T10:20:15,627 def __init__(self, bytes val=b''): 2023-09-11T10:20:15,627 self._value.reset(new cpp.Value(val, len(val))) 2023-09-11T10:20:15,628 def __str__(self): 2023-09-11T10:20:15,628 return self._value.get().toString().decode() 2023-09-11T10:20:15,629 ^ 2023-09-11T10:20:15,630 ------------------------------------------------------------ 2023-09-11T10:20:15,631 opendht.pyx:235:30: Cannot convert '' to Python object 2023-09-11T10:20:15,632 Error compiling Cython file: 2023-09-11T10:20:15,632 ------------------------------------------------------------ 2023-09-11T10:20:15,633 ... 2023-09-11T10:20:15,633 def __str__(self): 2023-09-11T10:20:15,634 return self._value.get().toString().decode() 2023-09-11T10:20:15,634 property owner: 2023-09-11T10:20:15,634 def __get__(self): 2023-09-11T10:20:15,635 h = InfoHash() 2023-09-11T10:20:15,635 h._infohash = self._value.get().owner.get().getId() 2023-09-11T10:20:15,636 ^ 2023-09-11T10:20:15,636 ------------------------------------------------------------ 2023-09-11T10:20:15,637 opendht.pyx:239:41: Cannot convert '' to Python object 2023-09-11T10:20:15,638 Error compiling Cython file: 2023-09-11T10:20:15,639 ------------------------------------------------------------ 2023-09-11T10:20:15,639 ... 2023-09-11T10:20:15,639 h._infohash = self._value.get().owner.get().getId() 2023-09-11T10:20:15,640 return h 2023-09-11T10:20:15,640 property recipient: 2023-09-11T10:20:15,641 def __get__(self): 2023-09-11T10:20:15,641 h = InfoHash() 2023-09-11T10:20:15,641 h._infohash = self._value.get().recipient 2023-09-11T10:20:15,642 ^ 2023-09-11T10:20:15,642 ------------------------------------------------------------ 2023-09-11T10:20:15,643 opendht.pyx:244:41: Cannot convert '' to Python object 2023-09-11T10:20:15,644 Error compiling Cython file: 2023-09-11T10:20:15,644 ------------------------------------------------------------ 2023-09-11T10:20:15,645 ... 2023-09-11T10:20:15,645 def __get__(self): 2023-09-11T10:20:15,646 h = InfoHash() 2023-09-11T10:20:15,646 h._infohash = self._value.get().recipient 2023-09-11T10:20:15,647 return h 2023-09-11T10:20:15,648 def __set__(self, InfoHash h): 2023-09-11T10:20:15,648 self._value.get().recipient = h._infohash 2023-09-11T10:20:15,649 ^ 2023-09-11T10:20:15,649 ------------------------------------------------------------ 2023-09-11T10:20:15,650 opendht.pyx:247:27: Cannot convert '' to Python object 2023-09-11T10:20:15,652 Error compiling Cython file: 2023-09-11T10:20:15,652 ------------------------------------------------------------ 2023-09-11T10:20:15,653 ... 2023-09-11T10:20:15,653 return h 2023-09-11T10:20:15,654 def __set__(self, InfoHash h): 2023-09-11T10:20:15,654 self._value.get().recipient = h._infohash 2023-09-11T10:20:15,655 property data: 2023-09-11T10:20:15,655 def __get__(self): 2023-09-11T10:20:15,656 return string(self._value.get().data.data(), self._value.get().data.size()) 2023-09-11T10:20:15,656 ^ 2023-09-11T10:20:15,657 ------------------------------------------------------------ 2023-09-11T10:20:15,658 opendht.pyx:250:48: Cannot convert '' to Python object 2023-09-11T10:20:15,659 Error compiling Cython file: 2023-09-11T10:20:15,659 ------------------------------------------------------------ 2023-09-11T10:20:15,660 ... 2023-09-11T10:20:15,660 return h 2023-09-11T10:20:15,661 def __set__(self, InfoHash h): 2023-09-11T10:20:15,661 self._value.get().recipient = h._infohash 2023-09-11T10:20:15,662 property data: 2023-09-11T10:20:15,662 def __get__(self): 2023-09-11T10:20:15,663 return string(self._value.get().data.data(), self._value.get().data.size()) 2023-09-11T10:20:15,663 ^ 2023-09-11T10:20:15,664 ------------------------------------------------------------ 2023-09-11T10:20:15,665 opendht.pyx:250:26: Casting temporary Python object to non-numeric non-Python type 2023-09-11T10:20:15,666 Error compiling Cython file: 2023-09-11T10:20:15,666 ------------------------------------------------------------ 2023-09-11T10:20:15,667 ... 2023-09-11T10:20:15,667 return h 2023-09-11T10:20:15,667 def __set__(self, InfoHash h): 2023-09-11T10:20:15,668 self._value.get().recipient = h._infohash 2023-09-11T10:20:15,668 property data: 2023-09-11T10:20:15,669 def __get__(self): 2023-09-11T10:20:15,669 return string(self._value.get().data.data(), self._value.get().data.size()) 2023-09-11T10:20:15,669 ^ 2023-09-11T10:20:15,670 ------------------------------------------------------------ 2023-09-11T10:20:15,671 opendht.pyx:250:79: Cannot convert '' to Python object 2023-09-11T10:20:15,671 Error compiling Cython file: 2023-09-11T10:20:15,672 ------------------------------------------------------------ 2023-09-11T10:20:15,672 ... 2023-09-11T10:20:15,673 return h 2023-09-11T10:20:15,673 def __set__(self, InfoHash h): 2023-09-11T10:20:15,674 self._value.get().recipient = h._infohash 2023-09-11T10:20:15,674 property data: 2023-09-11T10:20:15,675 def __get__(self): 2023-09-11T10:20:15,675 return string(self._value.get().data.data(), self._value.get().data.size()) 2023-09-11T10:20:15,675 ^ 2023-09-11T10:20:15,676 ------------------------------------------------------------ 2023-09-11T10:20:15,677 opendht.pyx:250:25: no suitable method found 2023-09-11T10:20:15,678 Error compiling Cython file: 2023-09-11T10:20:15,678 ------------------------------------------------------------ 2023-09-11T10:20:15,679 ... 2023-09-11T10:20:15,679 self._value.get().recipient = h._infohash 2023-09-11T10:20:15,680 property data: 2023-09-11T10:20:15,680 def __get__(self): 2023-09-11T10:20:15,681 return string(self._value.get().data.data(), self._value.get().data.size()) 2023-09-11T10:20:15,720 def __set__(self, bytes value): 2023-09-11T10:20:15,721 self._value.get().data = value 2023-09-11T10:20:15,721 ^ 2023-09-11T10:20:15,722 ------------------------------------------------------------ 2023-09-11T10:20:15,723 opendht.pyx:252:27: Cannot convert '' to Python object 2023-09-11T10:20:15,724 Error compiling Cython file: 2023-09-11T10:20:15,724 ------------------------------------------------------------ 2023-09-11T10:20:15,725 ... 2023-09-11T10:20:15,726 return string(self._value.get().data.data(), self._value.get().data.size()) 2023-09-11T10:20:15,726 def __set__(self, bytes value): 2023-09-11T10:20:15,727 self._value.get().data = value 2023-09-11T10:20:15,727 property user_type: 2023-09-11T10:20:15,728 def __get__(self): 2023-09-11T10:20:15,728 return self._value.get().user_type.decode() 2023-09-11T10:20:15,729 ^ 2023-09-11T10:20:15,729 ------------------------------------------------------------ 2023-09-11T10:20:15,730 opendht.pyx:255:34: Cannot convert '' to Python object 2023-09-11T10:20:15,731 Error compiling Cython file: 2023-09-11T10:20:15,732 ------------------------------------------------------------ 2023-09-11T10:20:15,732 ... 2023-09-11T10:20:15,733 self._value.get().data = value 2023-09-11T10:20:15,733 property user_type: 2023-09-11T10:20:15,734 def __get__(self): 2023-09-11T10:20:15,734 return self._value.get().user_type.decode() 2023-09-11T10:20:15,735 def __set__(self, str t): 2023-09-11T10:20:15,735 self._value.get().user_type = t.encode() 2023-09-11T10:20:15,736 ^ 2023-09-11T10:20:15,737 ------------------------------------------------------------ 2023-09-11T10:20:15,737 opendht.pyx:257:27: Cannot convert '' to Python object 2023-09-11T10:20:15,738 Error compiling Cython file: 2023-09-11T10:20:15,739 ------------------------------------------------------------ 2023-09-11T10:20:15,739 ... 2023-09-11T10:20:15,740 return self._value.get().user_type.decode() 2023-09-11T10:20:15,740 def __set__(self, str t): 2023-09-11T10:20:15,740 self._value.get().user_type = t.encode() 2023-09-11T10:20:15,741 property id: 2023-09-11T10:20:15,741 def __get__(self): 2023-09-11T10:20:15,742 return self._value.get().id 2023-09-11T10:20:15,742 ^ 2023-09-11T10:20:15,743 ------------------------------------------------------------ 2023-09-11T10:20:15,743 opendht.pyx:260:34: Cannot convert '' to Python object 2023-09-11T10:20:15,744 Error compiling Cython file: 2023-09-11T10:20:15,745 ------------------------------------------------------------ 2023-09-11T10:20:15,745 ... 2023-09-11T10:20:15,745 self._value.get().user_type = t.encode() 2023-09-11T10:20:15,746 property id: 2023-09-11T10:20:15,746 def __get__(self): 2023-09-11T10:20:15,747 return self._value.get().id 2023-09-11T10:20:15,747 def __set__(self, cpp.uint64_t value): 2023-09-11T10:20:15,748 self._value.get().id = value 2023-09-11T10:20:15,748 ^ 2023-09-11T10:20:15,749 ------------------------------------------------------------ 2023-09-11T10:20:15,750 opendht.pyx:262:27: Cannot convert '' to Python object 2023-09-11T10:20:15,751 Error compiling Cython file: 2023-09-11T10:20:15,751 ------------------------------------------------------------ 2023-09-11T10:20:15,752 ... 2023-09-11T10:20:15,752 return self._value.get().id 2023-09-11T10:20:15,753 def __set__(self, cpp.uint64_t value): 2023-09-11T10:20:15,753 self._value.get().id = value 2023-09-11T10:20:15,754 property size: 2023-09-11T10:20:15,754 def __get__(self): 2023-09-11T10:20:15,755 return self._value.get().size() 2023-09-11T10:20:15,755 ^ 2023-09-11T10:20:15,756 ------------------------------------------------------------ 2023-09-11T10:20:15,757 opendht.pyx:265:34: Cannot convert '' to Python object 2023-09-11T10:20:15,758 Error compiling Cython file: 2023-09-11T10:20:15,759 ------------------------------------------------------------ 2023-09-11T10:20:15,759 ... 2023-09-11T10:20:15,760 return h 2023-09-11T10:20:15,760 def __str__(self): 2023-09-11T10:20:15,761 s = '' 2023-09-11T10:20:15,761 cdef map[cpp.InfoHash, shared_ptr[cpp.Node]].iterator it = self._nodes.begin() 2023-09-11T10:20:15,762 while it != self._nodes.end(): 2023-09-11T10:20:15,762 s += deref(it).first.toString().decode() + ' ' + deref(it).second.get().getAddrStr().decode() + '\n' 2023-09-11T10:20:15,763 ^ 2023-09-11T10:20:15,764 ------------------------------------------------------------ 2023-09-11T10:20:15,765 opendht.pyx:306:81: Cannot convert '' to Python object 2023-09-11T10:20:15,766 Error compiling Cython file: 2023-09-11T10:20:15,766 ------------------------------------------------------------ 2023-09-11T10:20:15,767 ... 2023-09-11T10:20:15,768 cdef class PrivateKey(_WithID): 2023-09-11T10:20:15,768 cdef shared_ptr[cpp.PrivateKey] _key 2023-09-11T10:20:15,769 def getId(self): 2023-09-11T10:20:15,770 h = InfoHash() 2023-09-11T10:20:15,770 h._infohash = self._key.get().getPublicKey().getId() 2023-09-11T10:20:15,771 ^ 2023-09-11T10:20:15,771 ------------------------------------------------------------ 2023-09-11T10:20:15,773 opendht.pyx:316:35: Cannot convert '' to Python object 2023-09-11T10:20:15,774 Error compiling Cython file: 2023-09-11T10:20:15,774 ------------------------------------------------------------ 2023-09-11T10:20:15,775 ... 2023-09-11T10:20:15,775 h = InfoHash() 2023-09-11T10:20:15,775 h._infohash = self._key.get().getPublicKey().getId() 2023-09-11T10:20:15,776 return h 2023-09-11T10:20:15,776 def getPublicKey(self): 2023-09-11T10:20:15,776 pk = PublicKey() 2023-09-11T10:20:15,777 pk._key = self._key.get().getPublicKey() 2023-09-11T10:20:15,777 ^ 2023-09-11T10:20:15,778 ------------------------------------------------------------ 2023-09-11T10:20:15,779 opendht.pyx:320:31: Cannot convert '' to Python object 2023-09-11T10:20:15,779 Error compiling Cython file: 2023-09-11T10:20:15,780 ------------------------------------------------------------ 2023-09-11T10:20:15,780 ... 2023-09-11T10:20:15,781 pk = PublicKey() 2023-09-11T10:20:15,781 pk._key = self._key.get().getPublicKey() 2023-09-11T10:20:15,782 return pk 2023-09-11T10:20:15,782 def decrypt(self, bytes dat): 2023-09-11T10:20:15,783 cdef size_t d_len = len(dat) 2023-09-11T10:20:15,783 cdef cpp.uint8_t* d_ptr = dat 2023-09-11T10:20:15,784 ^ 2023-09-11T10:20:15,784 ------------------------------------------------------------ 2023-09-11T10:20:15,785 opendht.pyx:324:35: 'uint8_t' is not a type identifier 2023-09-11T10:20:15,786 Error compiling Cython file: 2023-09-11T10:20:15,787 ------------------------------------------------------------ 2023-09-11T10:20:15,787 ... 2023-09-11T10:20:15,788 return pk 2023-09-11T10:20:15,788 def decrypt(self, bytes dat): 2023-09-11T10:20:15,789 cdef size_t d_len = len(dat) 2023-09-11T10:20:15,790 cdef cpp.uint8_t* d_ptr = dat 2023-09-11T10:20:15,790 cdef cpp.Blob indat 2023-09-11T10:20:15,791 indat.assign(d_ptr, (d_ptr + d_len)) 2023-09-11T10:20:15,792 ^ 2023-09-11T10:20:15,792 ------------------------------------------------------------ 2023-09-11T10:20:15,793 opendht.pyx:326:29: 'uint8_t' is not a type identifier 2023-09-11T10:20:15,794 Error compiling Cython file: 2023-09-11T10:20:15,795 ------------------------------------------------------------ 2023-09-11T10:20:15,796 ... 2023-09-11T10:20:15,796 def decrypt(self, bytes dat): 2023-09-11T10:20:15,797 cdef size_t d_len = len(dat) 2023-09-11T10:20:15,797 cdef cpp.uint8_t* d_ptr = dat 2023-09-11T10:20:15,798 cdef cpp.Blob indat 2023-09-11T10:20:15,798 indat.assign(d_ptr, (d_ptr + d_len)) 2023-09-11T10:20:15,799 cdef cpp.Blob decrypted = self._key.get().decrypt(indat) 2023-09-11T10:20:15,799 ^ 2023-09-11T10:20:15,800 ------------------------------------------------------------ 2023-09-11T10:20:15,801 opendht.pyx:327:47: Cannot convert '' to Python object 2023-09-11T10:20:15,802 Error compiling Cython file: 2023-09-11T10:20:15,802 ------------------------------------------------------------ 2023-09-11T10:20:15,803 ... 2023-09-11T10:20:15,803 cdef size_t d_len = len(dat) 2023-09-11T10:20:15,804 cdef cpp.uint8_t* d_ptr = dat 2023-09-11T10:20:15,804 cdef cpp.Blob indat 2023-09-11T10:20:15,805 indat.assign(d_ptr, (d_ptr + d_len)) 2023-09-11T10:20:15,806 cdef cpp.Blob decrypted = self._key.get().decrypt(indat) 2023-09-11T10:20:15,806 cdef char* decrypted_c_str = decrypted.data() 2023-09-11T10:20:15,807 ^ 2023-09-11T10:20:15,807 ------------------------------------------------------------ 2023-09-11T10:20:15,809 opendht.pyx:328:37: Casting temporary Python object to non-numeric non-Python type 2023-09-11T10:20:15,809 Error compiling Cython file: 2023-09-11T10:20:15,810 ------------------------------------------------------------ 2023-09-11T10:20:15,810 ... 2023-09-11T10:20:15,811 cdef size_t d_len = len(dat) 2023-09-11T10:20:15,811 cdef cpp.uint8_t* d_ptr = dat 2023-09-11T10:20:15,811 cdef cpp.Blob indat 2023-09-11T10:20:15,812 indat.assign(d_ptr, (d_ptr + d_len)) 2023-09-11T10:20:15,812 cdef cpp.Blob decrypted = self._key.get().decrypt(indat) 2023-09-11T10:20:15,813 cdef char* decrypted_c_str = decrypted.data() 2023-09-11T10:20:15,813 ^ 2023-09-11T10:20:15,813 ------------------------------------------------------------ 2023-09-11T10:20:15,814 opendht.pyx:328:13: Storing unsafe C derivative of temporary Python reference 2023-09-11T10:20:15,815 Error compiling Cython file: 2023-09-11T10:20:15,815 ------------------------------------------------------------ 2023-09-11T10:20:15,816 ... 2023-09-11T10:20:15,816 def __str__(self): 2023-09-11T10:20:15,817 return self.getId().toString().decode() 2023-09-11T10:20:15,817 @staticmethod 2023-09-11T10:20:15,818 def generate(): 2023-09-11T10:20:15,818 k = PrivateKey() 2023-09-11T10:20:15,819 k._key = cpp.make_shared[cpp.PrivateKey](cpp.PrivateKey.generate()) 2023-09-11T10:20:15,819 ^ 2023-09-11T10:20:15,819 ------------------------------------------------------------ 2023-09-11T10:20:15,820 opendht.pyx:336:20: cimported module has no attribute 'make_shared' 2023-09-11T10:20:15,821 Error compiling Cython file: 2023-09-11T10:20:15,822 ------------------------------------------------------------ 2023-09-11T10:20:15,822 ... 2023-09-11T10:20:15,823 def __str__(self): 2023-09-11T10:20:15,823 return self.getId().toString().decode() 2023-09-11T10:20:15,824 @staticmethod 2023-09-11T10:20:15,824 def generate(): 2023-09-11T10:20:15,825 k = PrivateKey() 2023-09-11T10:20:15,825 k._key = cpp.make_shared[cpp.PrivateKey](cpp.PrivateKey.generate()) 2023-09-11T10:20:15,826 ^ 2023-09-11T10:20:15,826 ------------------------------------------------------------ 2023-09-11T10:20:15,827 opendht.pyx:336:52: cimported module has no attribute 'PrivateKey' 2023-09-11T10:20:15,829 Error compiling Cython file: 2023-09-11T10:20:15,829 ------------------------------------------------------------ 2023-09-11T10:20:15,830 ... 2023-09-11T10:20:15,831 k._key = cpp.make_shared[cpp.PrivateKey](cpp.PrivateKey.generate()) 2023-09-11T10:20:15,831 return k 2023-09-11T10:20:15,832 @staticmethod 2023-09-11T10:20:15,833 def generateEC(): 2023-09-11T10:20:15,833 k = PrivateKey() 2023-09-11T10:20:15,834 k._key = cpp.make_shared[cpp.PrivateKey](cpp.PrivateKey.generateEC()) 2023-09-11T10:20:15,834 ^ 2023-09-11T10:20:15,835 ------------------------------------------------------------ 2023-09-11T10:20:15,836 opendht.pyx:341:20: cimported module has no attribute 'make_shared' 2023-09-11T10:20:15,837 Error compiling Cython file: 2023-09-11T10:20:15,837 ------------------------------------------------------------ 2023-09-11T10:20:15,838 ... 2023-09-11T10:20:15,838 k._key = cpp.make_shared[cpp.PrivateKey](cpp.PrivateKey.generate()) 2023-09-11T10:20:15,839 return k 2023-09-11T10:20:15,839 @staticmethod 2023-09-11T10:20:15,840 def generateEC(): 2023-09-11T10:20:15,840 k = PrivateKey() 2023-09-11T10:20:15,841 k._key = cpp.make_shared[cpp.PrivateKey](cpp.PrivateKey.generateEC()) 2023-09-11T10:20:15,842 ^ 2023-09-11T10:20:15,842 ------------------------------------------------------------ 2023-09-11T10:20:15,843 opendht.pyx:341:52: cimported module has no attribute 'PrivateKey' 2023-09-11T10:20:15,844 Error compiling Cython file: 2023-09-11T10:20:15,845 ------------------------------------------------------------ 2023-09-11T10:20:15,845 ... 2023-09-11T10:20:15,845 h = InfoHash() 2023-09-11T10:20:15,846 h._infohash = self._key.getId() 2023-09-11T10:20:15,846 return h 2023-09-11T10:20:15,847 def encrypt(self, bytes dat): 2023-09-11T10:20:15,847 cdef size_t d_len = len(dat) 2023-09-11T10:20:15,848 cdef cpp.uint8_t* d_ptr = dat 2023-09-11T10:20:15,848 ^ 2023-09-11T10:20:15,849 ------------------------------------------------------------ 2023-09-11T10:20:15,849 opendht.pyx:352:35: 'uint8_t' is not a type identifier 2023-09-11T10:20:15,850 Error compiling Cython file: 2023-09-11T10:20:15,851 ------------------------------------------------------------ 2023-09-11T10:20:15,851 ... 2023-09-11T10:20:15,852 return h 2023-09-11T10:20:15,852 def encrypt(self, bytes dat): 2023-09-11T10:20:15,853 cdef size_t d_len = len(dat) 2023-09-11T10:20:15,853 cdef cpp.uint8_t* d_ptr = dat 2023-09-11T10:20:15,853 cdef cpp.Blob indat 2023-09-11T10:20:15,854 indat.assign(d_ptr, (d_ptr + d_len)) 2023-09-11T10:20:15,854 ^ 2023-09-11T10:20:15,855 ------------------------------------------------------------ 2023-09-11T10:20:15,856 opendht.pyx:354:29: 'uint8_t' is not a type identifier 2023-09-11T10:20:15,857 Error compiling Cython file: 2023-09-11T10:20:15,857 ------------------------------------------------------------ 2023-09-11T10:20:15,858 ... 2023-09-11T10:20:15,858 cdef size_t d_len = len(dat) 2023-09-11T10:20:15,859 cdef cpp.uint8_t* d_ptr = dat 2023-09-11T10:20:15,859 cdef cpp.Blob indat 2023-09-11T10:20:15,860 indat.assign(d_ptr, (d_ptr + d_len)) 2023-09-11T10:20:15,861 cdef cpp.Blob encrypted = self._key.encrypt(indat) 2023-09-11T10:20:15,861 cdef char* encrypted_c_str = encrypted.data() 2023-09-11T10:20:15,862 ^ 2023-09-11T10:20:15,862 ------------------------------------------------------------ 2023-09-11T10:20:15,863 opendht.pyx:356:37: Casting temporary Python object to non-numeric non-Python type 2023-09-11T10:20:15,865 Error compiling Cython file: 2023-09-11T10:20:15,865 ------------------------------------------------------------ 2023-09-11T10:20:15,866 ... 2023-09-11T10:20:15,867 cdef size_t d_len = len(dat) 2023-09-11T10:20:15,867 cdef cpp.uint8_t* d_ptr = dat 2023-09-11T10:20:15,868 cdef cpp.Blob indat 2023-09-11T10:20:15,868 indat.assign(d_ptr, (d_ptr + d_len)) 2023-09-11T10:20:15,869 cdef cpp.Blob encrypted = self._key.encrypt(indat) 2023-09-11T10:20:15,870 cdef char* encrypted_c_str = encrypted.data() 2023-09-11T10:20:15,870 ^ 2023-09-11T10:20:15,871 ------------------------------------------------------------ 2023-09-11T10:20:15,872 opendht.pyx:356:13: Storing unsafe C derivative of temporary Python reference 2023-09-11T10:20:15,873 Error compiling Cython file: 2023-09-11T10:20:15,873 ------------------------------------------------------------ 2023-09-11T10:20:15,874 ... 2023-09-11T10:20:15,875 cdef class Certificate(_WithID): 2023-09-11T10:20:15,876 cdef shared_ptr[cpp.Certificate] _cert 2023-09-11T10:20:15,876 def __init__(self, bytes dat = None): 2023-09-11T10:20:15,877 if dat: 2023-09-11T10:20:15,878 self._cert = cpp.make_shared[cpp.Certificate](dat) 2023-09-11T10:20:15,879 ^ 2023-09-11T10:20:15,879 ------------------------------------------------------------ 2023-09-11T10:20:15,880 opendht.pyx:364:28: cimported module has no attribute 'make_shared' 2023-09-11T10:20:15,882 Error compiling Cython file: 2023-09-11T10:20:15,882 ------------------------------------------------------------ 2023-09-11T10:20:15,883 ... 2023-09-11T10:20:15,884 cdef class Certificate(_WithID): 2023-09-11T10:20:15,884 cdef shared_ptr[cpp.Certificate] _cert 2023-09-11T10:20:15,884 def __init__(self, bytes dat = None): 2023-09-11T10:20:15,885 if dat: 2023-09-11T10:20:15,885 self._cert = cpp.make_shared[cpp.Certificate](dat) 2023-09-11T10:20:15,885 ^ 2023-09-11T10:20:15,886 ------------------------------------------------------------ 2023-09-11T10:20:15,887 opendht.pyx:364:59: 'string' is not a type identifier 2023-09-11T10:20:15,888 Error compiling Cython file: 2023-09-11T10:20:15,888 ------------------------------------------------------------ 2023-09-11T10:20:15,888 ... 2023-09-11T10:20:15,889 if dat: 2023-09-11T10:20:15,889 self._cert = cpp.make_shared[cpp.Certificate](dat) 2023-09-11T10:20:15,890 def getId(self): 2023-09-11T10:20:15,890 h = InfoHash() 2023-09-11T10:20:15,890 if self._cert: 2023-09-11T10:20:15,891 h._infohash = self._cert.get().getId() 2023-09-11T10:20:15,891 ^ 2023-09-11T10:20:15,891 ------------------------------------------------------------ 2023-09-11T10:20:15,892 opendht.pyx:368:40: Cannot convert '' to Python object 2023-09-11T10:20:15,893 Error compiling Cython file: 2023-09-11T10:20:15,894 ------------------------------------------------------------ 2023-09-11T10:20:15,894 ... 2023-09-11T10:20:15,895 h = InfoHash() 2023-09-11T10:20:15,895 if self._cert: 2023-09-11T10:20:15,896 h._infohash = self._cert.get().getId() 2023-09-11T10:20:15,896 return h 2023-09-11T10:20:15,897 def toString(self): 2023-09-11T10:20:15,897 return self._cert.get().toString().decode() 2023-09-11T10:20:15,898 ^ 2023-09-11T10:20:15,898 ------------------------------------------------------------ 2023-09-11T10:20:15,899 opendht.pyx:371:29: Cannot convert '' to Python object 2023-09-11T10:20:15,900 Error compiling Cython file: 2023-09-11T10:20:15,901 ------------------------------------------------------------ 2023-09-11T10:20:15,902 ... 2023-09-11T10:20:15,902 h._infohash = self._cert.get().getId() 2023-09-11T10:20:15,903 return h 2023-09-11T10:20:15,903 def toString(self): 2023-09-11T10:20:15,904 return self._cert.get().toString().decode() 2023-09-11T10:20:15,904 def getName(self): 2023-09-11T10:20:15,905 return self._cert.get().getName() 2023-09-11T10:20:15,905 ^ 2023-09-11T10:20:15,906 ------------------------------------------------------------ 2023-09-11T10:20:15,907 opendht.pyx:373:29: Cannot convert '' to Python object 2023-09-11T10:20:15,908 Error compiling Cython file: 2023-09-11T10:20:15,909 ------------------------------------------------------------ 2023-09-11T10:20:15,909 ... 2023-09-11T10:20:15,910 def toString(self): 2023-09-11T10:20:15,910 return self._cert.get().toString().decode() 2023-09-11T10:20:15,911 def getName(self): 2023-09-11T10:20:15,911 return self._cert.get().getName() 2023-09-11T10:20:15,912 def revoke(self, PrivateKey k, Certificate c): 2023-09-11T10:20:15,912 self._cert.get().revoke(deref(k._key.get()), deref(c._cert.get())); 2023-09-11T10:20:15,913 ^ 2023-09-11T10:20:15,913 ------------------------------------------------------------ 2023-09-11T10:20:15,914 opendht.pyx:375:22: Cannot convert '' to Python object 2023-09-11T10:20:15,915 Error compiling Cython file: 2023-09-11T10:20:15,916 ------------------------------------------------------------ 2023-09-11T10:20:15,916 ... 2023-09-11T10:20:15,917 def getName(self): 2023-09-11T10:20:15,917 return self._cert.get().getName() 2023-09-11T10:20:15,918 def revoke(self, PrivateKey k, Certificate c): 2023-09-11T10:20:15,919 self._cert.get().revoke(deref(k._key.get()), deref(c._cert.get())); 2023-09-11T10:20:15,919 def __bytes__(self): 2023-09-11T10:20:15,919 return self._cert.get().toString() if self._cert else b'' 2023-09-11T10:20:15,920 ^ 2023-09-11T10:20:15,920 ------------------------------------------------------------ 2023-09-11T10:20:15,921 opendht.pyx:377:29: Cannot convert '' to Python object 2023-09-11T10:20:15,921 Error compiling Cython file: 2023-09-11T10:20:15,922 ------------------------------------------------------------ 2023-09-11T10:20:15,922 ... 2023-09-11T10:20:15,923 def __bytes__(self): 2023-09-11T10:20:15,923 return self._cert.get().toString() if self._cert else b'' 2023-09-11T10:20:15,923 property issuer: 2023-09-11T10:20:15,924 def __get__(self): 2023-09-11T10:20:15,924 c = Certificate() 2023-09-11T10:20:15,925 c._cert = self._cert.get().issuer 2023-09-11T10:20:15,925 ^ 2023-09-11T10:20:15,926 ------------------------------------------------------------ 2023-09-11T10:20:15,927 opendht.pyx:381:36: Cannot convert '' to Python object 2023-09-11T10:20:15,927 Error compiling Cython file: 2023-09-11T10:20:15,928 ------------------------------------------------------------ 2023-09-11T10:20:15,928 ... 2023-09-11T10:20:15,929 def __bytes__(self): 2023-09-11T10:20:15,929 return self._cert.get().toString() if self._cert else b'' 2023-09-11T10:20:15,930 property issuer: 2023-09-11T10:20:15,930 def __get__(self): 2023-09-11T10:20:15,931 c = Certificate() 2023-09-11T10:20:15,931 c._cert = self._cert.get().issuer 2023-09-11T10:20:15,931 ^ 2023-09-11T10:20:15,932 ------------------------------------------------------------ 2023-09-11T10:20:15,933 opendht.pyx:381:38: Cannot convert Python object to 'shared_ptr[]' 2023-09-11T10:20:15,934 Error compiling Cython file: 2023-09-11T10:20:15,934 ------------------------------------------------------------ 2023-09-11T10:20:15,935 ... 2023-09-11T10:20:15,935 c._cert = self._cert.get().issuer 2023-09-11T10:20:15,936 return c; 2023-09-11T10:20:15,936 @staticmethod 2023-09-11T10:20:15,937 def generate(PrivateKey k, str name, Identity i = Identity(), bool is_ca = False): 2023-09-11T10:20:15,938 c = Certificate() 2023-09-11T10:20:15,938 c._cert = cpp.make_shared[cpp.Certificate](cpp.Certificate.generate(deref(k._key.get()), name.encode(), i._id, is_ca)) 2023-09-11T10:20:15,939 ^ 2023-09-11T10:20:15,939 ------------------------------------------------------------ 2023-09-11T10:20:15,940 opendht.pyx:386:21: cimported module has no attribute 'make_shared' 2023-09-11T10:20:15,941 Error compiling Cython file: 2023-09-11T10:20:15,942 ------------------------------------------------------------ 2023-09-11T10:20:15,942 ... 2023-09-11T10:20:15,943 c._cert = self._cert.get().issuer 2023-09-11T10:20:15,943 return c; 2023-09-11T10:20:15,944 @staticmethod 2023-09-11T10:20:15,944 def generate(PrivateKey k, str name, Identity i = Identity(), bool is_ca = False): 2023-09-11T10:20:15,945 c = Certificate() 2023-09-11T10:20:15,945 c._cert = cpp.make_shared[cpp.Certificate](cpp.Certificate.generate(deref(k._key.get()), name.encode(), i._id, is_ca)) 2023-09-11T10:20:15,946 ^ 2023-09-11T10:20:15,946 ------------------------------------------------------------ 2023-09-11T10:20:15,947 opendht.pyx:386:54: cimported module has no attribute 'Certificate' 2023-09-11T10:20:15,948 Error compiling Cython file: 2023-09-11T10:20:15,949 ------------------------------------------------------------ 2023-09-11T10:20:15,950 ... 2023-09-11T10:20:15,950 cdef class Identity(object): 2023-09-11T10:20:15,951 cdef cpp.Identity _id 2023-09-11T10:20:15,951 def __init__(self, PrivateKey k = None, Certificate c = None): 2023-09-11T10:20:15,951 if k: 2023-09-11T10:20:15,952 self._id.first = k._key 2023-09-11T10:20:15,952 ^ 2023-09-11T10:20:15,953 ------------------------------------------------------------ 2023-09-11T10:20:15,954 opendht.pyx:416:30: Cannot convert 'shared_ptr[]' to Python object 2023-09-11T10:20:15,955 Error compiling Cython file: 2023-09-11T10:20:15,955 ------------------------------------------------------------ 2023-09-11T10:20:15,956 ... 2023-09-11T10:20:15,956 cdef cpp.Identity _id 2023-09-11T10:20:15,956 def __init__(self, PrivateKey k = None, Certificate c = None): 2023-09-11T10:20:15,957 if k: 2023-09-11T10:20:15,957 self._id.first = k._key 2023-09-11T10:20:15,958 if c: 2023-09-11T10:20:15,958 self._id.second = c._cert 2023-09-11T10:20:15,959 ^ 2023-09-11T10:20:15,959 ------------------------------------------------------------ 2023-09-11T10:20:15,960 opendht.pyx:418:31: Cannot convert 'shared_ptr[]' to Python object 2023-09-11T10:20:15,961 Error compiling Cython file: 2023-09-11T10:20:15,961 ------------------------------------------------------------ 2023-09-11T10:20:15,962 ... 2023-09-11T10:20:15,962 if c: 2023-09-11T10:20:15,963 self._id.second = c._cert 2023-09-11T10:20:15,963 @staticmethod 2023-09-11T10:20:15,964 def generate(str name = "pydht", Identity ca = Identity(), unsigned bits = 4096): 2023-09-11T10:20:15,964 i = Identity() 2023-09-11T10:20:15,965 i._id = cpp.generateIdentity(name.encode(), ca._id, bits) 2023-09-11T10:20:15,965 ^ 2023-09-11T10:20:15,966 ------------------------------------------------------------ 2023-09-11T10:20:15,967 opendht.pyx:422:19: cimported module has no attribute 'generateIdentity' 2023-09-11T10:20:15,968 Error compiling Cython file: 2023-09-11T10:20:15,968 ------------------------------------------------------------ 2023-09-11T10:20:15,969 ... 2023-09-11T10:20:15,969 k._key = self._id.first.get().getPublicKey() 2023-09-11T10:20:15,970 return k 2023-09-11T10:20:15,970 property certificate: 2023-09-11T10:20:15,971 def __get__(self): 2023-09-11T10:20:15,971 c = Certificate() 2023-09-11T10:20:15,972 c._cert = self._id.second 2023-09-11T10:20:15,972 ^ 2023-09-11T10:20:15,973 ------------------------------------------------------------ 2023-09-11T10:20:15,974 opendht.pyx:432:30: Cannot convert Python object to 'shared_ptr[]' 2023-09-11T10:20:15,975 Error compiling Cython file: 2023-09-11T10:20:15,975 ------------------------------------------------------------ 2023-09-11T10:20:15,976 ... 2023-09-11T10:20:15,976 c._cert = self._id.second 2023-09-11T10:20:15,977 return c 2023-09-11T10:20:15,977 property key: 2023-09-11T10:20:15,978 def __get__(self): 2023-09-11T10:20:15,979 k = PrivateKey() 2023-09-11T10:20:15,979 k._key = self._id.first 2023-09-11T10:20:15,980 ^ 2023-09-11T10:20:15,980 ------------------------------------------------------------ 2023-09-11T10:20:15,981 opendht.pyx:437:29: Cannot convert Python object to 'shared_ptr[]' 2023-09-11T10:20:15,982 Error compiling Cython file: 2023-09-11T10:20:15,983 ------------------------------------------------------------ 2023-09-11T10:20:15,983 ... 2023-09-11T10:20:15,984 return k 2023-09-11T10:20:15,985 cdef class DhtConfig(object): 2023-09-11T10:20:15,985 cdef cpp.DhtRunnerConfig _config 2023-09-11T10:20:15,986 def __init__(self): 2023-09-11T10:20:15,987 self._config = cpp.DhtRunnerConfig() 2023-09-11T10:20:15,987 ^ 2023-09-11T10:20:15,988 ------------------------------------------------------------ 2023-09-11T10:20:15,988 opendht.pyx:443:26: cimported module has no attribute 'DhtRunnerConfig' 2023-09-11T10:20:15,989 Error compiling Cython file: 2023-09-11T10:20:15,990 ------------------------------------------------------------ 2023-09-11T10:20:15,990 ... 2023-09-11T10:20:15,990 self._config.dht_config.node_config.maintain_storage = maintain_storage 2023-09-11T10:20:15,991 cdef class DhtRunner(_WithID): 2023-09-11T10:20:15,992 cdef cpp.shared_ptr[cpp.DhtRunner] thisptr 2023-09-11T10:20:15,992 def __cinit__(self): 2023-09-11T10:20:15,992 self.thisptr.reset(new cpp.DhtRunner()) 2023-09-11T10:20:15,993 ^ 2023-09-11T10:20:15,993 ------------------------------------------------------------ 2023-09-11T10:20:15,994 opendht.pyx:459:31: 'DhtRunner' is not a type identifier 2023-09-11T10:20:15,995 Error compiling Cython file: 2023-09-11T10:20:15,995 ------------------------------------------------------------ 2023-09-11T10:20:15,996 ... 2023-09-11T10:20:15,996 self._config.dht_config.node_config.maintain_storage = maintain_storage 2023-09-11T10:20:15,997 cdef class DhtRunner(_WithID): 2023-09-11T10:20:15,997 cdef cpp.shared_ptr[cpp.DhtRunner] thisptr 2023-09-11T10:20:15,998 def __cinit__(self): 2023-09-11T10:20:15,998 self.thisptr.reset(new cpp.DhtRunner()) 2023-09-11T10:20:15,999 ^ 2023-09-11T10:20:15,999 ------------------------------------------------------------ 2023-09-11T10:20:16,000 opendht.pyx:459:27: new operator can only be applied to a C++ class 2023-09-11T10:20:16,001 Error compiling Cython file: 2023-09-11T10:20:16,002 ------------------------------------------------------------ 2023-09-11T10:20:16,002 ... 2023-09-11T10:20:16,003 return self.thisptr.get().getNodeId().toString() 2023-09-11T10:20:16,003 def ping(self, SockAddr addr, done_cb=None): 2023-09-11T10:20:16,004 if done_cb: 2023-09-11T10:20:16,004 cb_obj = {'done':done_cb} 2023-09-11T10:20:16,005 ref.Py_INCREF(cb_obj) 2023-09-11T10:20:16,005 self.thisptr.get().bootstrap(addr._addr, cpp.bindDoneCbSimple(done_callback_simple, cb_obj)) 2023-09-11T10:20:16,006 ^ 2023-09-11T10:20:16,006 ------------------------------------------------------------ 2023-09-11T10:20:16,007 opendht.pyx:471:56: cimported module has no attribute 'bindDoneCbSimple' 2023-09-11T10:20:16,008 Error compiling Cython file: 2023-09-11T10:20:16,009 ------------------------------------------------------------ 2023-09-11T10:20:16,009 ... 2023-09-11T10:20:16,009 lock.wait() 2023-09-11T10:20:16,010 return ok 2023-09-11T10:20:16,010 def bootstrap(self, str host, str port=None): 2023-09-11T10:20:16,011 host_bytes = host.encode() 2023-09-11T10:20:16,011 port_bytes = port.encode() if port else b'4222' 2023-09-11T10:20:16,012 self.thisptr.get().bootstrap(host_bytes, port_bytes) 2023-09-11T10:20:16,012 ^ 2023-09-11T10:20:16,013 ------------------------------------------------------------ 2023-09-11T10:20:16,014 opendht.pyx:491:38: 'const_char' is not a type identifier 2023-09-11T10:20:16,015 Error compiling Cython file: 2023-09-11T10:20:16,015 ------------------------------------------------------------ 2023-09-11T10:20:16,016 ... 2023-09-11T10:20:16,016 lock.wait() 2023-09-11T10:20:16,017 return ok 2023-09-11T10:20:16,017 def bootstrap(self, str host, str port=None): 2023-09-11T10:20:16,018 host_bytes = host.encode() 2023-09-11T10:20:16,018 port_bytes = port.encode() if port else b'4222' 2023-09-11T10:20:16,019 self.thisptr.get().bootstrap(host_bytes, port_bytes) 2023-09-11T10:20:16,019 ^ 2023-09-11T10:20:16,020 ------------------------------------------------------------ 2023-09-11T10:20:16,021 opendht.pyx:491:67: 'const_char' is not a type identifier 2023-09-11T10:20:16,021 Error compiling Cython file: 2023-09-11T10:20:16,022 ------------------------------------------------------------ 2023-09-11T10:20:16,022 ... 2023-09-11T10:20:16,023 def join(self): 2023-09-11T10:20:16,023 self.thisptr.get().join() 2023-09-11T10:20:16,023 def shutdown(self, shutdown_cb=None): 2023-09-11T10:20:16,024 cb_obj = {'shutdown':shutdown_cb} 2023-09-11T10:20:16,024 ref.Py_INCREF(cb_obj) 2023-09-11T10:20:16,024 self.thisptr.get().shutdown(cpp.bindShutdownCb(shutdown_callback, cb_obj)) 2023-09-11T10:20:16,025 ^ 2023-09-11T10:20:16,025 ------------------------------------------------------------ 2023-09-11T10:20:16,027 opendht.pyx:506:39: cimported module has no attribute 'bindShutdownCb' 2023-09-11T10:20:16,028 Error compiling Cython file: 2023-09-11T10:20:16,028 ------------------------------------------------------------ 2023-09-11T10:20:16,028 ... 2023-09-11T10:20:16,029 def shutdown(self, shutdown_cb=None): 2023-09-11T10:20:16,029 cb_obj = {'shutdown':shutdown_cb} 2023-09-11T10:20:16,030 ref.Py_INCREF(cb_obj) 2023-09-11T10:20:16,030 self.thisptr.get().shutdown(cpp.bindShutdownCb(shutdown_callback, cb_obj)) 2023-09-11T10:20:16,030 def enableLogging(self): 2023-09-11T10:20:16,031 cpp.enableLogging(self.thisptr.get()[0]) 2023-09-11T10:20:16,031 ^ 2023-09-11T10:20:16,032 ------------------------------------------------------------ 2023-09-11T10:20:16,033 opendht.pyx:508:11: cimported module has no attribute 'enableLogging' 2023-09-11T10:20:16,034 Error compiling Cython file: 2023-09-11T10:20:16,034 ------------------------------------------------------------ 2023-09-11T10:20:16,035 ... 2023-09-11T10:20:16,036 ref.Py_INCREF(cb_obj) 2023-09-11T10:20:16,036 self.thisptr.get().shutdown(cpp.bindShutdownCb(shutdown_callback, cb_obj)) 2023-09-11T10:20:16,037 def enableLogging(self): 2023-09-11T10:20:16,037 cpp.enableLogging(self.thisptr.get()[0]) 2023-09-11T10:20:16,038 def disableLogging(self): 2023-09-11T10:20:16,038 cpp.disableLogging(self.thisptr.get()[0]) 2023-09-11T10:20:16,039 ^ 2023-09-11T10:20:16,039 ------------------------------------------------------------ 2023-09-11T10:20:16,041 opendht.pyx:510:11: cimported module has no attribute 'disableLogging' 2023-09-11T10:20:16,042 Error compiling Cython file: 2023-09-11T10:20:16,043 ------------------------------------------------------------ 2023-09-11T10:20:16,043 ... 2023-09-11T10:20:16,044 def enableLogging(self): 2023-09-11T10:20:16,044 cpp.enableLogging(self.thisptr.get()[0]) 2023-09-11T10:20:16,045 def disableLogging(self): 2023-09-11T10:20:16,045 cpp.disableLogging(self.thisptr.get()[0]) 2023-09-11T10:20:16,046 def enableFileLogging(self, str path): 2023-09-11T10:20:16,046 cpp.enableFileLogging(self.thisptr.get()[0], path.encode()) 2023-09-11T10:20:16,047 ^ 2023-09-11T10:20:16,047 ------------------------------------------------------------ 2023-09-11T10:20:16,048 opendht.pyx:512:11: cimported module has no attribute 'enableFileLogging' 2023-09-11T10:20:16,049 Error compiling Cython file: 2023-09-11T10:20:16,050 ------------------------------------------------------------ 2023-09-11T10:20:16,050 ... 2023-09-11T10:20:16,051 if get_cb: 2023-09-11T10:20:16,051 cb_obj = {'get':get_cb, 'done':done_cb, 'filter':filter} 2023-09-11T10:20:16,052 ref.Py_INCREF(cb_obj) 2023-09-11T10:20:16,053 if where is None: 2023-09-11T10:20:16,053 where = Where() 2023-09-11T10:20:16,054 self.thisptr.get().get(key._infohash, cpp.bindGetCb(get_callback, cb_obj), 2023-09-11T10:20:16,054 ^ 2023-09-11T10:20:16,055 ------------------------------------------------------------ 2023-09-11T10:20:16,055 opendht.pyx:546:53: cimported module has no attribute 'bindGetCb' 2023-09-11T10:20:16,056 Error compiling Cython file: 2023-09-11T10:20:16,057 ------------------------------------------------------------ 2023-09-11T10:20:16,057 ... 2023-09-11T10:20:16,057 cb_obj = {'get':get_cb, 'done':done_cb, 'filter':filter} 2023-09-11T10:20:16,058 ref.Py_INCREF(cb_obj) 2023-09-11T10:20:16,058 if where is None: 2023-09-11T10:20:16,059 where = Where() 2023-09-11T10:20:16,059 self.thisptr.get().get(key._infohash, cpp.bindGetCb(get_callback, cb_obj), 2023-09-11T10:20:16,060 cpp.bindDoneCb(done_callback, cb_obj), 2023-09-11T10:20:16,060 ^ 2023-09-11T10:20:16,060 ------------------------------------------------------------ 2023-09-11T10:20:16,061 opendht.pyx:547:23: cimported module has no attribute 'bindDoneCb' 2023-09-11T10:20:16,062 Error compiling Cython file: 2023-09-11T10:20:16,063 ------------------------------------------------------------ 2023-09-11T10:20:16,063 ... 2023-09-11T10:20:16,063 ref.Py_INCREF(cb_obj) 2023-09-11T10:20:16,064 if where is None: 2023-09-11T10:20:16,064 where = Where() 2023-09-11T10:20:16,065 self.thisptr.get().get(key._infohash, cpp.bindGetCb(get_callback, cb_obj), 2023-09-11T10:20:16,065 cpp.bindDoneCb(done_callback, cb_obj), 2023-09-11T10:20:16,066 cpp.nullptr, #filter implemented in the get_callback 2023-09-11T10:20:16,066 ^ 2023-09-11T10:20:16,067 ------------------------------------------------------------ 2023-09-11T10:20:16,068 opendht.pyx:548:23: cimported module has no attribute 'nullptr' 2023-09-11T10:20:16,069 Error compiling Cython file: 2023-09-11T10:20:16,069 ------------------------------------------------------------ 2023-09-11T10:20:16,070 ... 2023-09-11T10:20:16,070 done_cb -- optional callback called when the operation is completed. 2023-09-11T10:20:16,071 """ 2023-09-11T10:20:16,071 if done_cb: 2023-09-11T10:20:16,072 cb_obj = {'done':done_cb} 2023-09-11T10:20:16,073 ref.Py_INCREF(cb_obj) 2023-09-11T10:20:16,073 self.thisptr.get().put(key._infohash, val._value, cpp.bindDoneCb(done_callback, cb_obj)) 2023-09-11T10:20:16,074 ^ 2023-09-11T10:20:16,075 ------------------------------------------------------------ 2023-09-11T10:20:16,076 opendht.pyx:579:65: cimported module has no attribute 'bindDoneCb' 2023-09-11T10:20:16,077 Error compiling Cython file: 2023-09-11T10:20:16,078 ------------------------------------------------------------ 2023-09-11T10:20:16,079 ... 2023-09-11T10:20:16,079 done_cb -- optional callback called when the operation is completed. 2023-09-11T10:20:16,080 """ 2023-09-11T10:20:16,081 if done_cb: 2023-09-11T10:20:16,081 cb_obj = {'done':done_cb} 2023-09-11T10:20:16,082 ref.Py_INCREF(cb_obj) 2023-09-11T10:20:16,083 self.thisptr.get().put(key._infohash, val._value, cpp.bindDoneCb(done_callback, cb_obj)) 2023-09-11T10:20:16,083 ^ 2023-09-11T10:20:16,084 ------------------------------------------------------------ 2023-09-11T10:20:16,085 opendht.pyx:579:53: Cannot convert 'shared_ptr[]' to Python object 2023-09-11T10:20:16,086 Error compiling Cython file: 2023-09-11T10:20:16,087 ------------------------------------------------------------ 2023-09-11T10:20:16,087 ... 2023-09-11T10:20:16,088 t._h = key._infohash 2023-09-11T10:20:16,088 cb_obj = {'get':get_cb} 2023-09-11T10:20:16,088 t._cb['cb'] = cb_obj 2023-09-11T10:20:16,089 # avoid the callback being destructed if the token is destroyed 2023-09-11T10:20:16,089 ref.Py_INCREF(cb_obj) 2023-09-11T10:20:16,090 t._t = self.thisptr.get().listen(t._h, cpp.bindGetCb(get_callback, cb_obj)).share() 2023-09-11T10:20:16,091 ^ 2023-09-11T10:20:16,091 ------------------------------------------------------------ 2023-09-11T10:20:16,092 opendht.pyx:603:50: cimported module has no attribute 'bindGetCb' 2023-09-11T10:20:16,099 Traceback (most recent call last): 2023-09-11T10:20:16,100 File "", line 2, in 2023-09-11T10:20:16,100 File "", line 34, in 2023-09-11T10:20:16,100 File "/tmp/pip-wheel-zn7wfqdd/opendht_9ec8dfa4daaf4d14b3b0730a1370dc73/setup.py", line 7, in 2023-09-11T10:20:16,101 ext_modules=cythonize("opendht.pyx")) 2023-09-11T10:20:16,101 ^^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-11T10:20:16,102 File "/usr/local/lib/python3.11/dist-packages/Cython/Build/Dependencies.py", line 1134, in cythonize 2023-09-11T10:20:16,103 cythonize_one(*args) 2023-09-11T10:20:16,103 File "/usr/local/lib/python3.11/dist-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one 2023-09-11T10:20:16,104 raise CompileError(None, pyx_file) 2023-09-11T10:20:16,105 Cython.Compiler.Errors.CompileError: opendht.pyx 2023-09-11T10:20:16,106 Compiling opendht.pyx because it changed. 2023-09-11T10:20:16,106 [1/1] Cythonizing opendht.pyx 2023-09-11T10:20:16,431 ERROR: [present-rich] python setup.py egg_info exited with 1 2023-09-11T10:20:16,444 [bold magenta]full command[/]: [blue]/usr/bin/python3 -c ' 2023-09-11T10:20:16,444 exec(compile('"'"''"'"''"'"' 2023-09-11T10:20:16,444 # This is -- a caller that pip uses to run setup.py 2023-09-11T10:20:16,444 # 2023-09-11T10:20:16,444 # - It imports setuptools before invoking setup.py, to enable projects that directly 2023-09-11T10:20:16,444 # import from `distutils.core` to work with newer packaging standards. 2023-09-11T10:20:16,444 # - It provides a clear error message when setuptools is not installed. 2023-09-11T10:20:16,444 # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so 2023-09-11T10:20:16,444 # setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning: 2023-09-11T10:20:16,444 # manifest_maker: standard file '"'"'-c'"'"' not found". 2023-09-11T10:20:16,444 # - It generates a shim setup.py, for handling setup.cfg-only projects. 2023-09-11T10:20:16,444 import os, sys, tokenize 2023-09-11T10:20:16,444 2023-09-11T10:20:16,444 try: 2023-09-11T10:20:16,444 import setuptools 2023-09-11T10:20:16,444 except ImportError as error: 2023-09-11T10:20:16,444 print( 2023-09-11T10:20:16,444 "ERROR: Can not execute `setup.py` since setuptools is not available in " 2023-09-11T10:20:16,444 "the build environment.", 2023-09-11T10:20:16,444 file=sys.stderr, 2023-09-11T10:20:16,444 ) 2023-09-11T10:20:16,444 sys.exit(1) 2023-09-11T10:20:16,444 2023-09-11T10:20:16,444 __file__ = %r 2023-09-11T10:20:16,444 sys.argv[0] = __file__ 2023-09-11T10:20:16,444 2023-09-11T10:20:16,444 if os.path.exists(__file__): 2023-09-11T10:20:16,444 filename = __file__ 2023-09-11T10:20:16,444 with tokenize.open(__file__) as f: 2023-09-11T10:20:16,444 setup_py_code = f.read() 2023-09-11T10:20:16,444 else: 2023-09-11T10:20:16,444 filename = "" 2023-09-11T10:20:16,444 setup_py_code = "from setuptools import setup; setup()" 2023-09-11T10:20:16,444 2023-09-11T10:20:16,444 exec(compile(setup_py_code, filename, "exec")) 2023-09-11T10:20:16,444 '"'"''"'"''"'"' % ('"'"'/tmp/pip-wheel-zn7wfqdd/opendht_9ec8dfa4daaf4d14b3b0730a1370dc73/setup.py'"'"',), "", "exec"))' egg_info --egg-base /tmp/pip-pip-egg-info-a0kkpdai[/] 2023-09-11T10:20:16,445 [bold magenta]cwd[/]: /tmp/pip-wheel-zn7wfqdd/opendht_9ec8dfa4daaf4d14b3b0730a1370dc73/ 2023-09-11T10:20:16,446 Preparing metadata (setup.py): finished with status 'error' 2023-09-11T10:20:16,447 ERROR: [present-rich] metadata generation failed 2023-09-11T10:20:16,452 Exception information: 2023-09-11T10:20:16,452 Traceback (most recent call last): 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/operations/build/metadata_legacy.py", line 64, in generate_metadata 2023-09-11T10:20:16,452 call_subprocess( 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/utils/subprocess.py", line 224, in call_subprocess 2023-09-11T10:20:16,452 raise error 2023-09-11T10:20:16,452 pip._internal.exceptions.InstallationSubprocessError: python setup.py egg_info exited with 1 2023-09-11T10:20:16,452 2023-09-11T10:20:16,452 The above exception was the direct cause of the following exception: 2023-09-11T10:20:16,452 2023-09-11T10:20:16,452 Traceback (most recent call last): 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper 2023-09-11T10:20:16,452 status = run_func(*args) 2023-09-11T10:20:16,452 ^^^^^^^^^^^^^^^ 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/cli/req_command.py", line 248, in wrapper 2023-09-11T10:20:16,452 return func(self, options, args) 2023-09-11T10:20:16,452 ^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/commands/wheel.py", line 147, in run 2023-09-11T10:20:16,452 requirement_set = resolver.resolve(reqs, check_supported_wheels=True) 2023-09-11T10:20:16,452 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve 2023-09-11T10:20:16,452 result = self._result = resolver.resolve( 2023-09-11T10:20:16,452 ^^^^^^^^^^^^^^^^^ 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_vendor/resolvelib/resolvers.py", line 546, in resolve 2023-09-11T10:20:16,452 state = resolution.resolve(requirements, max_rounds=max_rounds) 2023-09-11T10:20:16,452 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_vendor/resolvelib/resolvers.py", line 397, in resolve 2023-09-11T10:20:16,452 self._add_to_criteria(self.state.criteria, r, parent=None) 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_vendor/resolvelib/resolvers.py", line 173, in _add_to_criteria 2023-09-11T10:20:16,452 if not criterion.candidates: 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_vendor/resolvelib/structs.py", line 156, in __bool__ 2023-09-11T10:20:16,452 return bool(self._sequence) 2023-09-11T10:20:16,452 ^^^^^^^^^^^^^^^^^^^^ 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in __bool__ 2023-09-11T10:20:16,452 return any(self) 2023-09-11T10:20:16,452 ^^^^^^^^^ 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in 2023-09-11T10:20:16,452 return (c for c in iterator if id(c) not in self._incompatible_ids) 2023-09-11T10:20:16,452 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built 2023-09-11T10:20:16,452 candidate = func() 2023-09-11T10:20:16,452 ^^^^^^ 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/resolution/resolvelib/factory.py", line 206, in _make_candidate_from_link 2023-09-11T10:20:16,452 self._link_candidate_cache[link] = LinkCandidate( 2023-09-11T10:20:16,452 ^^^^^^^^^^^^^^ 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 293, in __init__ 2023-09-11T10:20:16,452 super().__init__( 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 156, in __init__ 2023-09-11T10:20:16,452 self.dist = self._prepare() 2023-09-11T10:20:16,452 ^^^^^^^^^^^^^^^ 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 225, in _prepare 2023-09-11T10:20:16,452 dist = self._prepare_distribution() 2023-09-11T10:20:16,452 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 304, in _prepare_distribution 2023-09-11T10:20:16,452 return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True) 2023-09-11T10:20:16,452 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/operations/prepare.py", line 538, in prepare_linked_requirement 2023-09-11T10:20:16,452 return self._prepare_linked_requirement(req, parallel_builds) 2023-09-11T10:20:16,452 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/operations/prepare.py", line 653, in _prepare_linked_requirement 2023-09-11T10:20:16,452 dist = _get_prepared_distribution( 2023-09-11T10:20:16,452 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/operations/prepare.py", line 69, in _get_prepared_distribution 2023-09-11T10:20:16,452 abstract_dist.prepare_distribution_metadata( 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/distributions/sdist.py", line 61, in prepare_distribution_metadata 2023-09-11T10:20:16,452 self.req.prepare_metadata() 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/req/req_install.py", line 568, in prepare_metadata 2023-09-11T10:20:16,452 self.metadata_directory = generate_metadata_legacy( 2023-09-11T10:20:16,452 ^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-11T10:20:16,452 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/operations/build/metadata_legacy.py", line 71, in generate_metadata 2023-09-11T10:20:16,452 raise MetadataGenerationFailed(package_details=details) from error 2023-09-11T10:20:16,452 pip._internal.exceptions.MetadataGenerationFailed: metadata generation failed 2023-09-11T10:20:16,465 Removed opendht==1.8.1 from https://files.pythonhosted.org/packages/99/ff/4e77a933075841293345b9b2734b55c7b0693030da5da0b62b3a1311890f/opendht-1.8.1.tar.gz from build tracker '/tmp/pip-build-tracker-4nvb6edj' 2023-09-11T10:20:16,466 Removed build tracker: '/tmp/pip-build-tracker-4nvb6edj'