Skip to content
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

Error during convert to geopackage #122

Open
leendertvanwolfswinkel opened this issue Oct 17, 2024 · 0 comments
Open

Error during convert to geopackage #122

leendertvanwolfswinkel opened this issue Oct 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@leendertvanwolfswinkel
Copy link

I did

schema.upgrade(backup=False, upgrade_spatialite_version=True)
schema.convert_to_geopackage()

On this spatialite: staging-test-0d1d2d-simple-infiltration.zip

And it gave me this error:

Traceback (most recent call last):
  File "C:\Users\leendert.vanwolfswin\Documents\migration_checker\migration_checker.py", line 35, in migrate_spatialite
    schema.validate_schema()
  File "C:\Users\leendert.vanwolfswin\AppData\Roaming\Python\Python311\site-packages\threedi_schema\application\schema.py", line 151, in validate_schema
    raise MigrationMissingError(
threedi_schema.application.errors.MigrationMissingError: This tool requires at least schema version 228. Current version: 219.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\leendert.vanwolfswin\Documents\migration_checker\migration_checker.py", line 42, in migrate_spatialite
    schema.convert_to_geopackage()
  File "C:\Users\leendert.vanwolfswin\AppData\Roaming\Python\Python311\site-packages\threedi_schema\application\schema.py", line 280, in convert_to_geopackage
    [out_list[idx].decode("utf-8") for idx in unexpected_error_indices]
  File "C:\Users\leendert.vanwolfswin\AppData\Roaming\Python\Python311\site-packages\threedi_schema\application\schema.py", line 280, in <listcomp>
    [out_list[idx].decode("utf-8") for idx in unexpected_error_indices]
     ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?
@leendertvanwolfswinkel leendertvanwolfswinkel added the bug Something isn't working label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant