(quantum_beast) PS C:\solana_rust_bot> python "C:\solana_rust_bot\src\python\test_system.py"
C:\solana_rust_bot\src\python\metrics.py:153: FutureWarning: `torch.cuda.amp.autocast(args...)` is deprecated. Please use `torch.amp.autocast('cuda', args...)` instead.
  @torch.cuda.amp.autocast()
C:\solana_rust_bot\src\python\metrics.py:228: FutureWarning: `torch.cuda.amp.autocast(args...)` is deprecated. Please use `torch.amp.autocast('cuda', args...)` instead.
  @torch.cuda.amp.autocast()
C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pytest_asyncio\plugin.py:208: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
================================================================ test session starts ================================================================= 
platform win32 -- Python 3.11.10, pytest-8.3.4, pluggy-1.5.0 -- C:\Users\Orsen\anaconda3\envs\quantum_beast\python.exe
cachedir: .pytest_cache
rootdir: C:\solana_rust_bot
configfile: pyproject.toml
testpaths: src/python
plugins: anyio-4.6.2.post1, asyncio-0.24.0
asyncio: mode=Mode.STRICT, default_loop_scope=None
collected 11 items

src/python/test_system.py::TestSystemSetup::test_system_init FAILED                                                                             [  9%]
src/python/test_system.py::TestSystemSetup::test_cuda_availability PASSED                                                                       [ 18%] 
src/python/test_system.py::TestSystemSetup::test_market_data FAILED                                                                             [ 27%] 
src/python/test_system.py::TestSystemSetup::test_ml_engine PASSED                                                                               [ 36%]
src/python/test_system.py::TestSystemSetup::test_quantum_indicators PASSED                                                                      [ 45%] 
src/python/test_system.py::TestSystemSetup::test_metrics PASSED                                                                                 [ 54%]
src/python/test_system.py::TestSystemSetup::test_groq_analysis PASSED                                                                           [ 63%]
src/python/test_system.py::TestSystemSetup::test_position_scaler PASSED                                                                         [ 72%] 
src/python/test_system.py::TestSystemSetup::test_tps_manager PASSED                                                                             [ 81%] 
src/python/test_system.py::TestSystemSetup::test_safeguards FAILED                                                                              [ 90%]
src/python/test_trading_core.py::test_trading_core PASSED                                                                                       [100%] 

====================================================================== FAILURES ====================================================================== 
__________________________________________________________ TestSystemSetup.test_system_init __________________________________________________________ 
src\python\test_system.py:86: in test_system_init
    system = QuantumOptimized(config)
src\python\quantum_optimized.py:28: in __init__
    self.market_data = MarketData(config)
src\python\market_data.py:36: in __init__
    self.core = TradingCore()
E   ValueError: Invalid keypair data: signature error: PublicKey must be 32 bytes in length
---------------------------------------------------------------- Captured stderr call ---------------------------------------------------------------- 
--- Logging error ---
Traceback (most recent call last):
  File "C:\solana_rust_bot\src\python\market_data.py", line 36, in __init__
    self.core = TradingCore()
                ^^^^^^^^^^^^^
ValueError: Invalid keypair data: signature error: PublicKey must be 32 bytes in length

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\logging\__init__.py", line 1113, in emit
    stream.write(msg + self.terminator)
