From 68bb5f3529874c302bba11df02c964242d9008c7 Mon Sep 17 00:00:00 2001 From: Milan Hauth Date: Sat, 19 Oct 2024 12:04:54 +0200 Subject: [PATCH] fix: ModuleNotFoundError: No module named 'utils' --- btdht/dht.pyx | 2 +- btdht/krcp.pyx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/btdht/dht.pyx b/btdht/dht.pyx index 9c641a0..cc27602 100644 --- a/btdht/dht.pyx +++ b/btdht/dht.pyx @@ -40,7 +40,7 @@ except ImportError: import datrie -import utils +from . import utils from .utils import ID, nbit, nflip, nset, PollableQueue from .exceptions import BucketFull, BucketNotFull, NoTokenError, FailToStop, TransactionIdUnknown from .exceptions import NotFound diff --git a/btdht/krcp.pyx b/btdht/krcp.pyx index af567ad..d97d126 100644 --- a/btdht/krcp.pyx +++ b/btdht/krcp.pyx @@ -19,7 +19,7 @@ from cython.parallel import prange import six -import utils +from . import utils from .exceptions import MissingT, DecodeError cdef int str_to_int(char* data, int len) nogil: