Connect to QOCI Linux driver in PyQT5? - linux

When I want to connect my Linux PyQt5 project with QOCI it Shows this message:
QSqlDatabase: QOCI driver not loaded
How Can I fix It?

first look for the available drivers on your linux:
from PyQt5 import QtSql
QtSql.QSqlDatabase().drivers()
on ubuntu 16.04 with python 3.5 and pyqt5 i only get:
['QSQLITE']
in pyqt5 documentation i found:
QtSql contains classes that integrate with SQL databases. It includes editable data models for database tables that can be used with GUI classes. It also includes an implementation of SQLite.
So I suppose, there is only SQLite3 but no Oracle supported in pyqt5. Perhaps you can use python and cx_oracle instead

Related

Camelot ghostscript issue

I am using camelot for pdf table extraction using the below code:
tables=camelot.read_pdf("abc.pdf",pages='all',flavor='stream') in my system using virtual environment. But in case of others system that virtual environment throwing error for ghostscript(Can't find ghostscript DDL registry). Can we create a virtual enviornment with using ghostscript executable. So that it will work in other system as well without installing the ghostscript.

Is cx_Oracle 5.3 compatible with Oracle client 19.10?

We upgraded our Oracle DB and oracle client from 12.1 to 19.10.
Our application server have below setup
OS is Linux
Python version is 2.7.5 and there is no plan to upgrade the python version yet
cx_Oracle library version is 5.3
A quick test shows the application works fine but I am wondering if I need to upgrade the cx_Oracle library? Does it have a support expiry date? I tried to google it, read the information on its Github page but can't find any statement that answers my question.
This combination hasn't been tested. But since the Oracle Client libraries keep compatibility it is likely to work, subject to whatever underlaying enforced changes have been made to the Oracle libraries, perhaps to drop unsupported TLS versions or whatever has occurred in the 8 years since 12.1 was released that I don't know about. You application testing should be the final confirmation.
You should definitely set a goal to update to Python 3 so you can get the latest cx_Oracle version.

PyQt5 Selenium Gecko Driver Built App not working for distribution

I have built an App based on pyqt5 and Selenium Gecko driver and Created an exe file using pyinstaller. It works like a charm on my system. The same exe doesn't work on other systems who do not have anything installed like selenium, python or pyqt5. Pyinstaller docs says that I can distribute the exe file to anyone but that didn't work in my case. Am I missing anything here. Need more suggestions from experts on the ground who dealt with it. Please help. I didn't see any errors when I ran the app in Command Prompt too.

Matplotlib GUI different 2.7 and 3.5

I recently 'downgraded' my python environment from 3.5.2 to 2.7.12 to match the cluster I'm using for work. I still have the same version of Matplotlib (2.2.2) but now when I show the graphs I no longer have the same GUI controls to zoom etc.
Is this standard or could it be due to me also moving from using anaconda to self-managed virtual environments at the same time?
I miss my zoom tool please help!

Using qtmotifextension with QT5

Currently I'm using qtmotifextension to connect QT world with old Motif UI on X11 Linux station.
I'm trying to update towards QT5 but X11processEvent from QApplication has been removed.
Is there an updated qtmotifextension from old qt-solutions available or is there any way to have X11processEvent from QT5?
Seems that qtmotifextension is no more maintained... You have to stick to QT4 or re-implement this extension....

Resources