ministaller | Lightweight installer/updater for portable desktop | DevOps library
kandi X-RAY | ministaller Summary
kandi X-RAY | ministaller Summary
Lightweight installer/updater for portable desktop applications
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Run the main program .
- findFilesToRemoveOrUpdate walks the install directory and adds the files to the install directory .
- Unzip zip src to dest
- copyFile copies src to dst .
- calculateSha1Hashes walks through all files in a directory recursively
- CalculateHashes returns a map of SHA1 hashes
- parseFlags parses command line flags .
- guiinit initializes the GUI form .
- Cleanup empty directories
- downloadFileOnce downloads a remote file
ministaller Key Features
ministaller Examples and Code Snippets
Community Discussions
Trending Discussions on ministaller
QUESTION
I am trying to package a python application using pyinstaller. I am using cx_oracle and the oracle instant client to connect to an oracle database. I am working on Windows 10. My application works fine before I package it. But after packaging, the following error occurs when I try to run the executable file:
cx_Oracle.DatabaseError: DPI-1072: the Oracle Client library version is unsupported
This error occurs in the line cx_Oracle.init_oracle_client(lib_dir=r"instantclient_19_9")
. According to the ODPI log, the Oracle Instant Client is loaded successfully, but while validating, the error occurs.
The problem is not due to a different Oracle Instant Client version on the system. I have checked for other versions on the systems, but there are none. Also, when I remove the Oracle Instant Client that I am trying to load, a different error occurrs, which says that not Oracle Instant client was found.
When I package the application while mocking or omitting the database connection, the packaging works fine.
I have tried everything on two separate systems, on which I experience the same issues. Another person could reproduce my issues as well. Also, I can replicate this error with the following toy example:
There needs to be no Oracle database present. The Oracle Instant Client needs to be installed into the folder where the following file is located.
...ANSWER
Answered 2021-Feb-22 at 02:32Triple check the correct Oracle client is being loaded. Set the environment variable DPI_DEBUG_LEVEL to 64 before starting Python. (See the cx_Oracle Initialization documentation). This will show how cx_Oracle is looking for the Instant Client libraries, and will let you make sure there is no other (older) oci.dll somewhere on the computer that is being used.
Check you are on a supported OS version (i.e not Windows 7).
Check you have all the Instant Client libraries (obviously you don't need JDBC files): https://docs.oracle.com/en/database/oracle/oracle-database/19/lnoci/instant-client.html#GUID-6895DB45-97AA-4738-9959-BD677D610186
Make sure the computer has the correct VS Redistributable installed.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ministaller
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page