Bug report #12489

QGIS 2.8.1 32-bit cannot import pyodbc

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

Status:Closed
Priority:Normal
Assignee:-
Category:Build/Install
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

Description

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

History

#1 Updated by Giovanni Manghi over 9 years ago

  • Category set to PyQGIS Console

#2 Updated by Jürgen Fischer over 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