bloXroute-Labs / solana-trader-client-python

MIT License
18 stars 7 forks source link

json rpc type issue #136

Open benjiqq opened 4 weeks ago

benjiqq commented 4 weeks ago

File "/Users/.../.venv/lib/python3.12/site-packages/bxsolana/provider/ws.py", line 7, in from . import jsonrpc_patch # noqa: F401, Used for side-effect patching ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/.../.venv/lib/python3.12/site-packages/bxsolana/provider/jsonrpc_patch.py", line 2, in from jsonrpc.types.server_error import RpcErrorCode, message_map, RpcError ModuleNotFoundError: No module named 'jsonrpc.types'

benjiqq commented 4 weeks ago

here https://github.com/bloXroute-Labs/solana-trader-client-python/blob/develop/bxsolana/provider/jsonrpc_patch.py#L2

maybe related to https://pypi.org/project/bx-jsonrpc-py/

atulsriv commented 4 weeks ago

@benjiqq what pypi package are you using?

benjiqq commented 4 weeks ago

this is from my project.toml

dependencies = [
    "requests>=2.32.3",
    "betterproto==2.0.0b6",
    "python-dotenv>=1.0.1",    
    "setuptools>=75.2.0",
    "async-timeout>=4.0.3",    
    "solana==0.31.0",
    "websocket-client>=1.8.0",
    "python-dateutil>=2.9.0.post0",
    "bxsolana-trader-proto @ git@github.com:bloXroute-Labs/solana-trader-proto.git",
    "bxsolana-trader @ git@github.com:bloXroute-Labs/solana-trader-client-python.git",
    "base58>=2.1.1",
    "aiohttp>=3.10.10",
    "jsonrpc>=3.0.1",
]