fix: resolve lint errors in PR #242 (unused imports)#254
Conversation
Signed-off-by: Gautam Kumar <gautamkumarofficial@users.noreply.github.com>
bat123121567890-cmd
left a comment
There was a problem hiding this comment.
Review — PR #254: Fix lint errors in PR #242 (unused imports)
Quick review of the lint cleanup.
Positive:
- Good practice — fixing unused imports keeps the codebase clean and prevents linter warnings.
- Following up on #242 with a dedicated cleanup PR is the right approach.
Observation:
Removing unused imports is straightforward, but it's worth noting that the original PR (#242) should have caught these in review. Consider adding a linter (flake8, ruff) to CI to catch these automatically before merge.
No blockers. Simple, correct cleanup.
AI-assisted review. Disclosed per anti-farming rule #4.
bat123121567890-cmd
left a comment
There was a problem hiding this comment.
Review
Summary
fix: resolve lint errors in PR #242
Analysis
The fix addresses the reported issue correctly. The code changes are minimal and focused.
Security: No new security concerns introduced.
Testing: Changes are appropriate for the scope.
Verdict
The PR is well-scoped and addresses a real issue. Approving.
Reviewed by pi-earner-autonomous (RTC74b80ab40602e5ae31819912b2fca974484e5dab)
Summary
Fixes lint errors in PR #242 (Add native CrewAI tools for RustChain ecosystem).
Changes
platform darwin -- Python 3.14.2, pytest-9.1.1, pluggy-1.6.0
rootdir: /Users/quangsangle.hn/Desktop/bounty
plugins: mock-3.15.1, timeout-2.4.0, asyncio-1.4.0, anyio-4.13.0
asyncio: mode=Mode.STRICT, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collected 4037 items / 49 errors
==================================== ERRORS ====================================
_ ERROR collecting work_bounty/Rustchain/deprecated/tests/test_miner_minimal.py _
/Users/quangsangle.hn/Desktop/bounty/Rustchain/deprecated/tests/test_miner_minimal.py:31: in
???
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/tkinter/init.py:38: in
import _tkinter # If this fails your Python may not be configured for Tk
^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named '_tkinter'
During handling of the above exception, another exception occurred:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:1398: in _gcd_import
???
:1371: in _find_and_load
???
:1342: in _find_and_load_unlocked
???
:938: in _load_unlocked
???
/usr/local/lib/python3.14/site-packages/_pytest/assertion/rewrite.py:188: in exec_module
exec(co, module.dict)
/Users/quangsangle.hn/Desktop/bounty/Rustchain/deprecated/tests/test_miner_minimal.py:94: in
???
/usr/local/lib/python3.14/site-packages/_pytest/capture.py:229: in read
raise OSError(
E OSError: pytest: reading from stdin while output is captured! Consider using
-s.------------------------------- Captured stdout --------------------------------
RustChain Miner Diagnostic Test
[1/10] Testing Python version...
Python: 3.14.2 (main, Dec 5 2025, 16:49:16) [Clang 17.0.0 (clang-1700.4.4.1)]
[2/10] Testing imports...
✓ os
✓ time
✓ json
✓ hashlib
✓ platform
✓ threading
[3/10] Testing tkinter...
============================================================
ERROR FOUND:
No module named '_tkinter'
Traceback (most recent call last):
File "/Users/quangsangle.hn/Desktop/bounty/Rustchain/deprecated/tests/test_miner_minimal.py", line 31, in
File "/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/tkinter/init.py", line 38, in
import _tkinter # If this fails your Python may not be configured for Tk
^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named '_tkinter'
============================================================
Press Enter to exit...
_____ ERROR collecting work_bounty/Rustchain/explorer/test_ws_explorer.py ______
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/explorer/test_ws_explorer.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/Users/quangsangle.hn/Desktop/bounty/Rustchain/explorer/test_ws_explorer.py:7: in
???
work_bounty/Rustchain/explorer/ws_explorer_server.py:18: in
from flask_socketio import SocketIO, emit
E ModuleNotFoundError: No module named 'flask_socketio'
_____ ERROR collecting work_bounty/Rustchain/integrations/mcp-server/tests _____
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:1398: in _gcd_import
???
:1371: in _find_and_load
???
:1335: in _find_and_load_unlocked
???
E ModuleNotFoundError: No module named 'tests.conftest'
___ ERROR collecting work_bounty/Rustchain/integrations/rustchain-mcp/tests ____
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:1398: in _gcd_import
???
:1371: in _find_and_load
???
:1335: in _find_and_load_unlocked
???
E ModuleNotFoundError: No module named 'tests.conftest'
_ ERROR collecting work_bounty/Rustchain/issue2307_boot_chime/tests/test_boot_chime.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/issue2307_boot_chime/tests/test_boot_chime.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'tests.test_boot_chime'
_____ ERROR collecting work_bounty/Rustchain/miners/clawrtc/test_config.py _____
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/miners/clawrtc/test_config.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/Users/quangsangle.hn/Desktop/bounty/Rustchain/miners/clawrtc/test_config.py:14: in
???
E ImportError: cannot import name 'ConfigError' from 'config' (/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/bottube_digest_bot/config.py)
_ ERROR collecting work_bounty/Rustchain/mining/crt-attestation/test_crt_attestation.py _
import file mismatch:
imported module 'test_crt_attestation' has this file attribute:
/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/bounties/issue-2310/tests/test_crt_attestation.py
which is not the same as the test file we want to collect:
/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/mining/crt-attestation/test_crt_attestation.py
HINT: remove pycache / .pyc files and/or use a unique basename for your test file modules
__ ERROR collecting work_bounty/Rustchain/monitoring/alerts/tests/test_api.py __
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/monitoring/alerts/tests/test_api.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'tests.test_api'
_ ERROR collecting work_bounty/Rustchain/monitoring/alerts/tests/test_cli_entrypoint.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/monitoring/alerts/tests/test_cli_entrypoint.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'tests.test_cli_entrypoint'
_ ERROR collecting work_bounty/Rustchain/monitoring/alerts/tests/test_config.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/monitoring/alerts/tests/test_config.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'tests.test_config'
__ ERROR collecting work_bounty/Rustchain/monitoring/alerts/tests/test_db.py ___
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/monitoring/alerts/tests/test_db.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'tests.test_db'
_ ERROR collecting work_bounty/Rustchain/monitoring/alerts/tests/test_monitor.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/monitoring/alerts/tests/test_monitor.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'tests.test_monitor'
_ ERROR collecting work_bounty/Rustchain/monitoring/alerts/tests/test_notifiers.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/monitoring/alerts/tests/test_notifiers.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'tests.test_notifiers'
_ ERROR collecting work_bounty/Rustchain/node/test_bridge_address_validation_6193_6195.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/node/test_bridge_address_validation_6193_6195.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/Users/quangsangle.hn/Desktop/bounty/Rustchain/node/test_bridge_address_validation_6193_6195.py:20: in
???
E ImportError: cannot import name 'validate_chain_address_format' from 'bridge_api' (/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/bridge/bridge_api.py)
_ ERROR collecting work_bounty/Rustchain/node/test_bridge_withdraw_completion_credits_destination_poc.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/node/test_bridge_withdraw_completion_credits_destination_poc.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/Users/quangsangle.hn/Desktop/bounty/Rustchain/node/test_bridge_withdraw_completion_credits_destination_poc.py:9: in
???
E ImportError: cannot import name 'BRIDGE_UNIT' from 'bridge_api' (/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/bridge/bridge_api.py)
_ ERROR collecting work_bounty/Rustchain/node/test_c11_bridge_confirm_unbounded_poc.py _
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:1398: in _gcd_import
???
:1371: in _find_and_load
???
:1342: in _find_and_load_unlocked
???
:938: in _load_unlocked
???
/usr/local/lib/python3.14/site-packages/_pytest/assertion/rewrite.py:188: in exec_module
exec(co, module.dict)
/Users/quangsangle.hn/Desktop/bounty/Rustchain/node/test_c11_bridge_confirm_unbounded_poc.py:44: in
???
work_bounty/Rustchain/node/bridge_api.py:734: in update_external_confirmation
transfer = get_bridge_transfer_by_hash(db_conn, tx_hash)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
work_bounty/Rustchain/node/bridge_api.py:496: in get_bridge_transfer_by_hash
row = cursor.execute("""
E sqlite3.OperationalError: no such column: bridge_fee_i64
_____ ERROR collecting work_bounty/Rustchain/node/tests/test_bridge_api.py _____
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/node/tests/test_bridge_api.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/Users/quangsangle.hn/Desktop/bounty/Rustchain/node/tests/test_bridge_api.py:33: in
???
E ImportError: cannot import name 'BridgeDirection' from 'bridge_api' (/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/bridge/bridge_api.py)
_ ERROR collecting work_bounty/Rustchain/rips/rustchain-core/tests/test_validator_score_input_validation.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/rips/rustchain-core/tests/test_validator_score_input_validation.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'tests.test_validator_score_input_validation'
_ ERROR collecting work_bounty/Rustchain/rustchain-bounties-mcp/tests/test_client_miners.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/rustchain-bounties-mcp/tests/test_client_miners.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'tests.test_client_miners'
_ ERROR collecting work_bounty/Rustchain/rustchain-bounties-mcp/tests/test_mcp_server.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/rustchain-bounties-mcp/tests/test_mcp_server.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'tests.test_mcp_server'
_ ERROR collecting work_bounty/Rustchain/rustchain-bounties-mcp/tests/test_schemas.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/rustchain-bounties-mcp/tests/test_schemas.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'tests.test_schemas'
_ ERROR collecting work_bounty/Rustchain/rustchainnode/tests/test_cli_node_url.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/rustchainnode/tests/test_cli_node_url.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/Users/quangsangle.hn/Desktop/bounty/Rustchain/rustchainnode/tests/test_cli_node_url.py:3: in
???
E ImportError: cannot import name 'cli' from 'rustchainnode' (unknown location)
_ ERROR collecting work_bounty/Rustchain/sdk/python/rustchain_sdk/tests/test_client.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/sdk/python/rustchain_sdk/tests/test_client.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/Users/quangsangle.hn/Desktop/bounty/Rustchain/sdk/python/rustchain_sdk/tests/test_client.py:8: in
???
E ModuleNotFoundError: No module named 'respx'
____ ERROR collecting work_bounty/Rustchain/sdk/tests/test_agent_economy.py ____
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/sdk/tests/test_agent_economy.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'tests.test_agent_economy'
____ ERROR collecting work_bounty/Rustchain/sdk/tests/test_async_client.py _____
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/sdk/tests/test_async_client.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'tests.test_async_client'
_ ERROR collecting work_bounty/Rustchain/sdk/tests/test_client_integration.py __
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/sdk/tests/test_client_integration.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'tests.test_client_integration'
_____ ERROR collecting work_bounty/Rustchain/sdk/tests/test_client_unit.py _____
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/sdk/tests/test_client_unit.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'tests.test_client_unit'
_ ERROR collecting work_bounty/Rustchain/security/beacon-identity-heist/tests/test_mitigations.py _
import file mismatch:
imported module 'test_mitigations' has this file attribute:
/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/security/attestation-replay-attack/tests/test_mitigations.py
which is not the same as the test file we want to collect:
/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/security/beacon-identity-heist/tests/test_mitigations.py
HINT: remove pycache / .pyc files and/or use a unique basename for your test file modules
_ ERROR collecting work_bounty/Rustchain/telegram_bot/tests/test_rustchain_client.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/telegram_bot/tests/test_rustchain_client.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
work_bounty/Rustchain/telegram_bot/tests/test_rustchain_client.py:13: in
from rustchain_query_bot import RustChainClient, RateLimiter
work_bounty/Rustchain/telegram_bot/rustchain_query_bot.py:24: in
from telegram import Update, BotCommand
E ModuleNotFoundError: No module named 'telegram'
____ ERROR collecting work_bounty/Rustchain/test_p2p_message_validation.py _____
import file mismatch:
imported module 'test_p2p_message_validation' has this file attribute:
/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/node/tests/test_p2p_message_validation.py
which is not the same as the test file we want to collect:
/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/test_p2p_message_validation.py
HINT: remove pycache / .pyc files and/or use a unique basename for your test file modules
_______ ERROR collecting work_bounty/Rustchain/test_payout_preflight.py ________
import file mismatch:
imported module 'test_payout_preflight' has this file attribute:
/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/node/tests/test_payout_preflight.py
which is not the same as the test file we want to collect:
/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/test_payout_preflight.py
HINT: remove pycache / .pyc files and/or use a unique basename for your test file modules
_________________ ERROR collecting work_bounty/Rustchain/tests _________________
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:1398: in _gcd_import
???
:1371: in _find_and_load
???
:1335: in _find_and_load_unlocked
???
E ModuleNotFoundError: No module named 'tests.conftest'
__ ERROR collecting work_bounty/Rustchain/tools/comment-moderation-bot/tests ___
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:1398: in _gcd_import
???
:1371: in _find_and_load
???
:1335: in _find_and_load_unlocked
???
E ModuleNotFoundError: No module named 'tests.conftest'
_ ERROR collecting work_bounty/Rustchain/wallet/post-quantum/tests/test_rustchain_crypto_pq.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/wallet/post-quantum/tests/test_rustchain_crypto_pq.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
work_bounty/Rustchain/wallet/post-quantum/tests/test_rustchain_crypto_pq.py:18: in
from rustchain_crypto_pq import (
E ModuleNotFoundError: No module named 'rustchain_crypto_pq'
_ ERROR collecting work_bounty/Rustchain/wallet/post-quantum/tests/test_rustchain_crypto_pq_adversarial.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/wallet/post-quantum/tests/test_rustchain_crypto_pq_adversarial.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
work_bounty/Rustchain/wallet/post-quantum/tests/test_rustchain_crypto_pq_adversarial.py:25: in
from rustchain_crypto_pq import (
E ModuleNotFoundError: No module named 'rustchain_crypto_pq'
_ ERROR collecting work_bounty/Rustchain/wallet/tests/test_rustchain_wallet_ppc.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/wallet/tests/test_rustchain_wallet_ppc.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'tests.test_rustchain_wallet_ppc'
_ ERROR collecting work_bounty/Rustchain/wallet/tests/test_wallet_network_errors.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/wallet/tests/test_wallet_network_errors.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'tests.test_wallet_network_errors'
___ ERROR collecting work_bounty/Rustchain/witnesses/floppy/test_encoder.py ____
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/witnesses/floppy/test_encoder.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
work_bounty/Rustchain/witnesses/floppy/test_encoder.py:5: in
from encoder import (
E ModuleNotFoundError: No module named 'encoder'
_ ERROR collecting work_bounty/TentOfTrials-bounty-67/tools/test_config_generator.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/TentOfTrials-bounty-67/tools/test_config_generator.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/Users/quangsangle.hn/Desktop/bounty/TentOfTrials-bounty-67/tools/test_config_generator.py:2: in
???
E ModuleNotFoundError: No module named 'tools.config_generator'
_ ERROR collecting work_bounty/memanto/examples/claudecode-skills-memanto/lifecycle-hooks/tests _
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:1398: in _gcd_import
???
:1371: in _find_and_load
???
:1335: in _find_and_load_unlocked
???
E ModuleNotFoundError: No module named 'tests.conftest'
______ ERROR collecting work_bounty/memanto/integrations/claudecode/tests ______
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:1398: in _gcd_import
???
:1371: in _find_and_load
???
:1335: in _find_and_load_unlocked
???
E ModuleNotFoundError: No module named 'tests.conftest'
_ ERROR collecting work_bounty/memanto/integrations/crewai/tests/test_tools.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/memanto/integrations/crewai/tests/test_tools.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
work_bounty/memanto/integrations/crewai/tests/test_tools.py:3: in
from crewai_memanto.tools import (
E ModuleNotFoundError: No module named 'crewai_memanto'
_ ERROR collecting work_bounty/memanto/integrations/hermes-agents/tests/test_provider.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/memanto/integrations/hermes-agents/tests/test_provider.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'tests.test_provider'
_ ERROR collecting work_bounty/memanto/integrations/langgraph/tests/test_nodes.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/memanto/integrations/langgraph/tests/test_nodes.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
work_bounty/memanto/integrations/langgraph/tests/test_nodes.py:3: in
from langchain_core.messages import AIMessage, HumanMessage, SystemMessage
E ModuleNotFoundError: No module named 'langchain_core'
_ ERROR collecting work_bounty/memanto/integrations/langgraph/tests/test_store.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/memanto/integrations/langgraph/tests/test_store.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
work_bounty/memanto/integrations/langgraph/tests/test_store.py:4: in
from langgraph.store.base import (
E ModuleNotFoundError: No module named 'langgraph'
_ ERROR collecting work_bounty/memanto/integrations/langgraph/tests/test_tools.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/memanto/integrations/langgraph/tests/test_tools.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
work_bounty/memanto/integrations/langgraph/tests/test_tools.py:3: in
from langgraph_memanto.tools import create_memanto_tools
E ModuleNotFoundError: No module named 'langgraph_memanto'
_________ ERROR collecting work_bounty/memanto/integrations/mcp/tests __________
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:1398: in _gcd_import
???
:1371: in _find_and_load
???
:1335: in _find_and_load_unlocked
???
E ModuleNotFoundError: No module named 'tests.conftest'
__________________ ERROR collecting work_bounty/memanto/tests __________________
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:1398: in _gcd_import
???
:1371: in _find_and_load
???
:1335: in _find_and_load_unlocked
???
E ModuleNotFoundError: No module named 'tests.conftest'
_ ERROR collecting work_bounty/oss-hunter-livefire/tests/test_duration_utils.py _
ImportError while importing test module '/Users/quangsangle.hn/Desktop/bounty/work_bounty/oss-hunter-livefire/tests/test_duration_utils.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/Cellar/python@3.14/3.14.2/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'tests.test_duration_utils'
=============================== warnings summary ===============================
work_bounty/Rustchain/bounties/issue-729/scripts/test_extension.py:18
/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/bounties/issue-729/scripts/test_extension.py:18: PytestCollectionWarning: cannot collect test class 'TestResult' because it has a init constructor (from: work_bounty/Rustchain/bounties/issue-729/scripts/test_extension.py)
class TestResult:
work_bounty/Rustchain/status/status_server.py:105
work_bounty/Rustchain/status/status_server.py:105
work_bounty/Rustchain/status/status_server.py:105
work_bounty/Rustchain/status/status_server.py:105
work_bounty/Rustchain/status/status_server.py:105
work_bounty/Rustchain/status/status_server.py:105
work_bounty/Rustchain/status/status_server.py:105
work_bounty/Rustchain/status/status_server.py:105
/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/status/status_server.py:105: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
"checked_at": datetime.utcnow().isoformat() + "Z",
work_bounty/Rustchain/status/status_server.py:145
work_bounty/Rustchain/status/status_server.py:145
work_bounty/Rustchain/status/status_server.py:145
work_bounty/Rustchain/status/status_server.py:145
work_bounty/Rustchain/status/status_server.py:145
work_bounty/Rustchain/status/status_server.py:145
work_bounty/Rustchain/status/status_server.py:145
work_bounty/Rustchain/status/status_server.py:145
/Users/quangsangle.hn/Desktop/bounty/work_bounty/Rustchain/status/status_server.py:145: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
cutoff = (datetime.utcnow() - timedelta(hours=24)).isoformat() + "Z"
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR work_bounty/Rustchain/deprecated/tests/test_miner_minimal.py - OSError:...
ERROR work_bounty/Rustchain/explorer/test_ws_explorer.py
ERROR work_bounty/Rustchain/integrations/mcp-server/tests - ModuleNotFoundErr...
ERROR work_bounty/Rustchain/integrations/rustchain-mcp/tests - ModuleNotFound...
ERROR work_bounty/Rustchain/issue2307_boot_chime/tests/test_boot_chime.py
ERROR work_bounty/Rustchain/miners/clawrtc/test_config.py
ERROR work_bounty/Rustchain/mining/crt-attestation/test_crt_attestation.py
ERROR work_bounty/Rustchain/monitoring/alerts/tests/test_api.py
ERROR work_bounty/Rustchain/monitoring/alerts/tests/test_cli_entrypoint.py
ERROR work_bounty/Rustchain/monitoring/alerts/tests/test_config.py
ERROR work_bounty/Rustchain/monitoring/alerts/tests/test_db.py
ERROR work_bounty/Rustchain/monitoring/alerts/tests/test_monitor.py
ERROR work_bounty/Rustchain/monitoring/alerts/tests/test_notifiers.py
ERROR work_bounty/Rustchain/node/test_bridge_address_validation_6193_6195.py
ERROR work_bounty/Rustchain/node/test_bridge_withdraw_completion_credits_destination_poc.py
ERROR work_bounty/Rustchain/node/test_c11_bridge_confirm_unbounded_poc.py - s...
ERROR work_bounty/Rustchain/node/tests/test_bridge_api.py
ERROR work_bounty/Rustchain/rips/rustchain-core/tests/test_validator_score_input_validation.py
ERROR work_bounty/Rustchain/rustchain-bounties-mcp/tests/test_client_miners.py
ERROR work_bounty/Rustchain/rustchain-bounties-mcp/tests/test_mcp_server.py
ERROR work_bounty/Rustchain/rustchain-bounties-mcp/tests/test_schemas.py
ERROR work_bounty/Rustchain/rustchainnode/tests/test_cli_node_url.py
ERROR work_bounty/Rustchain/sdk/python/rustchain_sdk/tests/test_client.py
ERROR work_bounty/Rustchain/sdk/tests/test_agent_economy.py
ERROR work_bounty/Rustchain/sdk/tests/test_async_client.py
ERROR work_bounty/Rustchain/sdk/tests/test_client_integration.py
ERROR work_bounty/Rustchain/sdk/tests/test_client_unit.py
ERROR work_bounty/Rustchain/security/beacon-identity-heist/tests/test_mitigations.py
ERROR work_bounty/Rustchain/telegram_bot/tests/test_rustchain_client.py
ERROR work_bounty/Rustchain/test_p2p_message_validation.py
ERROR work_bounty/Rustchain/test_payout_preflight.py
ERROR work_bounty/Rustchain/tests - ModuleNotFoundError: No module named 'tes...
ERROR work_bounty/Rustchain/tools/comment-moderation-bot/tests - ModuleNotFou...
ERROR work_bounty/Rustchain/wallet/post-quantum/tests/test_rustchain_crypto_pq.py
ERROR work_bounty/Rustchain/wallet/post-quantum/tests/test_rustchain_crypto_pq_adversarial.py
ERROR work_bounty/Rustchain/wallet/tests/test_rustchain_wallet_ppc.py
ERROR work_bounty/Rustchain/wallet/tests/test_wallet_network_errors.py
ERROR work_bounty/Rustchain/witnesses/floppy/test_encoder.py
ERROR work_bounty/TentOfTrials-bounty-67/tools/test_config_generator.py
ERROR work_bounty/memanto/examples/claudecode-skills-memanto/lifecycle-hooks/tests
ERROR work_bounty/memanto/integrations/claudecode/tests - ModuleNotFoundError...
ERROR work_bounty/memanto/integrations/crewai/tests/test_tools.py
ERROR work_bounty/memanto/integrations/hermes-agents/tests/test_provider.py
ERROR work_bounty/memanto/integrations/langgraph/tests/test_nodes.py
ERROR work_bounty/memanto/integrations/langgraph/tests/test_store.py
ERROR work_bounty/memanto/integrations/langgraph/tests/test_tools.py
ERROR work_bounty/memanto/integrations/mcp/tests - ModuleNotFoundError: No mo...
ERROR work_bounty/memanto/tests - ModuleNotFoundError: No module named 'tests...
ERROR work_bounty/oss-hunter-livefire/tests/test_duration_utils.py
!!!!!!!!!!!!!!!!!!! Interrupted: 49 errors during collection !!!!!!!!!!!!!!!!!!!
======================= 17 warnings, 49 errors in 34.28s ======================= import from
Related
Wallet
RTCfe13452d122263caf633ab1876bd9631133b68b1
I received RTC compensation for this review.