From mick at portofhamptonroads.com Mon May 8 11:33:14 2006 From: mick at portofhamptonroads.com (Mick Drevyanko) Date: Mon May 8 16:37:11 2006 Subject: [egenix-users] Zope 2.9.2 Import Problem (or - Tales from the Bleeding Edge) Message-ID: <97ECE86F93743340AA667B28DD13EBA24B8CDD@mail.intranet.hrma.portofhamptonroads.com> Hello folks! I'm trying to set up a test environment using Zope 2.9.2 (w/ Python 2.4.2) and mxODBC Zope DA for Python 2.4 (from the eGenix download page). This is on a Windows platform. Zope 2.9.2 was installed fresh from the latest Windows binary release. I'm receiving the following error: Traceback (most recent call last): File "C:\Zope\lib\python\OFS\Application.py", line 715, in import_product product=__import__(pname, global_dict, global_dict, silly) ImportError: Bad magic number in C:\Zope\lib\python\Products\mxODBCZopeDA\__init__.pyc Has anyone seen this before or am I the first lame duck to try it? Thanks! Mick -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20060508/af200f91/attachment.htm From charlie at egenix.com Mon May 8 18:11:30 2006 From: charlie at egenix.com (Charlie Clark) Date: Mon May 8 17:11:18 2006 Subject: [egenix-users] Zope 2.9.2 Import Problem (or - Tales from the Bleeding Edge) In-Reply-To: <97ECE86F93743340AA667B28DD13EBA24B8CDD@mail.intranet.hrma.port ofhamptonroads.com> References: <97ECE86F93743340AA667B28DD13EBA24B8CDD@mail.intranet.hrma.porto fhamptonroads.com> Message-ID: <20060508171130.46210.11@1.2.1147084819.fake> On 2006-05-08 at 16:33:14 [+0200], Mick Drevyanko wrote: > Hello folks! > > I'm trying to set up a test environment using Zope 2.9.2 (w/ Python > 2.4.2) and mxODBC Zope DA for Python 2.4 (from the eGenix download > page). This is on a Windows platform. Zope 2.9.2 was installed fresh > from the latest Windows binary release. > > I'm receiving the following error: > > Traceback (most recent call last): > File "C:\Zope\lib\python\OFS\Application.py", line 715, in > import_product > product=__import__(pname, global_dict, global_dict, silly) > ImportError: Bad magic number in > C:\Zope\lib\python\Products\mxODBCZopeDA\__init__.pyc > > > Has anyone seen this before or am I the first lame duck to try it? Mick, this error message is because you have the wrong version of the Python running. This is the URL for the download. http://downloads.egenix.com/python/egenix-mxodbc-zopeda-1.0.9.win32-py2.4_ucs2.zip Charlie From mick at portofhamptonroads.com Mon May 8 12:18:45 2006 From: mick at portofhamptonroads.com (Mick Drevyanko) Date: Mon May 8 17:22:40 2006 Subject: [egenix-users] Zope 2.9.2 Import Problem (or - Tales from the Bleeding Edge) Message-ID: <97ECE86F93743340AA667B28DD13EBA24B91E6@mail.intranet.hrma.portofhamptonroads.com> Charlie, Thanks for the prompt reply. I thought it was a python version issue but I swear I was using the correct version downloaded from eGenix. I must have foobared extracting it the first time around. After re-downloading and re-installing everything seems to work now. Thanks again, Mick > -----Original Message----- > From: Charlie Clark [mailto:charlie@egenix.com] > Sent: Monday, May 08, 2006 11:12 AM > To: Mick Drevyanko > Cc: egenix-users@egenix.com > Subject: Re: [egenix-users] Zope 2.9.2 Import Problem (or - Tales from the > Bleeding Edge) > > > On 2006-05-08 at 16:33:14 [+0200], Mick Drevyanko > wrote: > > Hello folks! > > > > I'm trying to set up a test environment using Zope 2.9.2 (w/ Python > > 2.4.2) and mxODBC Zope DA for Python 2.4 (from the eGenix download > > page). This is on a Windows platform. Zope 2.9.2 was installed fresh > > from the latest Windows binary release. > > > > I'm receiving the following error: > > > > Traceback (most recent call last): > > File "C:\Zope\lib\python\OFS\Application.py", line 715, in > > import_product > > product=__import__(pname, global_dict, global_dict, silly) > > ImportError: Bad magic number in > > C:\Zope\lib\python\Products\mxODBCZopeDA\__init__.pyc > > > > > > Has anyone seen this before or am I the first lame duck to try it? > > Mick, > > this error message is because you have the wrong version of the Python > running. > > This is the URL for the download. > http://downloads.egenix.com/python/egenix-mxodbc-zopeda-1.0.9.win32- > py2.4_ucs2.zip > > Charlie From AAJ at aiglon.ch Fri May 19 11:13:02 2006 From: AAJ at aiglon.ch (Andre Jordaan) Date: Fri May 19 10:13:49 2006 Subject: [egenix-users] Problem with mxODBC Message-ID: <8AA3F57521183945B956CFC705D639060333CA@MAIL2.aiglon.ch> Hi I installed the latest version and got everyting working. Recently I got this problem and cannot see what is wrong. The file does exist. Traceback (most recent call last): File "D:\ENFOLD~1\Zope\lib\python\OFS\Application.py", line 695, in import_product product=__import__(pname, global_dict, global_dict, silly) File "Products\mxODBCZopeDA\__init__.py", line 7, in ? File "Products\mxODBCZopeDA\ZopeDA.py", line 3190, in ? File "D:\ENFOLD~1\Python\lib\site-packages\PIL\ImageFile.py", line 74, in __init__ self.fp = open(fp, "rb") IOError: [Errno 2] No such file or directory: 'Shared/DC/ZRDB/www/DBAdapterFolder_icon.gif' We are using: Zope Version (Zope 2.8.3-final, python 2.3.5, win32) Python Version 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] System Platform win32 SOFTWARE_HOME D:\Enfold Server\Zope\lib\python ZOPE_HOME D:\Enfold Server\Zope INSTANCE_HOME D:\Enfold Server\Client CLIENT_HOME D:\Enfold Server\Client\var Any ideas? Thanks Andre -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20060519/1787bc18/attachment.htm From mal at egenix.com Fri May 19 11:29:29 2006 From: mal at egenix.com (M.-A. Lemburg) Date: Fri May 19 10:29:37 2006 Subject: [egenix-users] Problem with mxODBC In-Reply-To: <8AA3F57521183945B956CFC705D639060333CA@MAIL2.aiglon.ch> References: <8AA3F57521183945B956CFC705D639060333CA@MAIL2.aiglon.ch> Message-ID: <446D81E9.3090404@egenix.com> Andre Jordaan wrote: > Hi > I installed the latest version and got everyting working. Recently I got > this problem and cannot see what is wrong. The file does exist. > > Traceback (most recent call last): > File "D:\ENFOLD~1\Zope\lib\python\OFS\Application.py", line 695, in > import_product > product=__import__(pname, global_dict, global_dict, silly) > File "Products\mxODBCZopeDA\__init__.py", line 7, in ? > File "Products\mxODBCZopeDA\ZopeDA.py", line 3190, in ? > File "D:\ENFOLD~1\Python\lib\site-packages\PIL\ImageFile.py", line 74, > in __init__ > self.fp = open(fp, "rb") > IOError: [Errno 2] No such file or directory: > 'Shared/DC/ZRDB/www/DBAdapterFolder_icon.gif' This the icon that's being used for the connection object in the ZMI. > We are using: > Zope Version > (Zope 2.8.3-final, python 2.3.5, win32) > Python Version > 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] > System Platform > win32 > SOFTWARE_HOME > D:\Enfold Server\Zope\lib\python > ZOPE_HOME > D:\Enfold Server\Zope > INSTANCE_HOME > D:\Enfold Server\Client > CLIENT_HOME > D:\Enfold Server\Client\var > > > > Any ideas? Your setup looks more or less standard, except for the space in the base directory. These always cause problems one way or another. Could you check whether you actually have the icon file somewhere under "D:\Enfold Server\" ?! -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, May 19 2006) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2006-07-03: EuroPython 2006, CERN, Switzerland 44 days left ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::