Hi; Okay, I exported everything out of my old Zope Data.fs, completely rebuilt Zope and imported everything back into Data.fs. Now, I have this amazing problem. Seems that Zope can't import EMarket because there's no module named DynPersist. But it *does* import ZPatterns (a la TransactionAgents), er, rather, it imports ZPatterns as_long_as EMarkets is in the mix. If I remove the EMarkets module from Products lo and behold ZPatterns can no longer be imported and breaks! It just gets weirder and weirder. Here's a couple of tracebacks. Gosh, I hope this problem dies soon. TIA, BenO 2001-11-18T10:47:28 ERROR(200) Zope Could not import Products.EMarket Traceback (innermost last): File /apache/ZopeInstallation/Zope_software_home/lib/python/OFS/Application.py, line 563, in import_product File /apache/ZopeInstallation/Zope_software_home/lib/python/Products/EMarket/__init__.py, line 12, in ? File /apache/ZopeInstallation/Zope_software_home/lib/python/Products/EMarket/EMarket.py, line 29, in ? File /apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/__init__.py, line 1, in ? File /apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/Rack.py, line 8, in ? File /apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/DataSkins.py, line 1, in ? ImportError: No module named DynPersist 2001-11-18T10:40:51 ERROR(200) Zope Could not import Products.ZPatterns Traceback (innermost last): File /apache/ZopeInstallation/Zope_software_home/lib/python/OFS/Application.py, line 563, in import_product File /apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/__init__.py, line 1, in ? File /apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/Rack.py, line 8, in ? File /apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/DataSkins.py, line 1, in ? ImportError: No module named DynPersist
Hi Ben, You need to compile DynPersist per the instructions in ZPatterns. Something like: cd lib/python/Products/ZPatterns cp /usr/local/lib/python2.1/config/Makefile.pre.in . make -f Makefile.pre.in boot make -steve On Sunday, November 18, 2001, at 05:00 AM, Ben Ocean wrote:
Hi; Okay, I exported everything out of my old Zope Data.fs, completely rebuilt Zope and imported everything back into Data.fs. Now, I have this amazing problem. Seems that Zope can't import EMarket because there's no module named DynPersist. But it *does* import ZPatterns (a la TransactionAgents), er, rather, it imports ZPatterns as_long_as EMarkets is in the mix. If I remove the EMarkets module from Products lo and behold ZPatterns can no longer be imported and breaks! It just gets weirder and weirder. Here's a couple of tracebacks. Gosh, I hope this problem dies soon. TIA, BenO
2001-11-18T10:47:28 ERROR(200) Zope Could not import Products.EMarket Traceback (innermost last): File /apache/ZopeInstallation/Zope_software_home/lib/python/OFS/Application.py, line 563, in import_product File /apache/ZopeInstallation/Zope_software_home/lib/python/Products/EMarket/__init__. py, line 12, in ? File /apache/ZopeInstallation/Zope_software_home/lib/python/Products/EMarket/EMarket. py, line 29, in ? File /apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/ __init__.py, line 1, in ? File /apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/ Rack.py, line 8, in ? File /apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/ DataSkins.py, line 1, in ? ImportError: No module named DynPersist
2001-11-18T10:40:51 ERROR(200) Zope Could not import Products.ZPatterns Traceback (innermost last): File /apache/ZopeInstallation/Zope_software_home/lib/python/OFS/Application.py, line 563, in import_product File /apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/ __init__.py, line 1, in ? File /apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/ Rack.py, line 8, in ? File /apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/ DataSkins.py, line 1, in ? ImportError: No module named DynPersist
_______________________________________________ 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 )
At 06:38 AM 11/18/01 -0500, you wrote:
Hi Ben,
You need to compile DynPersist per the instructions in ZPatterns. Something like:
cd lib/python/Products/ZPatterns cp /usr/local/lib/python2.1/config/Makefile.pre.in . make -f Makefile.pre.in boot make
Aaarghhh! Of course! Forgot about that <:-) Well, now both ZPatterns and EMarket have successfully installed :)) And I can *finally* get into the Storage tab of my Racks, the ghost of PTKDemo having finally been laid to rest. I have successfully added a product to the shopping cart. However, when I go to compete my purchase (click *buy*) I'm redirected to this URL: http://constructioncalc.com//1024/eng/Store/CC/marketItems/CC_STB_00/addToCa... There is no folder called *CC_STB_00*: that's the ID of the product I bought! As a result, I get a 404 Error message. Where to from here, captain? TIA, BenO
Hi Ben, This should work.. you're calling the "addToCart" method of the marketItem whose id is "CC_STB_00", this should then prompt you for a quantity and then allow you to add that quantity to your shopping cart. Can you do: http://constructioncalc.com//1024/eng/Store/CC/marketItems/CC_STB_00/ ??? are you using http://constructioncalc.com//1024/eng/Store/CC/marketItems/manageMarketItems ??? -steve On Sunday, November 18, 2001, at 09:59 AM, Ben Ocean wrote:
At 06:38 AM 11/18/01 -0500, you wrote:
Hi Ben,
You need to compile DynPersist per the instructions in ZPatterns. Something like:
cd lib/python/Products/ZPatterns cp /usr/local/lib/python2.1/config/Makefile.pre.in . make -f Makefile.pre.in boot make
Aaarghhh! Of course! Forgot about that <:-) Well, now both ZPatterns and EMarket have successfully installed :)) And I can *finally* get into the Storage tab of my Racks, the ghost of PTKDemo having finally been laid to rest. I have successfully added a product to the shopping cart. However, when I go to compete my purchase (click *buy*) I'm redirected to this URL:
http://constructioncalc.com//1024/eng/Store/CC/marketItems/CC_STB_00/addToCa...
There is no folder called *CC_STB_00*: that's the ID of the product I bought! As a result, I get a 404 Error message. Where to from here, captain? TIA, BenO
At 10:16 AM 11/18/01 -0500, you wrote:
Hi Ben,
This should work.. you're calling the "addToCart" method of the marketItem whose id is "CC_STB_00", this should then prompt you for a quantity and then allow you to add that quantity to your shopping cart. Can you do:
http://constructioncalc.com//1024/eng/Store/CC/marketItems/CC_STB_00/
Yes. I reach this link (as, of course, you or anyone else can: it's not protected) then press the *buy* link from there and am taken to the 404 Error message.
http://constructioncalc.com//1024/eng/Store/CC/marketItems/manageMarketItems
Yes, this is the interface I used to add the product. Thanks! BenO
Hmm... did you set up your shopper ZClass? Is the storage tab set correctly in the Shoppers Specialiasts Rack? -steve On Sunday, November 18, 2001, at 10:28 AM, Ben Ocean wrote:
At 10:16 AM 11/18/01 -0500, you wrote:
Hi Ben,
This should work.. you're calling the "addToCart" method of the marketItem whose id is "CC_STB_00", this should then prompt you for a quantity and then allow you to add that quantity to your shopping cart. Can you do:
http://constructioncalc.com//1024/eng/Store/CC/marketItems/CC_STB_00/
Yes. I reach this link (as, of course, you or anyone else can: it's not protected) then press the *buy* link from there and am taken to the 404 Error message.
http://constructioncalc.com//1024/eng/Store/CC/marketItems/manageMarketItems
Yes, this is the interface I used to add the product. Thanks! BenO
Hi all, I have been trying to install UserLogin and ZPatterns, with little success so far! I have found the below Email in the archives, which I thought would do the trick. After a little file movement, I've managed to use the below instructions to get the "make -f Makefile.pre.in boot" to compile properly. However, when I do the second "make", I get the following error.... [root@greglux ZPatterns]# make gcc -fPIC -I../../ZODB -I../../../Components/ExtensionClass -g -O2 -I/usr/i nclude/python1.5 -I/usr/include/python1.5 -DHAVE_CONFIG_H -c ./DynPersist.c In file included from ./DynPersist.c:1: ../../ZODB/cPersistence.h:89:28: ExtensionClass.h: No such file or directory make: *** [DynPersist.o] Error 1 It's looking for a file ExtensionClass.h which isn't on my system anywhere! ??? Can anybody throw any light on this, or better still, point me towards something else a little more straight-forward (well I can wish can't I?) that will allow me to have some form of "register and login" procedure (I want browsers to be able to enter their own messages and following that edit them, but only once they've logged in. All this runs off a MySQL Db okay, that was the easy part :)
From reading older posts it seems many people have trouble getting UserLogin to work... maybe an alternative product would be the best answer!!
Any help much appreciated! Regards, Greg Conway.
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Steve Spicklemire Sent: 18 November 2001 11:39 To: Ben Ocean Cc: Steve Spicklemire; zope@zope.org Subject: Re: [Zope] Persistent DynPersist
Hi Ben,
You need to compile DynPersist per the instructions in ZPatterns. Something like:
cd lib/python/Products/ZPatterns cp /usr/local/lib/python2.1/config/Makefile.pre.in . make -f Makefile.pre.in boot make
-steve
On Sunday, November 18, 2001, at 05:00 AM, Ben Ocean wrote:
Hi; Okay, I exported everything out of my old Zope Data.fs, completely rebuilt Zope and imported everything back into Data.fs. Now, I have this amazing problem. Seems that Zope can't import EMarket because there's no module named DynPersist. But it *does* import ZPatterns (a la TransactionAgents), er, rather, it imports ZPatterns as_long_as EMarkets is in the mix. If I remove the EMarkets module from Products lo and behold ZPatterns can no longer be imported and breaks! It just gets weirder and weirder. Here's a couple of tracebacks. Gosh, I hope this problem dies soon. TIA, BenO
2001-11-18T10:47:28 ERROR(200) Zope Could not import Products.EMarket Traceback (innermost last): File
/apache/ZopeInstallation/Zope_software_home/lib/python/OFS/Application.py,
line 563, in import_product File
/apache/ZopeInstallation/Zope_software_home/lib/python/Products/EM arket/__init__.
py, line 12, in ? File
/apache/ZopeInstallation/Zope_software_home/lib/python/Products/EM arket/EMarket.
py, line 29, in ? File
/apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/
__init__.py, line 1, in ? File
/apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/
Rack.py, line 8, in ? File
/apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/
DataSkins.py, line 1, in ? ImportError: No module named DynPersist
2001-11-18T10:40:51 ERROR(200) Zope Could not import Products.ZPatterns Traceback (innermost last): File
/apache/ZopeInstallation/Zope_software_home/lib/python/OFS/Application.py,
line 563, in import_product File
/apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/
__init__.py, line 1, in ? File
/apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/
Rack.py, line 8, in ? File
/apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/
DataSkins.py, line 1, in ? ImportError: No module named DynPersist
_______________________________________________ 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 )
_______________________________________________ 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 )
*********************************************************************** This is a confidential communication between sender and addressee. If you are not the intended recipient of this message, please notify the sender and do not read, copy, use or disclose this communication to others. Any opinions or views expressed are those of the individual, and unless otherwise stated, are not those of the company. All attachments and intellectual rights remain the property of GML (NT) Limited. ***********************************************************************
Greg Conway writes:
I have found the below Email in the archives, which I thought would do the trick. After a little file movement, I've managed to use the below instructions to get the "make -f Makefile.pre.in boot" to compile properly.
However, when I do the second "make", I get the following error....
[root@greglux ZPatterns]# make gcc -fPIC -I../../ZODB -I../../../Components/ExtensionClass -g -O2 -I/usr/i nclude/python1.5 -I/usr/include/python1.5 -DHAVE_CONFIG_H -c ./DynPersist.c In file included from ./DynPersist.c:1: ../../ZODB/cPersistence.h:89:28: ExtensionClass.h: No such file or directory make: *** [DynPersist.o] Error 1
It's looking for a file ExtensionClass.h which isn't on my system anywhere! ??? You need to install a Zope source distribution. Then it will be in "lib/Components/ExtensionClass/src". This implies, the "make" will still not find it.because it looks in "ExtensionClass" and not "ExtensionClass/src". Change the configuration appropriately.
Maybe, you follow the advice from someone else and use a solution without ZPatterns... Dieter
participants (4)
-
Ben Ocean -
Dieter Maurer -
Greg Conway -
Steve Spicklemire