Details
Description
I wrote a python3/pyside accounting app that works connecting to a remote postgres database over a paramiko tunnel with QPSQL connector. This app is working since 2015 and was ported from pyside to pyside2 till 5.14.1 version with no problems.
Starting from pyside2 5.14.2 version, the database connection doesn't work anymore: when I launch the connection, paramiko starts, tunnel starts, the database connects for a first handshake, then the app hangs indefinitely with no error message.
All versions i tried >=5.14.1 (and 6.x also) have this behaviour, so I cannot upgrade the libraries anymore.
In order to provide you a minimal example, I changed the ssh connector paramiko with sshtunnel package: the situation is the same, but the example is really shorter and simpler.
The test environment requires python3, pyside2, sshtunnel. I use the miniconda environment where packages are installed with standard pip.
I enclose a three files app: open the conn.py file and look at the README instructions.
Tank you in advance for the help.
+++++ 04/03/2023 Re-opening +++++
After the fix with the 6.4.3 version, I verified that the QSqlQuery() and QSqlQueryModel() components are running, but the QSqlTableModel() and the QSqlRelationalTableModel() are not.
Please, let me know if it does exist something I can do, a patch or something else to make my app running as it was before.
Thanks in advance.
Attachments
Issue Links
- relates to
-
PYSIDE-2221 Enable Multiple Cores by Supporting Removal of the GIL
- Open