Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix open photogrammetry example not working on Windows (#3705)
### What Fixes `python .\examples\python\open_photogrammetry_format\main.py` on Windows Was getting ``` Traceback (most recent call last): File "C:\dev\rerun\rerun\examples\python\open_photogrammetry_format\main.py", line 220, in <module> main() File "C:\dev\rerun\rerun\examples\python\open_photogrammetry_format\main.py", line 209, in main project = OPFProject.from_dataset(args.dataset, log_as_frames=not args.no_frames) File "C:\dev\rerun\rerun\examples\python\open_photogrammetry_format\main.py", line 107, in from_dataset return cls(DATASET_DIR / spec.dir_name / "project.opf", log_as_frames=log_as_frames) File "C:\dev\rerun\rerun\examples\python\open_photogrammetry_format\main.py", line 85, in __init__ self.project = resolve(load(str(path))) File "C:\Python310\lib\site-packages\pyopf\io\loaders.py", line 143, in load accepted, params = test(resource, base_uri, additional_resources) File "C:\Python310\lib\site-packages\pyopf\io\loaders.py", line 73, in _test_json_resource uri = join_uris(resource, base_uri) File "C:\Python310\lib\site-packages\pyopf\io\loaders.py", line 31, in join_uris raise RuntimeError("Non-file URIs are not supported") RuntimeError: Non-file URIs are not supported ``` before. With the fix here it runs fine ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/3705) (if applicable) - [PR Build Summary](https://build.rerun.io/pr/3705) - [Docs preview](https://rerun.io/preview/84ac386ff07a956250309089cfef448d39195327/docs) <!--DOCS-PREVIEW--> - [Examples preview](https://rerun.io/preview/84ac386ff07a956250309089cfef448d39195327/examples) <!--EXAMPLES-PREVIEW--> - [Recent benchmark results](https://ref.rerun.io/dev/bench/) - [Wasm size tracking](https://ref.rerun.io/dev/sizes/) --------- Co-authored-by: Emil Ernerfeldt <[email protected]> Co-authored-by: Clement Rey <[email protected]>
- Loading branch information