cityjson / cjio

CityJSON/io: Python CLI to process and manipulate CityJSON files
MIT License
126 stars 32 forks source link

Validate command is failing #153

Closed ghobona closed 1 year ago

ghobona commented 1 year ago

Describe the bug

When I run the following command

~/cjio/tests/data$ cjio minimal.json validate

I get the following error message

Parsing minimal.json
Validation (with official CityJSON schemas)
Error: 'CJValidator' object has no attribute 'get_report'

cjio version

cjio v0.8.0; supports CityJSON v1.1

I installed it from the develop branch of GitHub repo.

To Reproduce

~/cjio/tests/data$ cjio minimal.json validate

Expected behavior

Completion of validate command.

Desktop (please complete the following information):

Ubuntu 20.04.1

Additional context Add any other context about the problem here.

hugoledoux commented 1 year ago

My guess is that you have an older version of cjvalpy, you need v0.3+

I didn't build linux wheels because that was crashing and I did only Windows and macOS. So the solution is just to install them yourself, it takes 2min: https://github.com/cityjson/cjvalpy#if-you-want-to-compile-it-yourself

Let me know if that works please

hugoledoux commented 1 year ago

I assume this fixed it @ghobona so I'll close this issue