-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jsonschema cannot find path specified \\1.0.0\\def.json #2353
Comments
This is going to be interesting to debug as I do not have a Windows machine to test some things. We're relying primarily on >>> pyhf.schema.variables.SCHEMA_CACHE.keys()
dict_keys(['https://scikit-hep.org/pyhf/schemas/1.0.0/defs.json'])
>>> pyhf.schema.variables.schemas
PosixPath('/Users/kratsg/pyhf/src/pyhf/schemas') I'm wondering what happens in the latter. The former is fine, but I'm realizing Windows filepaths are slightly different from web addresses... |
Looks similar to me on the first, but the second seems different.
Let me know if there is anything else i can help with testing on windows :-) |
We technically don't support Windows at the moment, but I will admit that I find this an interesting problem. The difference in |
I suspect I've figured out the issue and will submit a PR shortly. |
@SuchAgoodDoge Can you please verify that if you install from
that things work for you now? If so, we'll make a |
Thank you, this works :-) |
@SuchAgoodDoge
Let us know if you have any questions. 👍 |
Summary
When I try to install pyhf in a venv and then create a simple model, it gives me a n error
When i check the path to the schema with
Following this path then into the 1.0.0 folder, defs.json exists.
OS / Environment
Steps to Reproduce
File Upload (optional)
No response
Expected Results
Expected to get a pyhf.pdf.Model.
Actual Results
pyhf Version
pyhf, version 0.7.4
Code of Conduct
The text was updated successfully, but these errors were encountered: