dogecoin / dogecoin

very currency
MIT License
14.4k stars 2.8k forks source link

[bug] asyncore deprecation #3524

Open xanimo opened 4 weeks ago

xanimo commented 4 weeks ago

On an M2 with python 3.12 installed one encounters an error with regards to asyncore which is utilized in mininode.py (asyncore is deprecated and fully removed in this version of python):

bluezr@lmao dogecoin % ./qa/pull-tester/rpc-tests.py --coverage                  
Initializing coverage directory at /var/folders/jz/v7ct3pb126n5bl1cln4h5jcm0000gn/T/coverageo3u8ggcm

p2p-fullblocktest.py:

stderr:
Traceback (most recent call last):
  File "/Users/bluezr/source/repos/dogecoin/qa/rpc-tests/p2p-fullblocktest.py", line 9, in <module>
    from test_framework.comptool import TestManager, TestInstance, RejectResult
  File "/Users/bluezr/source/repos/dogecoin/qa/rpc-tests/test_framework/comptool.py", line 6, in <module>
    from .mininode import *
  File "/Users/bluezr/source/repos/dogecoin/qa/rpc-tests/test_framework/mininode.py", line 28, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'