Hello, I am having the following error Import Traceback Traceback (most recent call last): File "/usr/home/khine/usr/local/zope/lib/python/OFS/Application.py", line 537, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/usr/home/khine/usr/local/zope/lib/python/Products/ZMySQLDA/__init__.py", line 106, in ? import sys, os, Globals, DA File "/usr/home/khine/usr/local/zope/lib/python/Products/ZMySQLDA/DA.py", line 108, in ? from db import DB File "/usr/home/khine/usr/local/zope/lib/python/Products/ZMySQLDA/db.py", line 118, in ? class DB: File "/usr/home/khine/usr/local/zope/lib/python/Products/ZMySQLDA/db.py", line 127, in DB Database_Error=MySQL.error AttributeError: error can any one point me on the right direction. os FreeBSD 4.2 zope 2.3.1b1 python 2.0 many thanks Norman
Sorry to trouble you guyz, I have a "small" maybe not so difficult question: If my set up is as follows (which it is ;^) Zope Version Zope 2.3.1b1 (source release, python 1.5.2, linux2) Python Version 2.0 (#2, Jan 8 2001, 16:54:34) [GCC 2.95.2 19991024 (release)] System Platform freebsd4 and if I ran python2.0 at my command prompt and test if I could import MySQL module and it works, but at the same time I cannot import the same module onto python (which is version 1.5.2), this being pre-installed by my ISP and I cannot change any of the conf files. So my question really would be does the zope "engine" use Python Version: 2.0 or does it use Zope Version: Zope 2.3.1b1 (source release, python 1.5.2, linux2) in order to execute the files that the Import Traceback had spewed out. Or is it the case that the Zope version was compiled using python 1.5.2 and the current setup is using python2.0 to execute ant code. Please advise as I am having difficulty in understanding the actual mechanics of the process. Thanks Norman -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Norman Khine Sent: 18 February 2001 01:53 To: Zope Cc: Zope-Admin Subject: [Zope] Help with ZMySQLDA Hello, I am having the following error Import Traceback Traceback (most recent call last): File "/usr/home/khine/usr/local/zope/lib/python/OFS/Application.py", line 537, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/usr/home/khine/usr/local/zope/lib/python/Products/ZMySQLDA/__init__.py", line 106, in ? import sys, os, Globals, DA File "/usr/home/khine/usr/local/zope/lib/python/Products/ZMySQLDA/DA.py", line 108, in ? from db import DB File "/usr/home/khine/usr/local/zope/lib/python/Products/ZMySQLDA/db.py", line 118, in ? class DB: File "/usr/home/khine/usr/local/zope/lib/python/Products/ZMySQLDA/db.py", line 127, in DB Database_Error=MySQL.error AttributeError: error can any one point me on the right direction. os FreeBSD 4.2 zope 2.3.1b1 python 2.0 many thanks Norman _______________________________________________ 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 )
On Sun, 18 Feb 2001, Norman Khine wrote:
Hello, I am having the following error
Import Traceback Traceback (most recent call last): File "/usr/home/khine/usr/local/zope/lib/python/OFS/Application.py", line 537, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/usr/home/khine/usr/local/zope/lib/python/Products/ZMySQLDA/__init__.py", line 106, in ? import sys, os, Globals, DA File "/usr/home/khine/usr/local/zope/lib/python/Products/ZMySQLDA/DA.py", line 108, in ? from db import DB
Hi, I find these traceback errors to be fairly difficult to interpret unless I know what code they are referring to, then it's always the last line that tells me what's wrong, or at least where to start looking for what's wrong. If you could copy the dtml code that gives this traceback, it might help others help you. A couple of questions (and please forgive me if this is too obvious). Did you install MySQL on your system and import the ZMySQL zope stuff? Did you create a database connection? Zope will need that in order to open the database you want to querry, manipulate, etc. ciao! greg.
participants (2)
-
ghaley@mail.venaca.com -
Norman Khine