Does the python 3.5 version of cx_Oracle work? - python

I'm using an Oracle 11g database, and 32bit windows python 3.5. I installed win32 cx_Oracle package using pip, but I am unable to import cx_Oracle. I got the error:
ImportError: DLL load failed. The specified procedure could not be found.

Related

Importing .pyd file error "%1 is not a valid Win32 application."

I'm trying to import .pyd file into python code
the following error is thrown:
"ImportError: DLL load failed while importing _MY_PYD: %1 is not a valid Win32 application."
using python 3.10(64bit) / pyscripter4.1 64bits
I have downloaded and upgraded almost all suggested packages, numpy,winpy32 etc..
What else the issue could be ?
Downloaded and upgraded Python packages
Reinstall of Python and Pyscripter

Mysql Connector issue in Python

I have installed MySQL connector for python 3.6 in centos 7
If I search for installed modules with below command
it's showing as below
pip3.6 freeze
mysql-connector==2.1.6
mysql-connector-python==2.1.7
pymongo==3.6.1
pip3.6 search mysql-connector
mysql-connector-python (8.0.6) -MYSQL driver written in Python
INSTALLED: 2.1.7
LATEST: 8.0.6
mysql-connector (2.1.6) - MySQL driver written in Python
INSTALLED: 2.1.6 (latest)
MySQL connector installed.But when trying to run the program using MySQL connector then its showing error no module installed MySQL connector.I am using MariaDB 10.0
python3.6 mysql1.py
Traceback (most recent call last):
File "mysql1.py", line 2, in
import mysql.connector as mariadb
File "/root/Python_environment/my_Scripts/mysql.py", line 2, in
import mysql.connector
ModuleNotFoundError: No module named 'mysql.connector'; 'mysql' is not a package
can any one know how to resolve
You must not name your script mysql.py — in that case Python tries to import mysql from the script — and fails.
Rename your script /root/Python_environment/my_Scripts/mysql.py to something else.
This is the problem I faced in Environment created by python.Outside the python environment i am able to run the script.Its running succefully.In python environment i am not able run script i am working on it.if any body know can give suggestion on this

Installing pymssql on Windows server [duplicate]

This question already has answers here:
"ImportError: DLL load failed" when trying to import pymssql on Windows
(3 answers)
Closed 6 years ago.
I need to run Python with the pymssql library to query SQL server and I spent a day installing and compiling stuff on Windows.
Installation of pymssql was very painful, until I developed this procedure:
install python
update pip
download OpenSSL from http://www.npcglib.org/~stathis/blog/precompiled-openssl/
add bin folder to Path environment variable
download FreeTDS from https://github.com/ramiro/freetds/releases
add lib folder to Path environment variable
pip install pymssql
I even created the .exe package, so I won't have to install all this on live machine. It worked OK. Executable also worked on some other Windows machine.
But, when I tried it on the server it didn't work for some reason. The error didn't make sense and I started to cry:
WindowsError: [Error -2146893795] Provider DLL failed to initialize correctly
Could not help myself with links like this one:
"Windows Error: provider DLL failed to initialize correctly" on import of cgi module in frozen wxpython app
I have hundreds of tabs opened in my browser and I think I've searched the entire Internet.
I decided I'd try the Python and pymssql installation on the server, which I wanted to avoid, but let's go. And of course my frustration didn't end here. After successful installation I still can't load pymssql:
C:\Users\Me>C:\Python27\python.exe
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:40:30) [MSC v.1500 64 bit (
AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> import sys
>>> import pymssql
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: %1 is not a valid Win32 application.
Can anyone point out where I went wrong?
When setting up pymssql version 2.1.2 and later on Windows, be careful to ensure that:
You download the builds of FreeTDS and OpenSSL that correspond to the Python version (e.g., 2.7, 3.4, 3.5, ...) that you are using.
You download the build of FreeTDS with the same "bitness" of Python that you are using (32-bit or 64-bit).
When adding folders to the Windows PATH, you must
i. specify the folders in which the required DLL files reside, and
ii. choose the OpenSSL folder that corresponds to the "bitness" of Python that you are using: bin for 32-bit, or bin64 for 64-bit.
For more information, see the related question:
"ImportError: DLL load failed" when trying to import pymssql on Windows

pyodbc - ImportError: DLL load failed:

I am running 64-bit Windows 7 and the Python 2.6 installation (64-bit version).
In addition I am using Aptana Studio 3 to run python.
I just downloaded and installed the pyodbc-3.0.2.win32-py2.6 package.
When I run python and try
import pyodbc
I receive the following error: 'ImportError: DLL load failed: The specified procedure could not be found.'
any idea how do I make it work?
I fix the problem by installing pyodbc-2.1.11.win32-py2.6 from here
Try the installer for the 64bit version of pyodbc:
http://code.google.com/p/pyodbc/downloads/detail?name=pyodbc-3.0.2.win-amd64-py2.6.exe&can=2&q=

mysqldb _mysql version trouble

Hi I developped a plugin for qgis in Python 2.5 under linux, now I am trying to port it in Windows; when qgis load the plugin it raises this error:
ImportError: this is MySQLdb version(1,2,3,'gamma',1) but _mysql is version (1,2,3,'final',0)
What should I do now? thanks in advance

Categories