-
Notifications
You must be signed in to change notification settings - Fork 29
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
[Bug]: cannot use a PostgreSQL database source, error message ''Error: Driver not loaded Driver not loaded" #2209
Comments
@natmaka, thanks for taking the time to create this issue. If possible (and applicable), please upload to the issue website (#2209) a screenshot showcasing the problem, and/or a compressed (zipped) .jasp file or the data file that causes the issue. If you would prefer not to make your data publicly available, you can send your file(s) directly to us, [email protected] |
I edited my report in order to add the error message. Here is a screenshot: https://postimg.cc/5jNvhXM7 |
Using JASP 0.17.3 (installed a 0.17.2.1 one week ago by "flatpak --user ...") on a Debian bookworm (amd64) All potentially pertinent (Qt) Debian packages are installed systemwide, however I understand that the flatpak sandbox cannot access to them (as /usr and such are blacklisted). I run it by invoking "dbus-run-session -- flatpak --user run org.jaspstats.JASP" Are all required libraries (Qt: SQl, psql...) bundled in the distributed Flatpak? |
This is correct. We sadly do not ship the database drivers (psql) in the flatpak. |
Thank you! |
0.18 doesn't solve the problem, therefore I suppose that shipping the database drivers (psql) in the flatpak wasn't considered sound or isn't possible. Is it a dead end or do you plan to find a way? Thank you! |
Im not sure how easy it is to use libraries and databases outside the flatpak in the flatpak. Do they have the same ABI and all? Maybe it would be better to include some drivers? Also yeah we didnt look at it for the last release @natmaka , too much work on data editing |
@JorisGoosen @RensDofferhoff @natmaka
|
Im afraid not, I want to look at this but it is rather low prio |
Closing as duplicate of #2946 now. Lets disuss there. |
JASP Version
0.17.2.1 (this report also apply to 0.18.3)
Commit ID
No response
JASP Module
Unrelated
What analysis are you seeing the problem on?
No response
What OS are you seeing the problem on?
Flatpak
Bug Description
(Coming from #2199)
I installed JASP through "flatpak --user ..." on a Debian bookworm (amd64) .
Using the menu Open-Database I try to access to a remote PostgreSQL instance (which otherwise works OK, including when accessed thru psql from the local computer). It fails. On the "preview" zone an error message appears: "Error: Driver not loaded Driver not loaded".
I tried to circumvent the sandboxing in order to let JASP access to Qt libraries (see #2199), to no avail.
Upon trying the connect to a DB (clicking on the "Connect to database" button) on JASP's stderr I can read:
QSqlDatabase: QPSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE
Are all libs required for PostgreSQL access integrated to the Flatpak build?
Expected Behaviour
JASP should be able to access to a PostgreSQL instance.
Steps to Reproduce
Log (if any)
No response
Final Checklist
The text was updated successfully, but these errors were encountered: