Hello folks, I'm trying to install ZmxODBC on a Windows 2000 machine running Zope 2.4.1. In the Products administration view the traceback of the product import tells me that the module mx.ODBC was not found. But the product installed the mx section in lib/python/Shared as described in the install instructions. Maybe the python search path does not fit. Where can I controll and adjust it and what's his name? Greets Florian -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net
Florian Reiser writes:
I'm trying to install ZmxODBC on a Windows 2000 machine running Zope 2.4.1. In the Products administration view the traceback of the product import tells me that the module mx.ODBC was not found. But the product installed the mx section in lib/python/Shared as described in the install instructions. Verify, that the code raising the "ImportError" looks like
from Shared.mx.ODBC... (or "import Shared.mx.ODBC") and not from mx.ODBC (or "import mx.ODBC") i.e. that the "Shared" is present. It "Shared" would not be present, then the "mx" package would need to live in "lib/python" and not "lib/python/Shared"... If the "Shared" is present, then maybe, an "__init__.py" is missing in either "mx" or "ODBC". These files tell Python that a folder is to be considered as a Python package. They are often empty and sometimes archiving programs ignore empty files.... Dieter
Try taking it out of the shared folder and just put it in lib/python. Cheers. ----- Original Message ----- From: "Florian Reiser" <florian_reiser@gmx.de> To: <zope@zope.org> Sent: Monday, October 29, 2001 11:40 PM Subject: [Zope] Installing ZmxODBC
Hello folks,
I'm trying to install ZmxODBC on a Windows 2000 machine running Zope 2.4.1. In the Products administration view the traceback of the product import tells me that the module mx.ODBC was not found. But the product installed the mx section in lib/python/Shared as described in the install instructions. Maybe the python search path does not fit. Where can I controll and adjust it and what's his name?
Greets
Florian
-- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Dieter Maurer -
Florian Reiser -
Zopista