Skip to content

Installation issue: py-fastjsonschema (won't concretize with ^[email protected]) #1779

@payerle

Description

@payerle

Steps to reproduce the issue

$ spack spec -l [email protected] ^[email protected] |& tee spec.out
==> Error: failed to concretize `[email protected] ^[email protected]` for the following reasons:
     1. Cannot satisfy '[email protected]'
     2. Cannot satisfy '[email protected]'
        required because [email protected] ^[email protected] requested explicitly 
     3. Cannot satisfy '[email protected]:' and '[email protected]'
        required because [email protected] ^[email protected] requested explicitly 
        required because py-setuptools depends on [email protected]: when @75.4: 
...

Full output of spec command is attached in "Error message"

Error message

Spec fails to concretize

Error message
.==> Error: failed to concretize `[email protected] ^[email protected]` for the following reasons:
     1. Cannot satisfy '[email protected]'
     2. Cannot satisfy '[email protected]'
        required because [email protected] ^[email protected] requested explicitly 
     3. Cannot satisfy '[email protected]:' and '[email protected]'
        required because [email protected] ^[email protected] requested explicitly 
...
Full output of spec command is attached [spec.txt](https://github.com/user-attachments/files/22620768/spec.txt)

Information on your system

spack debug report

  • Spack: 1.1.0.dev0
  • Builtin repo: 4b8bb35
  • Python: 3.6.8
  • Platform: linux-rhel8-zen2

Additional information

According to information on PyPI, e.g. https://pypi.org/project/fastjsonschema/2.21.1/, recent versions of py-fastjsonspec should support [email protected]

The issue appears to the the following lines in the recipe

    depends_on("[email protected]:3.13", when="@2.21:", type=("build", "run"))
    depends_on("[email protected]:3.12", when="@2.20:", type=("build", "run"))
    depends_on("[email protected]:3.11", when="@2.16.3:", type=("build", "run"))
    depends_on("[email protected]:", when="@2.15:", type=("build", "run"))

The first three of these lines are problematic as the have minimum and maximum version ranges on python, but only a minimum range on py-fastjsonschema version. E.g, the first line listed essentially does nothing, as the upper limit of 3.13 on python is overridden by the upper limits on the next two lines since the when clauses overlap (due to lack of upper limit on py-fastjsonschema versions).

Is anyone aware of any reason why py-fastjsonschema should be limited to python@:3.11 ???

No maintainers for py-fastjsonschema found.

General information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have run spack maintainers <name-of-the-package> and @mentioned any maintainers
  • I have uploaded the build log and environment files
  • I have searched the issues of this repo and believe this is not a duplicate

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions