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 P.S. Sorry ... but I was wrong in my comments: 1. I do have 2 Python installation and I deleted one i.e. ipython and I have only Python 2.7 now 2. I do have pyodbc installed because I could use it when I run just 'plain' python script ( without py2exe) 3. I could check that it's installed like this:
yolk -l bottle - 0.12.7 - active pip 1.5.6 has no metadata py2exe - 0.6.10 - active pyodbc - 3.0.7 - active What else could be the problem? Thanks again