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.
We hebben een aantal aanpassingen doorgevoerd in model-splitter:
[x] bug: De fix voor bovenstaande fout (alleen files rapporteren wanneer deze worden gekopieerd (en dus niet None zijn))
[x] verbetering: @jkaptein; ik geef de response nu ook terug aan de qui en laat hem printen in de list-widget zoals je voorstelde
[x] bugs: het aanmaken van een revisions-folder wanneer deze nog niet bestaat. Opgelost door target_path.create() -> target_path.create(parents=True) zodat ook de revisions-folder zelf wordt aangemaakt als deze nog niet bestaat
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.