-
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]: PostgreSQL database: driver not found #2199
Comments
@LaRiffle, thanks for taking the time to create this issue. If possible (and applicable), please upload to the issue website (#2199) 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] |
@LaRiffle did you actually install any drivers for postgressql on your system? I can run postgressql fine on my macos so Im assuming you are missing some driver from your system. If you can add that information here we might be able to help you figure out what your missing |
Hi, |
Should I install something specific for JASP? Or linking to the Qt SQL engine? |
https://doc.qt.io/qt-6/sql-driver.html Is how qt describes how to use the databases, our jasp interface basically forwards everything to that. I just tried installing some official postgres drivers via the "App Stack Builder" but I cant get them to run. But what postgres did you install? The problem is only that how to connect is not exactly well documented for all platforms*dbs |
Using JASP 0.17.2.1 (installed by "flatpak --user ...") on a Debian bookworm (amd64) with all potentially pertinent Debian packages installed (systemwide) and I encounter the same issue (same error message). Upon trying the connect to a DB (clicking on the "Connect to database" button) on JASP's stderr I can read: Packages installed: I also tried to let the dynamic linking take those QT libs into account: Invoking using flatpak's "--filesystem" argument ("flatpak run --filesystem=/usr org.jaspstats.JASP") doesn't solve the problem, probably because the host's '/usr' is blacklisted in Flatpak's sandbox. And used 'LD_LIBRARY_PATH=/home/jasp/lib/qt5/:/home/jasp/lib/qt6/', to no avail. Are all libs required for PostgreSQL access integrated to the Flatpak build? |
@natmaka Flatpak does not use local or system installed libraries at all. |
@LaRiffle |
@LaRiffle No, I could not figure this one out, it does not work (here) with JASP 0.18.3. All related Flatpak dependencies are up-to-date. I also tried after installing psqlodbc Same error message "Error: Driver not loaded Driver not loaded" (sic). I'm pretty sure that my connection string is adequate (it works on the command line, using psql). Were you able to find a way? |
@natmaka |
@tomtomme Sorry, it seems to me that those issues are coupled as (AFAIK) both have the same cause (PG driver not or inadequately integrated), and therefore that any information related to one of them may be useful the other(?) Won't bother you again. Thx. |
They are a bit different because of the OS. And please do bother us, but in your issue :) |
@LaRiffle |
similar issue now discussed here: #2946 |
JASP Version
0.17.2.1
Commit ID
No response
JASP Module
Other
What analysis are you seeing the problem on?
No response
What OS are you seeing the problem on?
macOS Intel
Bug Description
I'm trying to open a PostgresSQL connection but receive a "Driver not found" error
Expected Behaviour
Connection should work
Steps to Reproduce
Log (if any)
No response
Final Checklist
The text was updated successfully, but these errors were encountered: