Skip to content

Can not install anchorpy with dependency resolution #164

@chris-lee-lb

Description

@chris-lee-lb

I ran into a dependency resolution error when trying to install anchorpy with Poetry:

> poetry add anchorpy
Using version ^0.21.0 for anchorpy

Updating dependencies
Resolving dependencies... (0.4s)

Because no versions of anchorpy match >0.21.0,<0.22.0
 and anchorpy (0.21.0) depends on construct-typing (>=0.5.1,<0.6), anchorpy (>=0.21.0,<0.22.0) requires construct-typing (>=0.5.1,<0.6).
And because solana (0.36.9) depends on construct-typing (>=0.6.2,<0.7.0)
 and no versions of solana match >0.36.9,<0.37.0, anchorpy (>=0.21.0,<0.22.0) is incompatible with solana (>=0.36.9,<0.37.0).
So, because donkin-langchain-server-chat-agent depends on both solana (>=0.36.9,<0.37.0) and anchorpy (^0.21.0), version solving failed.

It looks like the root issue is that anchorpy 0.21.0 pins construct-typing to <0.6, while the latest solana (0.36.9) requires construct-typing >=0.6.2,<0.7.0. This makes the two libraries mutually incompatible.

Could anyone clarify whether:

  • A new release of anchorpy is planned that bumps the construct-typing requirement to be compatible with solana>=0.36.9?
  • Or if there’s a recommended workaround (e.g., pinning solana to an earlier version)?

This would help resolve installation issues for projects that depend on both anchorpy and solana.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions