Solved py2exe failed to import pyodbc module

August 10, 2014 at 18:36:09
Specs: Windows 7, 8 Gb

my python script uses pyodbc module. When I create setup.py script it failed to compile and throws the error:

raise ImportError, "No module named " + qname
portError: No module named pyodbc

What is wrong with my setup.py script:

from distutils.core import setup
import py2exe

setup(
console=['accession.py'],
options={
'py2exe': {
'includes': 'pyodbc'
}
}
)

Thanks in advance


See More: py2exe failed to import pyodbc module

Report •

#1
Report •

#2
August 14, 2014 at 13:43:45
Thanks for suggestion.
My problem was that I had 2 Python installations and one of it lack that module while other had it. After fixing it I did not have an issue.

Report •
Related Solutions


Ask Question