Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library is not compatible with web3 6.0.0-beta.1 #203

Closed
Polsaker opened this issue Mar 8, 2022 · 1 comment · Fixed by #205
Closed

Library is not compatible with web3 6.0.0-beta.1 #203

Polsaker opened this issue Mar 8, 2022 · 1 comment · Fixed by #205

Comments

@Polsaker
Copy link

Polsaker commented Mar 8, 2022

This is not directly solana-py's fault, but it might be good to have an issue here to track the upstream changes needed.


Currently web3.py 6.0 and solana-py cannot be installed together due to a dependency conflict:

  Because no versions of jsonrpcserver match >5.0.4,<5.0.5 || >5.0.5,<5.0.6 || >5.0.6,<6.0.0
   and jsonrpcserver (5.0.4) depends on jsonschema (<4), jsonrpcserver (>=5.0.4,<5.0.5 || >5.0.5,<5.0.6 || >5.0.6,<6.0.0) requires jsonschema (<4).
  And because jsonrpcserver (5.0.5) depends on jsonschema (<4)
   and jsonrpcserver (5.0.6) depends on jsonschema (<4), jsonrpcserver (>=5.0.4,<6.0.0) requires jsonschema (<4).
  Because no versions of solana match >0.23,<0.24
   and solana (0.23.0) depends on jsonrpcserver (>=5.0.4,<6.0.0), solana (>=0.23,<0.24) requires jsonrpcserver (>=5.0.4,<6.0.0).
  Thus, solana (>=0.23,<0.24) requires jsonschema (<4).
  And because web3 (6.0.0b1) depends on jsonschema (>=4.0.0,<5)
   and no versions of web3 match >6.0.0b1,<7.0.0, solana (>=0.23,<0.24) is incompatible with web3 (>=6.0.0b1,<7.0.0).
  So, because your project depends on both web3 (^6.0.0b1) and solana (^0.23), version solving failed.

The solution is getting jsonrpcserver to depend on jsonschema>=4.0.0

@Polsaker
Copy link
Author

Polsaker commented Mar 9, 2022

jsonrpcserver just released a new version that depends on jsonschema>=4: explodinglabs/jsonrpcserver#230

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 a pull request may close this issue.

1 participant