Installation guide

15. Hints & Links to other Resources
Since this affects not only mxODBC, but other Python C extensions as well, you
may want to use a work-around until either Apache or the mod_wsgi team solves
the problem:
15.3
Manifest work-around
Adding the VC++ manifests to the Apache process is explained in this posting.
You will also have to install the MS VC++ 2008 CRT SP1 redistributable package
on the server running Apache.
With those changes in place, mxODBC should load without problems.
Freezing mxODBC using py2exe
Thomas Heller has written a great tool which is based on distutils. The tool allows
you to freeze your application into a single standalone Windows application and is
called py2exe.
Note:
Freezing mxODBC together with an application and redistributing the resulting
executables requires that you have obtained developer licenses from
eGenix.com permitting you to redistribute mxODBC along with a product.
Please see the License section for more information.
When freezing mxODBC you may experience problems with py2exe related to
py2exe not finding the DLLs needed by mxODBC. In this case you have to help
py2exe to find the correct subpackage for Windows, ie. mx.ODBC.Windows and
mx.DateTime. This can be done by adding
-i mx.ODBC.Windows,mx.DateTime
to the py2exe command line:
python py2exe -i mx.ODBC.Windows,mx.DateTime yourapp.py
After doing so, py2exe should have no problem finding the files mxODBC.pyd and
mxDateTime.pyd needed by mx.ODBC.Windows and mx.DateTime.
mxODBC also uses the md5 or hashlib module (depending on the Python version)
and the license module mxodbc_license internally. You will have to add them to
the above list, if you run into license verification problems when running the
py2exe compiled application.
15.4 More Sources of Information
There are several resources available online that should help you getting started
with ODBC. Here is a small list of links useful for further reading:
183