Closed patricklatimer closed 1 year ago
Hi there -- this probably belongs downstream in the pyinstaller repos -- what's here in this repo is working correctly for normal installations, so whatever is happening has to do with the tricks pyinstaller plays.
Description
When using Pyinstaller to package an application using jsonschema>=4.18.0, the 'schemas' folder in jsonschema_specifications isn't pulled into the resulting folder under dist. Then when jsonschema_specifications tries to access it in line 27 of _core:
for version in files(__package__).joinpath("schemas").iterdir():
, it fails. This doesn't happen for jsonschema==4.17.0, so it must be something with the newer repo structure.Steps to reproduce:
In a fresh environment:
pip install the following:
create app.py containing the line
import jsonschema
run
pyinstaller app.py
Running
"dist/app/app.exe
yields the following error:And there is no
dist/app/jsonschema_specifications
folder, though there is adist/app/jsonschema
. When I tested it with jsonschema==4.17.0, there was adist/app/jsonschema/schemas
folder and the app runs correctly.