[egenix-users] mxODBC
Charlie Clark
charlie at egenix.com
Tue Oct 18 11:30:37 CEST 2005
On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI
<jacques.brunel at interieur.gouv.fr> wrote:
> Error encountered :
>
> Zope Error
>
>
> Zope has encountered an error while publishing this resource.
>
> Error Type: ImportError
> Error Value: No module named mx.ODBC.Windows
>
>
> while using the instruction :
>
> import mx.ODBC.Windows as odbc
> in a Python script (called by an External-Mehod)
>
> Notes :
> - this Python script runs normally when used under SPE or Edit, on a
> work-station Windows-XP
> - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed
> on
> a server Windows-NT4
>
> Could someone help me ?
You need to check the documentation for PythonScripts. Modules to be
imported have to be declared explicitly.
You should, however, have no need to have this statement in either a
PythonScript or an ExternalMethod as you can always use the methods
provided by the mxODBCZopeDA.
What are you trying to do?
Charlie
--
Charlie Clark
eGenix.com
Professional Python Services directly from the Source
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::
More information about the egenix-users
mailing list