Bug report #12489

QGIS 2.8.1 32-bit cannot import pyodbc

Added by Chris George almost 9 years ago. Updated almost 9 years ago.

Affected QGIS version:2.8.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:up/downstream
Crashes QGIS or corrupts data:No Copied to github as #:20636


If you open the Python console and issue the command 'import pyodbc' then first you get a Visual C++ error R6034, 'An application has made an attempt to load the C runtime library incorrectly', then you get the message

Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:/PROGRA~1/QGISWI~1/apps/qgis/./python\\qgis\\utils.py", line 478, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.

I am told this does not happen in the 64-bit version. It does not happen in the 32-bit version 2.6.1.

Related issues

Duplicated by QGIS Application - Bug report #12665: pyodbc DLL issue in 32-bit standalone Closed 2015-04-28


#1 Updated by Giovanni Manghi almost 9 years ago

  • Category set to PyQGIS Console

#2 Updated by Jürgen Fischer almost 9 years ago

  • Resolution set to up/downstream
  • Status changed from Open to Closed
  • Category changed from PyQGIS Console to Build/Install

Fixed in OSGeo4W

Also available in: Atom PDF