← All tasks
pythonpython-jsonschema/jsonschema #876Not a task: already works

4.2.0 contains versionless dep on importlib_resources

envgap__python-jsonschema__jsonschema-876

01 / FAILURE SIGNATURE

As reported upstream

AttributeError: module 'importlib_resources' has no attribute 'files'
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
3d2eec2113828b34d43a533fc5d2b9f8728bd094
Manifest
setup.cfg
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

python-jsonschema/jsonschema #876 · read the original issue
Could we add version boundaries [here](https://github.com/Julian/jsonschema/blob/v4.2.0/setup.cfg#L33) like we do for other libraries?  Older versions (e.g. 1.0.2) of `importlib_resources` (if pinned) will throw errors like below



```

  File "/env/lib/python3.7/site-packages/jsonschema/__init__.py", line 29, in <module> 

    from jsonschema.validators import ( 

  File "/env/lib/python3.7/site-packages/jsonschema/validators.py", line 349, in <module> 

    meta_schema=_utils.load_schema("draft3"), 

  File "/env/lib/python3.7/site-packages/jsonschema/_utils.py", line 60, in load_schema 

    path = resources.files(__package__).joinpath(f"schemas/{name}.json") 

AttributeError: module 'importlib_resources' has no attribute 'files' 

```



Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]