OSError: [WinError 6] The handle is invalid
Call stack:
  File "C:\solana_rust_bot\src\python\test_system.py", line 231, in <module>
    pytest.main(["-v", "--asyncio-mode=strict"])
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\config\__init__.py", line 175, in main
    ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\main.py", line 330, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\main.py", line 283, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\main.py", line 337, in _main
    config.hook.pytest_runtestloop(session=session)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\main.py", line 362, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\runner.py", line 113, in pytest_runtest_protocol
    runtestprotocol(item, nextitem=nextitem)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\runner.py", line 132, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\runner.py", line 241, in call_and_report
    call = CallInfo.from_call(
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\runner.py", line 341, in from_call
    result: TResult | None = func()
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\runner.py", line 242, in <lambda>
    lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\runner.py", line 174, in pytest_runtest_call
    item.runtest()
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pytest_asyncio\plugin.py", line 457, in runtest
    super().runtest()
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\python.py", line 1627, in runtest
    self.ihook.pytest_pyfunc_call(pyfuncitem=self)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\python.py", line 159, in pytest_pyfunc_call
    result = testfunction(**testargs)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pytest_asyncio\plugin.py", line 929, in inner
    _loop.run_until_complete(task)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\asyncio\base_events.py", line 641, in run_until_complete
    self.run_forever()
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\asyncio\windows_events.py", line 321, in run_forever
    super().run_forever()
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\asyncio\base_events.py", line 608, in run_forever
    self._run_once()
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\asyncio\base_events.py", line 1936, in _run_once
    handle._run()
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\asyncio\events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
  File "c:\solana_rust_bot\src\python\test_system.py", line 86, in test_system_init
    system = QuantumOptimized(config)
  File "C:\solana_rust_bot\src\python\quantum_optimized.py", line 28, in __init__
    self.market_data = MarketData(config)
  File "C:\solana_rust_bot\src\python\market_data.py", line 67, in __init__
    self.logger.error(f"Market data initialization failed: {e}")
Message: 'Market data initialization failed: Invalid keypair data: signature error: PublicKey must be 32 bytes in length'
Arguments: ()
----------------------------------------------------------------- Captured log call ------------------------------------------------------------------ 
ERROR    market_data:market_data.py:67 Market data initialization failed: Invalid keypair data: signature error: PublicKey must be 32 bytes in length  
__________________________________________________________ TestSystemSetup.test_market_data __________________________________________________________ 
src\python\test_system.py:102: in test_market_data
    market_data = MarketData(test_config)
src\python\market_data.py:36: in __init__
    self.core = TradingCore()
E   ValueError: Invalid keypair data: signature error: PublicKey must be 32 bytes in length
---------------------------------------------------------------- Captured stderr call ---------------------------------------------------------------- 
--- Logging error ---
Traceback (most recent call last):
  File "C:\solana_rust_bot\src\python\market_data.py", line 36, in __init__
    self.core = TradingCore()
                ^^^^^^^^^^^^^
ValueError: Invalid keypair data: signature error: PublicKey must be 32 bytes in length

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\logging\__init__.py", line 1113, in emit
    stream.write(msg + self.terminator)
OSError: [WinError 6] The handle is invalid
Call stack:
  File "C:\solana_rust_bot\src\python\test_system.py", line 231, in <module>
    pytest.main(["-v", "--asyncio-mode=strict"])
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\config\__init__.py", line 175, in main
    ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\main.py", line 330, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\main.py", line 283, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\main.py", line 337, in _main
    config.hook.pytest_runtestloop(session=session)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\main.py", line 362, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\runner.py", line 113, in pytest_runtest_protocol
    runtestprotocol(item, nextitem=nextitem)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\runner.py", line 132, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\runner.py", line 241, in call_and_report
    call = CallInfo.from_call(
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\runner.py", line 341, in from_call
    result: TResult | None = func()
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\runner.py", line 242, in <lambda>
    lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\runner.py", line 174, in pytest_runtest_call
    item.runtest()
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pytest_asyncio\plugin.py", line 457, in runtest
    super().runtest()
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\python.py", line 1627, in runtest
    self.ihook.pytest_pyfunc_call(pyfuncitem=self)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\python.py", line 159, in pytest_pyfunc_call
    result = testfunction(**testargs)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pytest_asyncio\plugin.py", line 929, in inner
    _loop.run_until_complete(task)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\asyncio\base_events.py", line 641, in run_until_complete
    self.run_forever()
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\asyncio\windows_events.py", line 321, in run_forever
    super().run_forever()
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\asyncio\base_events.py", line 608, in run_forever
    self._run_once()
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\asyncio\base_events.py", line 1936, in _run_once
    handle._run()
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\asyncio\events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
  File "c:\solana_rust_bot\src\python\test_system.py", line 102, in test_market_data
    market_data = MarketData(test_config)
  File "C:\solana_rust_bot\src\python\market_data.py", line 67, in __init__
    self.logger.error(f"Market data initialization failed: {e}")
Message: 'Market data initialization failed: Invalid keypair data: signature error: PublicKey must be 32 bytes in length'
Arguments: ()
----------------------------------------------------------------- Captured log call ------------------------------------------------------------------ 
ERROR    market_data:market_data.py:67 Market data initialization failed: Invalid keypair data: signature error: PublicKey must be 32 bytes in length  
__________________________________________________________ TestSystemSetup.test_safeguards ___________________________________________________________ 
src\python\test_system.py:228: in test_safeguards
    assert is_valid, f"Token validation failed: {reason}"
E   AssertionError: Token validation failed: Validation error: 'dict' object has no attribute 'market_cap'
E   assert False
---------------------------------------------------------------- Captured stderr call ---------------------------------------------------------------- 
--- Logging error ---
Traceback (most recent call last):
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\logging\__init__.py", line 1113, in emit
    stream.write(msg + self.terminator)
OSError: [WinError 6] The handle is invalid
Call stack:
  File "C:\solana_rust_bot\src\python\test_system.py", line 231, in <module>
    pytest.main(["-v", "--asyncio-mode=strict"])
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\config\__init__.py", line 175, in main
    ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\main.py", line 330, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\main.py", line 283, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\main.py", line 337, in _main
    config.hook.pytest_runtestloop(session=session)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\main.py", line 362, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\runner.py", line 113, in pytest_runtest_protocol
    runtestprotocol(item, nextitem=nextitem)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\runner.py", line 132, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\runner.py", line 241, in call_and_report
    call = CallInfo.from_call(
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\runner.py", line 341, in from_call
    result: TResult | None = func()
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\runner.py", line 242, in <lambda>
    lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\runner.py", line 174, in pytest_runtest_call
    item.runtest()
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pytest_asyncio\plugin.py", line 457, in runtest
    super().runtest()
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\python.py", line 1627, in runtest
    self.ihook.pytest_pyfunc_call(pyfuncitem=self)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pluggy\_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\python.py", line 159, in pytest_pyfunc_call
    result = testfunction(**testargs)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\pytest_asyncio\plugin.py", line 929, in inner
    _loop.run_until_complete(task)
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\asyncio\base_events.py", line 641, in run_until_complete
    self.run_forever()
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\asyncio\windows_events.py", line 321, in run_forever
    super().run_forever()
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\asyncio\base_events.py", line 608, in run_forever
    self._run_once()
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\asyncio\base_events.py", line 1936, in _run_once
    handle._run()
  File "C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\asyncio\events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
  File "c:\solana_rust_bot\src\python\test_system.py", line 217, in test_safeguards
    safeguards = TradingSafeguards(config._config)
  File "C:\solana_rust_bot\src\python\safeguards.py", line 38, in __init__
    self.logger.info("Trading safeguards initialized")
Message: 'Trading safeguards initialized'
Arguments: ()
----------------------------------------------------------------- Captured log call ------------------------------------------------------------------ 
INFO     safeguards:safeguards.py:38 Trading safeguards initialized
================================================================== warnings summary ================================================================== 
..\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\config\__init__.py:1277
  C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\config\__init__.py:1277: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: anyio
    self._mark_plugins_for_rewrite(hook)

..\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\config\__init__.py:1441
  C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\config\__init__.py:1441: PytestConfigWarning: Unknown config option: asyncio_fixture_loop_scope

    self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")

src/python/test_system.py::TestSystemSetup::test_ml_engine
  C:\solana_rust_bot\src\python\ml_engine.py:28: FutureWarning: `torch.cuda.amp.autocast(args...)` is deprecated. Please use `torch.amp.autocast('cuda', args...)` instead.
    self.cuda_autocast = torch.cuda.amp.autocast(dtype=torch.float16)

src/python/test_trading_core.py::test_trading_core
  C:\Users\Orsen\anaconda3\envs\quantum_beast\Lib\site-packages\_pytest\python.py:163: PytestReturnNotNoneWarning: Expected None, but src/python/test_trading_core.py::test_trading_core returned False, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================================================== short test summary info =============================================================== 
FAILED src/python/test_system.py::TestSystemSetup::test_system_init - ValueError: Invalid keypair data: signature error: PublicKey must be 32 bytes in length
FAILED src/python/test_system.py::TestSystemSetup::test_market_data - ValueError: Invalid keypair data: signature error: PublicKey must be 32 bytes in length
FAILED src/python/test_system.py::TestSystemSetup::test_safeguards - AssertionError: Token validation failed: Validation error: 'dict' object has no attribute 'market_cap'
assert False
====================================================== 3 failed, 8 passed, 4 warnings in 1.48s ======================================================= 
2024-12-08 06:53:56,285 - market_data - ERROR - Market data initialization failed: Invalid keypair data: signature error: PublicKey must be 32 bytes in length
2024-12-08 06:53:56,371 - market_data - ERROR - Market data initialization failed: Invalid keypair data: signature error: PublicKey must be 32 bytes in length
2024-12-08 06:53:56,441 - ml_engine - INFO - ML Engine initialized on NVIDIA GeForce RTX 4070 Ti
2024-12-08 06:53:56,457 - ml_engine - INFO - Warming up GPU...
2024-12-08 06:53:56,520 - ml_engine - INFO - GPU warmup complete
2024-12-08 06:53:56,520 - ml_engine - ERROR - Feature extraction error: 'liquidity_locked_pct'
2024-12-08 06:53:56,520 - root - INFO - 🧠 Quantum Indicators initialized on cuda
2024-12-08 06:53:56,520 - root - WARNING - Not enough data points to analyze market state.
2024-12-08 06:53:56,520 - metrics - INFO - CUDA enabled on NVIDIA GeForce RTX 4070 Ti
2024-12-08 06:53:57,667 - groq_analysis - ERROR - Analysis parsing error: Extra data: line 12 column 1 (char 456)
2024-12-08 06:53:57,683 - position_scaler - INFO - Position scaler initialized
2024-12-08 06:53:57,683 - position_scaler - INFO - Position Sizes - Current: 0.020 SOL | Max: 0.250 SOL | Recent Profit: 2.50%
2024-12-08 06:53:57,683 - position_scaler - INFO - Position Sizes - Current: 0.020 SOL | Max: 0.250 SOL | Recent Profit: 2.50%
2024-12-08 06:53:57,683 - position_scaler - INFO - Position Sizes - Current: 0.020 SOL | Max: 0.250 SOL | Recent Profit: 2.50%
2024-12-08 06:53:57,683 - position_scaler - INFO - Position Sizes - Current: 0.020 SOL | Max: 0.250 SOL | Recent Profit: 2.50%
2024-12-08 06:53:57,683 - position_scaler - INFO - Scaling up position size: 0.020 -> 0.021 SOL
2024-12-08 06:53:57,683 - position_scaler - INFO - Position Sizes - Current: 0.021 SOL | Max: 0.250 SOL | Recent Profit: 2.50%
2024-12-08 06:53:57,691 - tps_manager - INFO - TPS Manager initialized: 1 -> 30 TPS
2024-12-08 06:53:57,693 - safeguards - INFO - Trading safeguards initialized
2024-12-08 06:53:57,699 - python.test_trading_core - INFO - Initializing TradingCore...
2024-12-08 06:53:57,700 - python.test_trading_core - ERROR - ❌ Test failed: TradingCore.__new__() got an unexpected keyword argument 'config_path'    
(quantum_beast) PS C:\solana_rust_bot>  can u fix this?