Hi; In the instructions for installing ZPatterns I read the following: Please follow the standard procedures for building a Python module on your platform. (On Unix-ish systems, this usually consists of copying a Makefile.pre.in to the directory, then doing a make -f Makefile.pre.in boot followed by make. Where does one find a *Makefile.pre.in* to copy? Or are there more explicit instructions to be found? TIA, BenO
Hi, this one stung me too for a while but the Makefile.pre.in the instructions are refering to is the one which a full python install has in the /usr/lib/python/config/ directory which is used for building python modules and making sure they build correctly against python. So for a typical python2.1 installation you copy the /usr/lib/python2.1/config/Makefile.pre.in into the directory and continue following the instructions. I feel the instructions could be a little clearer (its not clear from the context that the Makefile comes with python). cheers, mick On Mon, 2001-11-12 at 15:04, Ben Ocean wrote:
Hi; In the instructions for installing ZPatterns I read the following:
Please follow the standard procedures for building a Python module on your platform. (On Unix-ish systems, this usually consists of copying a Makefile.pre.in to the directory, then doing a make -f Makefile.pre.in boot followed by make.
Where does one find a *Makefile.pre.in* to copy? Or are there more explicit instructions to be found? TIA, BenO
_______________________________________________ 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 03:42 PM 11/12/01 +0000, you wrote:
Hi, this one stung me too for a while but the Makefile.pre.in the instructions are refering to is the one which a full python install has in the /usr/lib/python/config/ directory which is used for building python modules and making sure they build correctly against python.
So for a typical python2.1 installation you copy the /usr/lib/python2.1/config/Makefile.pre.in into the directory and continue following the instructions. I feel the instructions could be a little clearer (its not clear from the context that the Makefile comes with python).
Agreed. Once I've got this figured out I'll write the author. But check this: [root@hermes ZPatterns]# cp /usr/lib/python2.1/config/Makefile.pre.in . [root@hermes ZPatterns]# make -f Makefile.pre.in boot rm -f *.o *~ rm -f *.a tags TAGS config.c Makefile.pre python sedscript rm -f *.so *.sl so_locations VERSION=`python -c "import sys; print sys.version[:3]"`; \ installdir=`python -c "import sys; print sys.prefix"`; \ exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \ make -f ./Makefile.pre.in VPATH=. srcdir=. \ VERSION=$VERSION \ installdir=$installdir \ exec_installdir=$exec_installdir \ Makefile make[1]: Entering directory `/apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns' make[1]: *** No rule to make target `/usr/lib/python1.5/config/Makefile', needed by `sedscript'. Stop. make[1]: Leaving directory `/apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns' make: *** [boot] Error 2 So, how do I configure the target? TIA, BenO
At 08:41 AM 11/12/01 -0800, you wrote:
At 03:42 PM 11/12/01 +0000, you wrote:
Hi, this one stung me too for a while but the Makefile.pre.in the instructions are refering to is the one which a full python install has in the /usr/lib/python/config/ directory which is used for building python modules and making sure they build correctly against python.
So for a typical python2.1 installation you copy the /usr/lib/python2.1/config/Makefile.pre.in into the directory and continue following the instructions. I feel the instructions could be a little clearer (its not clear from the context that the Makefile comes with python).
Agreed. Once I've got this figured out I'll write the author. But check this:
[root@hermes ZPatterns]# cp /usr/lib/python2.1/config/Makefile.pre.in .
Oops! Notice python2.1 here...
[root@hermes ZPatterns]# make -f Makefile.pre.in boot rm -f *.o *~ rm -f *.a tags TAGS config.c Makefile.pre python sedscript rm -f *.so *.sl so_locations VERSION=`python -c "import sys; print sys.version[:3]"`; \ installdir=`python -c "import sys; print sys.prefix"`; \ exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \ make -f ./Makefile.pre.in VPATH=. srcdir=. \ VERSION=$VERSION \ installdir=$installdir \ exec_installdir=$exec_installdir \ Makefile make[1]: Entering directory `/apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns' make[1]: *** No rule to make target `/usr/lib/python1.5/config/Makefile', needed by `sedscript'. Stop.
Ah! Notice python1.5 here. So I edited Makefile.pre.in and forced it to read use python2.1. This seemed to work just fine for make -f Makefile.pre.in boot but failed on make: [root@hermes ZPatterns]# make gcc -fPIC -g -O2 -Wall -Wstrict-prototypes -I/usr/include/python2.1 -I/usr/include/python2.1 -DHAVE_CONFIG_H -I../../ZODB -I../../../Components/ExtensionClass -c ././DynPersist.c -o ./DynPersist.o In file included from ././DynPersist.c:1: ../../ZODB/cPersistence.h:89: ExtensionClass.h: No such file or directory make: *** [DynPersist.o] Error 1 I would have assumed the aforementioned file would be part of the standard distro. Is there something else I need to install? TIA, BenO
Ben Ocean wrote:
At 08:41 AM 11/12/01 -0800, you wrote:
At 03:42 PM 11/12/01 +0000, you wrote:
Hi, this one stung me too for a while but the Makefile.pre.in the instructions are refering to is the one which a full python install has in the /usr/lib/python/config/ directory which is used for building python modules and making sure they build correctly against python.
So for a typical python2.1 installation you copy the /usr/lib/python2.1/config/Makefile.pre.in into the directory and continue following the instructions. I feel the instructions could be a little clearer (its not clear from the context that the Makefile comes with python).
Agreed. Once I've got this figured out I'll write the author. But check this:
[root@hermes ZPatterns]# cp /usr/lib/python2.1/config/Makefile.pre.in .
Oops! Notice python2.1 here...
[root@hermes ZPatterns]# make -f Makefile.pre.in boot rm -f *.o *~ rm -f *.a tags TAGS config.c Makefile.pre python sedscript rm -f *.so *.sl so_locations VERSION=`python -c "import sys; print sys.version[:3]"`; \ installdir=`python -c "import sys; print sys.prefix"`; \ exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \ make -f ./Makefile.pre.in VPATH=. srcdir=. \ VERSION=$VERSION \ installdir=$installdir \ exec_installdir=$exec_installdir \ Makefile make[1]: Entering directory `/apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns'
make[1]: *** No rule to make target `/usr/lib/python1.5/config/Makefile', needed by `sedscript'. Stop.
Ah! Notice python1.5 here. So I edited Makefile.pre.in and forced it to read use python2.1. This seemed to work just fine for make -f Makefile.pre.in boot but failed on make:
I've always used the Makefile.pre.in $ZOPE_HOME/lib/python directory. So, from the ZPatterns product directory, 'cp ../../Makefile.pre.in .'.
[root@hermes ZPatterns]# make gcc -fPIC -g -O2 -Wall -Wstrict-prototypes -I/usr/include/python2.1 -I/usr/include/python2.1 -DHAVE_CONFIG_H -I../../ZODB -I../../../Components/ExtensionClass -c ././DynPersist.c -o ./DynPersist.o In file included from ././DynPersist.c:1: ../../ZODB/cPersistence.h:89: ExtensionClass.h: No such file or directory make: *** [DynPersist.o] Error 1
I would have assumed the aforementioned file would be part of the standard distro. Is there something else I need to install?
No, but the Setup file in the ZPatterns directory has become out-of-sync with the rest of the Zope distribution, apparently. All you need to do is edit the "Setup" file and append "/src" to the end of the second line, which specifies where ExtensionClass.h will be found. Another option would be to consider installing TransactionAgents, available at http://www.cat-box.net/steve/TransactionAgents-0.0.1.tar.gz. Info is available at http://lists.zope.org/pipermail/zodb-dev/2001-July/001182.html. This package modifies ZPatterns somewhat, and in the process it fixed the Setup file and it fixes a bug that will prevent LoginManager from working. Beware, though, this is early version software. It's working quite well for me so far, but YMMV. This is definitely all much harder than it needs to be. I'm in the process of writing a HOWTO to get LoginManager working with a recent version of Zope... it's possible, but it's not fun. Does anyone know if LoginManager is still being maintained? It sure would be helpful to have it at least repackaged with the components necessary for it to work with Python2.1+ an Zope2.4+. If nobody's maintaining it, I'll look into repackaging it myself, if the licenses allow. -r
TIA, BenO
_______________________________________________ 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 10:48 AM 11/12/01 -0800, you wrote:
[root@hermes ZPatterns]# make gcc -fPIC -g -O2 -Wall -Wstrict-prototypes -I/usr/include/python2.1 -I/usr/include/python2.1 -DHAVE_CONFIG_H -I../../ZODB -I../../../Components/ExtensionClass -c ././DynPersist.c -o ./DynPersist.o In file included from ././DynPersist.c:1: ../../ZODB/cPersistence.h:89: ExtensionClass.h: No such file or directory make: *** [DynPersist.o] Error 1 I would have assumed the aforementioned file would be part of the standard distro. Is there something else I need to install?
No, but the Setup file in the ZPatterns directory has become out-of-sync with the rest of the Zope distribution, apparently. All you need to do is edit the "Setup" file and append "/src" to the end of the second line, which specifies where ExtensionClass.h will be found.
I ended up simply editing cPersistence.h to point directly to ExtensionsClass.h (which I located with find).
Another option would be to consider installing TransactionAgents, available at http://www.cat-box.net/steve/TransactionAgents-0.0.1.tar.gz. Info is available at http://lists.zope.org/pipermail/zodb-dev/2001-July/001182.html. This package modifies ZPatterns somewhat, and in the process it fixed the Setup file and it fixes a bug that will prevent LoginManager from working. Beware, though, this is early version software. It's working quite well for me so far, but YMMV.
I bit. I only have this installed to try and get another product (EMarket) working, which relies on it. We'll see how it goes :)
This is definitely all much harder than it needs to be. I'm in the process of writing a HOWTO to get LoginManager working with a recent version of Zope... it's possible, but it's not fun. Does anyone know if LoginManager is still being maintained? It sure would be helpful to have it at least repackaged with the components necessary for it to work with Python2.1+ an Zope2.4+. If nobody's maintaining it, I'll look into repackaging it myself, if the licenses allow.
Looks like a cool product! Thanks, BenO
This is definitely all much harder than it needs to be. I'm in the process of writing a HOWTO to get LoginManager working with a recent version of Zope...
kindly do this as soon as possible so that somebody like me can have rest of mind and have a sound sleep again. I have been tried to get Login Manager and ZPatterns worked on my system (win 98, zope 2.4.0) for quite long time now but all in vain. I need it for authentication with mysql server which i have been to connect with my zope server.
it's possible, but it's not fun. Does anyone know if LoginManager is still being maintained? It sure would be helpful to have it at least repackaged with the components necessary for it to work with Python2.1+ an Zope2.4+. If nobody's maintaining it, I'll look into repackaging it myself, if the licenses allow.
I am looking forward to see this happening. regards. kamal
Hi; I rebuilt Zope and I'm reinstalling ZPatterns. Hopefully I can get it to work this time. I've run into this error: 2001-11-14T10:23:12 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 1, in ? File /apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/DataManagers.py, line 6, in ? (Object: ComputedAttribute) File /apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/AttributeProviders.py, line 7, in ? File /apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/Expressions.py, line 38, in ? (Object: ComputedAttribute) ImportError: cannot import name expr_globals How shall I edit the file? TIA, BenO
Ben, Are you using TransactionAgents? From: Steve Alexander <steve@cat-box.net> Date: Sun Sep 23, 2001 04:47:56 PM America/Indianapolis To: zpatterns@eby-sarna.com Cc: marcos@hiper.com.br, steve@spvi.com Subject: [ZPatterns] Announce: TransactionAgents 0.0.4 Hi folks, There's a new version of TransactionAgents available here: http://cat-box.net/steve/TransactionAgents-0.0.4.tar.gz As usual, you can read the release notes in ZPatterns/ZED_PATTERNS_RELEASE_NOTES.txt On Wednesday, November 14, 2001, at 04:32 AM, Ben Ocean wrote:
Hi; I rebuilt Zope and I'm reinstalling ZPatterns. Hopefully I can get it to work this time. I've run into this error:
2001-11-14T10:23:12 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 1, in ? File /apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/ DataManagers.py, line 6, in ? (Object: ComputedAttribute) File /apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/ AttributeProviders.py, line 7, in ? File /apache/ZopeInstallation/Zope_software_home/lib/python/Products/ZPatterns/ Expressions.py, line 38, in ? (Object: ComputedAttribute) ImportError: cannot import name expr_globals
How shall I edit the file? TIA, BenO
_______________________________________________ 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 05:49 AM 11/14/01 -0500, you wrote:
Hi folks,
There's a new version of TransactionAgents available here:
Hello Steve, I just extracted the new version of TransactionAgents and this is the trace back error display when I clicked on the Login manager in the products directory; Import Traceback Traceback (most recent call last): File "C:\Program Files\WebSite\lib\python\OFS\Application.py", line 552, in import_product product=__import__(pname, global_dict, global_dict, silly) File "C:\Program Files\WebSite\lib\python\Products\LoginManager\__init__.py", line 1, in ? import LoginManager, LoginMethods, UserSources File "C:\Program Files\WebSite\lib\python\Products\LoginManager\LoginManager.py", line 8, in ? from Products.ZPatterns.Specialists import Specialist File "C:\Program Files\WebSite\lib\python\Products\ZPatterns\__init__.py", line 1, in ? import Rack, Specialists, Customizers, AttributeProviders, SheetProviders File "C:\Program Files\WebSite\lib\python\Products\ZPatterns\Rack.py", line 8, in ? from DataSkins import DataSkin File "C:\Program Files\WebSite\lib\python\Products\ZPatterns\DataSkins.py", line 1, in ? from DynPersist import DynPersist ImportError: No module named DynPersist Initially I was unable to download the TransactionAgents-0.0.4.tar.gz with my winzip, each time I clicked on it, it gives me "Error reading header after processing 0 entries" then I have to change the ext to ".tgz" before I could downloaded it. Could this be the part of the problems? I am using win 98 zope 2.4, pythin 2.1. Regards. kamal
Hi Kamal, Did you get DynPersist.pyd in your "ZPatterns" directory? -steve On Wednesday, November 14, 2001, at 12:59 PM, Hamzat kamal wrote:
At 05:49 AM 11/14/01 -0500, you wrote:
Hi folks,
There's a new version of TransactionAgents available here:
Hello Steve,
I just extracted the new version of TransactionAgents and this is the trace back error display when I clicked on the Login manager in the products directory;
Import Traceback Traceback (most recent call last): File "C:\Program Files\WebSite\lib\python\OFS\Application.py", line 552, in import_product product=__import__(pname, global_dict, global_dict, silly) File "C:\Program Files\WebSite\lib\python\Products\LoginManager\__init__.py", line 1, in ? import LoginManager, LoginMethods, UserSources File "C:\Program Files\WebSite\lib\python\Products\LoginManager\LoginManager.py", line 8, in ? from Products.ZPatterns.Specialists import Specialist File "C:\Program Files\WebSite\lib\python\Products\ZPatterns\__init__.py", line 1, in ? import Rack, Specialists, Customizers, AttributeProviders, SheetProviders File "C:\Program Files\WebSite\lib\python\Products\ZPatterns\Rack.py", line 8, in ? from DataSkins import DataSkin File "C:\Program Files\WebSite\lib\python\Products\ZPatterns\DataSkins.py", line 1, in ? from DynPersist import DynPersist ImportError: No module named DynPersist
Initially I was unable to download the TransactionAgents-0.0.4.tar.gz with my winzip, each time I clicked on it, it gives me "Error reading header after processing 0 entries" then I have to change the ext to ".tgz" before I could downloaded it.
Could this be the part of the problems?
I am using win 98 zope 2.4, pythin 2.1.
Regards. kamal
participants (6)
-
Ben Ocean -
Hamzat kamal -
Michael Twomey -
raï¼ burningman.com -
Steve Spicklemire -
Steve Spicklemire