threedi / hhnk-threedi-plugin

QGIS plugin gebruikt voor analyses van 3Di modellen bij HHNK.
1 stars 0 forks source link

model splitter nonetype pathlike #93

Closed wvanesse closed 1 year ago

wvanesse commented 1 year ago

Model splitter direct na het splitten geeft:

An error has occurred while executing Python code:

TypeError: expected str, bytes or os.PathLike object, not NoneType Traceback (most recent call last): File "C:\Users\wvanesse\AppData\Roaming\3Di\QGIS3\profiles\default/python/plugins\hhnk_threedi_plugin\gui\model_splitter\model_splitter_dialog.py", line 108, in create_schematisations self.modelschematisations.create_local_sqlite_revision(commit_message=str(" (local split revision)" )) File "\corp.hhnk.nl\data\hydrologen_data\data\github\wvanesse\hhnk-threedi-tools\hhnk_threedi_tools\core\schematisation\model_splitter.py", line 311, in create_local_sqlite_revision return print(f"succes copy {Path(sqlite_path).name} + {Path(mod_settings_file).name} + {Path(mod_settings_default).name} + {Path(model_sql).name} to: {target_path.base}") File "C:\PROGRA~1\3DIMOD~1.28\apps\Python39\lib\pathlib.py", line 1072, in new self = cls._from_parts(args, init=False) File "C:\PROGRA~1\3DIMOD~1.28\apps\Python39\lib\pathlib.py", line 697, in _from_parts drv, root, parts = self._parse_args(args) File "C:\PROGRA~1\3DIMOD~1.28\apps\Python39\lib\pathlib.py", line 681, in _parse_args a = os.fspath(a) TypeError: expected str, bytes or os.PathLike object, not NoneType

gebruikt als test: //corp.hhnk.nl/data/Hydrologen_data/Data/02.modellen/HKC23010_Eijerland_WP/02_schematisation/model_settings.xlsx De modellen zijn wel aangemaakt en hij geeft in de frontend ook aan dat ik verder kan. spatialites zijn goed geslpit. Vervolg model upload werkt ook. Na upload opnieuw dezelfde error Ik heb niet lagen ingeladen voor het testen.

d2hydro commented 1 year ago

We hebben een aantal aanpassingen doorgevoerd in model-splitter: