Skip to content

The version conflict of numpy caused the installation of SAM3 to fail. #476

@kmood

Description

@kmood

Environment Information

  • samgeo version:
  • Python version: 3.12
  • Operating System: Linux version 5.10.134-18.an8.x86_64 (mockbuild@iZ2ze8vdmdyl66lfybi1hzZ) (gcc (GCC) 8.5.0 20210514 (Anolis 8.5.0-18.0.4), GNU ld version 2.30-123.0.1.an8) Welcome to segment-geospatial Discussions! #1 SMP Fri Dec 13 16:32:58 CST 2024

Description

sam3==0.1.0 depends on numpy>=1.26,<2 and only sam3==0.1.0 is available, we can conclude that all versions of sam3 and segment-geospatial[samgeo3]>=0.15.2 are incompatible.

What I Did

**uv sync** 
  × No solution found when resolving dependencies for split (markers: python_full_version >= '3.12' and sys_platform ==
  │ 'darwin'):
  ╰─▶ Because buildingregulariser<=0.1.11 depends on numpy>=2.2.4 and only the following versions of buildingregulariser
      are available:
          buildingregulariser==0.1.0
          buildingregulariser==0.1.3
          buildingregulariser==0.1.4
          buildingregulariser==0.1.6
          buildingregulariser==0.1.7
          buildingregulariser==0.1.8
          buildingregulariser==0.1.9
          buildingregulariser==0.1.10
          buildingregulariser==0.1.11
          buildingregulariser==0.1.12
          buildingregulariser==0.2.2
          buildingregulariser==0.2.4
      we can conclude that buildingregulariser<0.1.12 depends on numpy>=2.2.4. (1)
      And because buildingregulariser>=0.1.12 depends on numpy>=2.0.0, we can conclude that all versions of
      buildingregulariser depend on numpy>=2.0.0.
      And because segment-geospatial[samgeo3]>=0.15.2 depends on buildingregulariser and only the following versions of
      segment-geospatial[samgeo3] are available:
          segment-geospatial[samgeo3]<=0.15.2
          segment-geospatial[samgeo3]==0.16.0
          segment-geospatial[samgeo3]==1.0.0
          segment-geospatial[samgeo3]==1.0.1
          segment-geospatial[samgeo3]==1.0.2
          segment-geospatial[samgeo3]==1.0.3
          segment-geospatial[samgeo3]==1.1.0
          segment-geospatial[samgeo3]==1.2.0
          segment-geospatial[samgeo3]==1.2.1
      we can conclude that segment-geospatial[samgeo3]>0.15.2,<1.0.0 depends on numpy>=2.0.0. (2)

      Because buildingregulariser<=0.1.11 depends on numpy>=2.2.4 and only the following versions of buildingregulariser
      are available:
          buildingregulariser==0.1.0
          buildingregulariser==0.1.3
          buildingregulariser==0.1.4
          buildingregulariser==0.1.6
          buildingregulariser==0.1.7
          buildingregulariser==0.1.8
          buildingregulariser==0.1.9
          buildingregulariser==0.1.10
          buildingregulariser==0.1.11
          buildingregulariser==0.1.12
          buildingregulariser==0.2.2
          buildingregulariser==0.2.4
      we can conclude that buildingregulariser<0.1.12 depends on numpy>=2.2.4.
      And because buildingregulariser>=0.1.12 depends on numpy>=2.0.0 and all of:
          segment-geospatial[samgeo3]==0.15.2
          segment-geospatial[samgeo3]>=1.0.0
      depend on buildingregulariser, we can conclude that all of:
          segment-geospatial[samgeo3]==0.15.2
          segment-geospatial[samgeo3]>=1.0.0
      depend on numpy>=2.0.0.
      And because we know from (2) that segment-geospatial[samgeo3]>0.15.2,<1.0.0 depends on numpy>=2.0.0, we can conclude
      that segment-geospatial[samgeo3]>0.15.2,<1.0.1 depends on numpy>=2.0.0. (3)

      Because buildingregulariser<=0.1.11 depends on numpy>=2.2.4 and only the following versions of buildingregulariser
      are available:
          buildingregulariser==0.1.0
          buildingregulariser==0.1.3
          buildingregulariser==0.1.4
          buildingregulariser==0.1.6
          buildingregulariser==0.1.7
          buildingregulariser==0.1.8
          buildingregulariser==0.1.9
          buildingregulariser==0.1.10
          buildingregulariser==0.1.11
          buildingregulariser==0.1.12
          buildingregulariser==0.2.2
          buildingregulariser==0.2.4
      we can conclude that buildingregulariser<0.1.12 depends on numpy>=2.2.4.
      And because buildingregulariser>=0.1.12 depends on numpy>=2.0.0 and all of:
          segment-geospatial[samgeo3]==0.15.2
          segment-geospatial[samgeo3]>=1.0.1
      depend on buildingregulariser, we can conclude that all of:
          segment-geospatial[samgeo3]==0.15.2
          segment-geospatial[samgeo3]>=1.0.1
      depend on numpy>=2.0.0.
      And because we know from (3) that segment-geospatial[samgeo3]>0.15.2,<1.0.1 depends on numpy>=2.0.0, we can conclude
      that segment-geospatial[samgeo3]>0.15.2,<1.0.2 depends on numpy>=2.0.0. (4)

      Because buildingregulariser<=0.1.11 depends on numpy>=2.2.4 and only the following versions of buildingregulariser
      are available:
          buildingregulariser==0.1.0
          buildingregulariser==0.1.3
          buildingregulariser==0.1.4
          buildingregulariser==0.1.6
          buildingregulariser==0.1.7
          buildingregulariser==0.1.8
          buildingregulariser==0.1.9
          buildingregulariser==0.1.10
          buildingregulariser==0.1.11
          buildingregulariser==0.1.12
          buildingregulariser==0.2.2
          buildingregulariser==0.2.4
      we can conclude that buildingregulariser<0.1.12 depends on numpy>=2.2.4.
      And because buildingregulariser>=0.1.12 depends on numpy>=2.0.0 and all of:
          segment-geospatial[samgeo3]==0.15.2
          segment-geospatial[samgeo3]>=1.0.2
      depend on buildingregulariser, we can conclude that all of:
          segment-geospatial[samgeo3]==0.15.2
          segment-geospatial[samgeo3]>=1.0.2
      depend on numpy>=2.0.0.
      And because we know from (4) that segment-geospatial[samgeo3]>0.15.2,<1.0.2 depends on numpy>=2.0.0, we can conclude
      that segment-geospatial[samgeo3]>0.15.2,<1.0.3 depends on numpy>=2.0.0. (5)

      Because buildingregulariser<=0.1.11 depends on numpy>=2.2.4 and only the following versions of buildingregulariser
      are available:
          buildingregulariser==0.1.0
          buildingregulariser==0.1.3
          buildingregulariser==0.1.4
          buildingregulariser==0.1.6
          buildingregulariser==0.1.7
          buildingregulariser==0.1.8
          buildingregulariser==0.1.9
          buildingregulariser==0.1.10
          buildingregulariser==0.1.11
          buildingregulariser==0.1.12
          buildingregulariser==0.2.2
          buildingregulariser==0.2.4
      we can conclude that buildingregulariser<0.1.12 depends on numpy>=2.2.4.
      And because buildingregulariser>=0.1.12 depends on numpy>=2.0.0 and all of:
          segment-geospatial[samgeo3]==0.15.2
          segment-geospatial[samgeo3]>=1.0.3
      depend on buildingregulariser, we can conclude that all of:
          segment-geospatial[samgeo3]==0.15.2
          segment-geospatial[samgeo3]>=1.0.3
      depend on numpy>=2.0.0.
      And because we know from (5) that segment-geospatial[samgeo3]>0.15.2,<1.0.3 depends on numpy>=2.0.0, we can conclude
      that segment-geospatial[samgeo3]>0.15.2,<1.1.0 depends on numpy>=2.0.0. (6)

      Because buildingregulariser<=0.1.11 depends on numpy>=2.2.4 and only the following versions of buildingregulariser
      are available:
          buildingregulariser==0.1.0
          buildingregulariser==0.1.3
          buildingregulariser==0.1.4
          buildingregulariser==0.1.6
          buildingregulariser==0.1.7
          buildingregulariser==0.1.8
          buildingregulariser==0.1.9
          buildingregulariser==0.1.10
          buildingregulariser==0.1.11
          buildingregulariser==0.1.12
          buildingregulariser==0.2.2
          buildingregulariser==0.2.4
      we can conclude that buildingregulariser<0.1.12 depends on numpy>=2.2.4.
      And because buildingregulariser>=0.1.12 depends on numpy>=2.0.0 and all of:
          segment-geospatial[samgeo3]==0.15.2
          segment-geospatial[samgeo3]>=1.1.0
      depend on buildingregulariser, we can conclude that all of:
          segment-geospatial[samgeo3]==0.15.2
          segment-geospatial[samgeo3]>=1.1.0
      depend on numpy>=2.0.0.
      And because we know from (6) that segment-geospatial[samgeo3]>0.15.2,<1.1.0 depends on numpy>=2.0.0, we can conclude
      that segment-geospatial[samgeo3]>0.15.2,<1.2.0 depends on numpy>=2.0.0. (7)

      Because buildingregulariser<=0.1.11 depends on numpy>=2.2.4 and only the following versions of buildingregulariser
      are available:
          buildingregulariser==0.1.0
          buildingregulariser==0.1.3
          buildingregulariser==0.1.4
          buildingregulariser==0.1.6
          buildingregulariser==0.1.7
          buildingregulariser==0.1.8
          buildingregulariser==0.1.9
          buildingregulariser==0.1.10
          buildingregulariser==0.1.11
          buildingregulariser==0.1.12
          buildingregulariser==0.2.2
          buildingregulariser==0.2.4
      we can conclude that buildingregulariser<0.1.12 depends on numpy>=2.2.4.
      And because buildingregulariser>=0.1.12 depends on numpy>=2.0.0 and all of:
          segment-geospatial[samgeo3]==0.15.2
          segment-geospatial[samgeo3]>=1.2.0
      depend on buildingregulariser, we can conclude that all of:
          segment-geospatial[samgeo3]==0.15.2
          segment-geospatial[samgeo3]>=1.2.0
      depend on numpy>=2.0.0.
      And because we know from (7) that segment-geospatial[samgeo3]>0.15.2,<1.2.0 depends on numpy>=2.0.0, we can conclude
      that segment-geospatial[samgeo3]>0.15.2,<1.2.1 depends on numpy>=2.0.0. (8)

      Because buildingregulariser<=0.1.11 depends on numpy>=2.2.4 and only the following versions of buildingregulariser
      are available:
          buildingregulariser==0.1.0
          buildingregulariser==0.1.3
          buildingregulariser==0.1.4
          buildingregulariser==0.1.6
          buildingregulariser==0.1.7
          buildingregulariser==0.1.8
          buildingregulariser==0.1.9
          buildingregulariser==0.1.10
          buildingregulariser==0.1.11
          buildingregulariser==0.1.12
          buildingregulariser==0.2.2
          buildingregulariser==0.2.4
      we can conclude that buildingregulariser<0.1.12 depends on numpy>=2.2.4.
      And because buildingregulariser>=0.1.12 depends on numpy>=2.0.0 and all of:
          segment-geospatial[samgeo3]==0.15.2
          segment-geospatial[samgeo3]>=1.2.1
      depend on buildingregulariser, we can conclude that all of:
          segment-geospatial[samgeo3]==0.15.2
          segment-geospatial[samgeo3]>=1.2.1
      depend on numpy>=2.0.0.
      And because we know from (8) that segment-geospatial[samgeo3]>0.15.2,<1.2.1 depends on numpy>=2.0.0, we can conclude
      that segment-geospatial[samgeo3]>0.15.2 depends on numpy>=2.0.0. (9)

      Because buildingregulariser<=0.1.11 depends on numpy>=2.2.4 and only the following versions of buildingregulariser
      are available:
          buildingregulariser==0.1.0
          buildingregulariser==0.1.3
          buildingregulariser==0.1.4
          buildingregulariser==0.1.6
          buildingregulariser==0.1.7
          buildingregulariser==0.1.8
          buildingregulariser==0.1.9
          buildingregulariser==0.1.10
          buildingregulariser==0.1.11
          buildingregulariser==0.1.12
          buildingregulariser==0.2.2
          buildingregulariser==0.2.4
      we can conclude that buildingregulariser<0.1.12 depends on numpy>=2.2.4.
      And because buildingregulariser>=0.1.12 depends on numpy>=2.0.0 and segment-geospatial[samgeo3]==0.15.2 depends on
      buildingregulariser, we can conclude that segment-geospatial[samgeo3]==0.15.2 depends on numpy>=2.0.0.
      And because we know from (9) that segment-geospatial[samgeo3]>0.15.2 depends on numpy>=2.0.0, we can conclude that
      segment-geospatial[samgeo3]>=0.15.2 depends on numpy>=2.0.0.
      And because sam3==0.1.0 depends on numpy>=1.26,<2 and only sam3==0.1.0 is available, we can conclude that all
      versions of sam3 and segment-geospatial[samgeo3]>=0.15.2 are incompatible.
      And because your project depends on sam3 and segment-geospatial[samgeo3]>=0.15.2, we can conclude that your
      project's requirements are unsatisfiable.

      hint: The resolution failed for an environment that is not the current one, consider limiting the environments with
      `tool.uv.environments`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions