Skip to content

Conversation

@milahu
Copy link

@milahu milahu commented Oct 19, 2024

error was

$ python3 -c "import btdht"
...
  File "/nix/store/vl11kw645rjqd46irlsw2bkch24p9p0i-python3.12-btdht-0.3.3/lib/python3.12/site-packages/btdht/__init__.py", line 13, in <module>
    from btdht.dht import  DHT, DHT_BASE, Node, Bucket, RoutingTable
  File "btdht/dht.pyx", line 1, in init btdht.dht
  File "btdht/krcp.pyx", line 22, in init btdht.krcp
ModuleNotFoundError: No module named 'utils'

@Juan-de-Salgado
Copy link

Hi,
the sources in pypi.org (the ones installed by "pip install btdht") do not appear to contain this change, judging from the .pyx files I find under .../site-packages/btdht/.

I get an "AttributeError: module 'utils' has no attribute 'Scheduler'" when instantiating dht = btdht.DHT().
Trying

import btdht
from btdht.utils import Scheduler
dht = btdht.DHT(scheduler=Scheduler())
dht.start()

also produces, after a few seconds, "AttributeError: module 'utils' has no attribute 'id_to_longid'".
My guess is that this commit would fix these issues.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants