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

2024 12 11 fix ara bauwerk export 2nd attempt #184

Draft
wants to merge 116 commits into
base: master
Choose a base branch
from

Conversation

sjib
Copy link
Contributor

@sjib sjib commented Dec 11, 2024

replaces #178
rebased on master (11.12.2024)

@sjib sjib self-assigned this Dec 11, 2024
@sjib sjib marked this pull request as draft December 11, 2024 13:20
@sjib sjib added the enhancement New feature or request label Dec 11, 2024
sjib and others added 17 commits December 11, 2024 14:21
@sjib
Copy link
Contributor Author

sjib commented Dec 12, 2024

Ein Fehler trat bei der Ausführung von Python-Code auf: 

AttributeError: 'QgepExportUtils' object has no attribute 'export_organisation' 
Traceback (most recent call last):
  File "C:\Users/Stefan/AppData/Roaming/QGIS/QGIS3\profiles\testingdev165_2/python/plugins\qgepplugin\qgepqwat2ili\qgepqwat2ili\gui\__init__.py", line 672, in action_do_export
    qgep_export_sia405(
  File "C:\Users/Stefan/AppData/Roaming/QGIS/QGIS3\profiles\testingdev165_2/python/plugins\qgepplugin\qgepqwat2ili\qgepqwat2ili\qgepsia405\export.py", line 195, in qgep_export_sia405
    qgep_export_utils.export_organisation()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'QgepExportUtils' object has no attribute 'export_organisation'

@sjib
Copy link
Contributor Author

sjib commented Dec 12, 2024

File "/home/runner/work/qgepqwat2ili/qgepqwat2ili/qgepqwat2ili/qgepsia405/export.py", line 125, in qgep_export_sia405
    subset_wws_ids = remove_from_selection(subset_wws_ids, ws_off_sia405abwasser_list)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/qgepqwat2ili/qgepqwat2ili/qgepqwat2ili/utils/qgep_export_utils.py", line 483, in remove_from_selection
    for list_item in remove_ids:
                     ^^^^^^^^^^
TypeError: 'NoneType' object is not iterable

@sjib
Copy link
Contributor Author

sjib commented Dec 12, 2024

pre-commit-ci bot and others added 18 commits December 12, 2024 16:26
@sjib
Copy link
Contributor Author

sjib commented Dec 13, 2024

Tested:

  • SIA405 Abwasser
  • SIA405 Abwasser Selection
  • VSA-DSS
  • VSA-DSS Selection
  • VSA-KEK
  • VSA-KEK Selection

@sjib
Copy link
Contributor Author

sjib commented Dec 13, 2024

Ein Fehler trat bei der Ausführung von Python-Code auf: 

sqlalchemy.exc.ArgumentError: ON clause, typically a SQL expression or ORM relationship attribute expected, got . 
Traceback (most recent call last):
  File "C:\Users/Stefan/AppData/Roaming/QGIS/QGIS3\profiles\testingdev165_2/python/plugins\qgepplugin\qgepqwat2ili\qgepqwat2ili\gui\__init__.py", line 681, in action_do_export
    qgep_export_dss(
  File "C:\Users/Stefan/AppData/Roaming/QGIS/QGIS3\profiles\testingdev165_2/python/plugins\qgepplugin\qgepqwat2ili\qgepqwat2ili\qgepdss\export.py", line 1395, in qgep_export_dss
    query = query.join(qgep_model.throttle_shut_off_unit, qgep_model.wastewater_node).filter(
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "", line 2, in join
  File "C:\Users\Stefan\AppData\Roaming\Python\Python312\site-packages\sqlalchemy\sql\base.py", line 279, in _generative
    x = fn(self, *args, **kw)
        ^^^^^^^^^^^^^^^^^^^^^
  File "", line 2, in join
  File "C:\Users\Stefan\AppData\Roaming\Python\Python312\site-packages\sqlalchemy\orm\base.py", line 306, in generate
    fn(self, *args, **kw)
  File "C:\Users\Stefan\AppData\Roaming\Python\Python312\site-packages\sqlalchemy\orm\query.py", line 2429, in join
    onclause_element = coercions.expect(
                       ^^^^^^^^^^^^^^^^^
  File "C:\Users\Stefan\AppData\Roaming\Python\Python312\site-packages\sqlalchemy\sql\coercions.py", line 395, in expect
    resolved = impl._literal_coercion(
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Stefan\AppData\Roaming\Python\Python312\site-packages\sqlalchemy\sql\coercions.py", line 909, in _literal_coercion
    self._raise_for_expected(element)
  File "C:\Users\Stefan\AppData\Roaming\Python\Python312\site-packages\sqlalchemy\sql\coercions.py", line 518, in _raise_for_expected
    raise exc.ArgumentError(msg, code=code) from err
sqlalchemy.exc.ArgumentError: ON clause, typically a SQL expression or ORM relationship attribute expected, got .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant