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

Unmet dependencies with ModelBaker > 6.4.0 #65

Open
sjib opened this issue May 9, 2022 · 8 comments
Open

Unmet dependencies with ModelBaker > 6.4.0 #65

sjib opened this issue May 9, 2022 · 8 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@sjib
Copy link
Contributor

sjib commented May 9, 2022

If you have a newer version than 6.4.0 of Model Baker you will most probably get dependencies issues:

unmet_dependencies

as Model Baker made some big changes.

So please manually download the 6.4.0 release Use ModelBaker 6.5.2 (updated 26.4.2023) and install that version from the .zip to use the INTERLIS Import / Export interface.

@sjib sjib added bug Something isn't working documentation Improvements or additions to documentation labels May 9, 2022
@kandre
Copy link

kandre commented May 12, 2022

I encountered this problem, then I saw your issue, thks. I confirm qgep plugin loads with the 6.4.0 Model Baker.

@urskaufmann
Copy link

urskaufmann commented Jun 23, 2022

Olivier told me, that I have to use modelbaker 7.0.x With 7.1.x I had also this dependencies-problem. With 7.0.3 it works.

Olivier wrote also to solve the problem: either adapt qgepqwat2ili to the new modelbaker version and include tests for modelbaker compatibility, or remove the dependency on modelbaker altogether.

Should be solved soon...

@olivierdalang
Copy link
Collaborator

Thanks Urs didn't know there was an issue for this already.

@sjib
Copy link
Contributor Author

sjib commented Jun 23, 2022

As modelbaker v7 brings a lot of changes I would rather vote to adapt qgepqwat2ili to the new modelbaker version and include tests for modelbaker compatibility

@olivierdalang
Copy link
Collaborator

For this, here are the options I see:

  1. adapt the code to modelbaker v7
  • pros: relatively small change,
  • cons: will break again in the future
  1. vendor the new QgisModelBakerLibrary instead of depending on the plugin itself
  • pro: sounds like a solid plan as this is probably a typical use case for that library
  • cons: did not yet look into the library, not sure how standalone it is (I guess we need to redo some UI for manual configuration, and need to check it's usable without conflict with modelbaker.) and not sure if already stable (since very new)
  1. remove modelbaker dependency completely, and instead reimplement some code to find out/configure javapath, and ship ili2pg binaries
  • pro: one less dependency
  • cons: we need to reimplement some already existing code, and reliably wrapping ili2db is not that easy (see codebase in modelbaker)

IMO option 1. makes sense in the short term as it's the smallest change, but would definitely suggest to plan 2 or 3 as soon as we have a more than short term roadmap.

@sjib @ponceta Am I correct we didn't decide on this at this stage and will leave it as is for now ? (and probably discuss that during next meeting ?)

@sjib
Copy link
Contributor Author

sjib commented Apr 26, 2023

With ModelBaker 6.4.0 it seems that you get
Info: ili2pg-4.4.6-70e53561bc07da8c82a9bd4dbe38db34a5116231 - which will produce the following error with VSA-DSS Export:
Info: create table structure, if not existing... Error: failed to insert meta info values to pg2ili_dss.T_ILI2DB_COLUMN_PROP Error: FEHLER: Wert zu lang für Typ character varying(1024)
This error is solved in the meantime by ili2db

-> Use ModelBaker 6.5.2 instead to avoid this.

@sjib
Copy link
Contributor Author

sjib commented Aug 2, 2024

This will still cause a problem with Postgres 15

Info: ili2pg-4.5.0-fc023c8d2d8cd44d792927e45dc80c1ad973f095
Info: ili2c-5.2.0-8af364826071f5feaae6f3d07a42518af082e083
Info: iox-ili-1.21.5-3b5a7efa5c363f77a4da188affead4d51dc38438
Info: java.version 11.0.12
Info: user.name <Stefan>
Info: maxMemory 4147200 KB
Info: currentTime 2024-08-02 15:30:13
Info: dbschema <pg2ili_dss>
Info: dburl <jdbc:postgresql://localhost:5433/qgep_testplugin163dm162>
Info: dbusr <postgres>
Error: org.postgresql.util.PSQLException: SCRAM authentication is not supported by this driver. You need JDK >= 8 and pgjdbc >= 42.2.0 (not ".jre" versions)
Error:   SCRAM authentication is not supported by this driver. You need JDK >= 8 and pgjdbc >= 42.2.0 (not ".jre" versions)

@sjib
Copy link
Contributor Author

sjib commented Aug 2, 2024

Is solved with newer version of ili2pg - I packaged a special version of ModelBaker with that see #138 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants