compiling Python modules for Zope
Hello: I'm trying to get LoginManager to work, which means building DynPersist in ZPatterns. I followed the instructions of copying Makefile.pre.in into the ZPatters folder and running "make -f Makefile.pre.in boot". The main error I seem to be getting is: ../../ZODB/cPersistence.h:89: header file 'ExtensionClass.h' not found ExtensionClass.h is located in my Zope directory in lib/Components/ExtensionClass/src/ExtensionClass.h. How do I tell make where to find this file and any other headers it needs in order to build Python modules for Zope. Sorry, I don't know too much about make or compiling modules. Thanks! -- Mark James Adams mark at raysend dot com
I'm trying to *exactly* the same thing right now, but I can't even find Makefile.pre.in anywhere in my Zope or Python directories. Where did you find it? Regards, -scott Mark James Adams wrote:
Hello:
I'm trying to get LoginManager to work, which means building DynPersist in ZPatterns. I followed the instructions of copying Makefile.pre.in into the ZPatters folder and running "make -f Makefile.pre.in boot".
The main error I seem to be getting is:
../../ZODB/cPersistence.h:89: header file 'ExtensionClass.h' not found
ExtensionClass.h is located in my Zope directory in lib/Components/ExtensionClass/src/ExtensionClass.h.
How do I tell make where to find this file and any other headers it needs in order to build Python modules for Zope. Sorry, I don't know too much about make or compiling modules.
On Friday, June 29, 2001, at 01:46 PM, Scott Anderson wrote:
I'm trying to *exactly* the same thing right now, but I can't even find Makefile.pre.in anywhere in my Zope or Python directories. Where did you find it?
On my system (MacOS X Server w/Python 2.1), it is located in /usr/local/lib/python2.1/config/Makefile.pre.in -- Mark James Adams mark at raysend dot com
You have to copy Makefile.pre.in that is in Zope python directory cp /Zope/lib/python/Makefile.pre.in /Zope/lib/python/Products/ZPatterns make -f Makefille.pre.in boot make BUT!! there is another problem if you are using Zope 2.3 and up, access file s not where is use to be this is the error I got after installing the LM on Zope-2.3.2 Traceback (innermost last): File "/usr/local/dc/Zope-2.3.0-src/lib/python/OFS/Application.py", line 530, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/usr/local/dc/Zope-2.3.0-src/lib/python/Products/LoginManager/__init__.py", line 1, in ? import LoginManager, LoginMethods, UserSources File "/usr/local/dc/Zope-2.3.0-src/lib/python/Products/LoginManager/LoginManager.py", line 121, in ? raise 'InstallError', ( InstallError: No access file found at /usr/local/dc/Zope-2.3.0-src - see INSTALL.txt Vid --- Scott Anderson <scott.d.anderson@home.com> wrote:
I'm trying to *exactly* the same thing right now, but I can't even find Makefile.pre.in anywhere in my Zope or Python directories. Where did you find it?
Regards,
-scott
Mark James Adams wrote:
Hello:
I'm trying to get LoginManager to work, which
means building DynPersist
in ZPatterns. I followed the instructions of copying Makefile.pre.in into the ZPatters folder and running "make -f Makefile.pre.in boot".
The main error I seem to be getting is:
../../ZODB/cPersistence.h:89: header file 'ExtensionClass.h' not found
ExtensionClass.h is located in my Zope directory in
lib/Components/ExtensionClass/src/ExtensionClass.h.
How do I tell make where to find this file and any
other headers it
needs in order to build Python modules for Zope. Sorry, I don't know too much about make or compiling modules.
_______________________________________________ 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 )
__________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
On Friday, June 29, 2001, at 02:18 PM, Vid B wrote:
You have to copy Makefile.pre.in that is in Zope python directory
cp /Zope/lib/python/Makefile.pre.in /Zope/lib/python/Products/ZPatterns
make -f Makefille.pre.in boot
I found the version of Makefile.pre.in from the /Zope/lib/python and copied it over, but still I'm getting the same error: ../../ZODB/cPersistence.h:89: header file 'ExtensionClass.h' not found followed by errors relating to "undefined type, found 'PyObject'", which I assume means make isn't finding Python.h either. -- Mark James Adams mark at raysend dot com
I am using Zope source installation Zope-2.3.2-src.tgz (it does not come with python, so you have to have python 1.5 or higher instaled) That could be the reason I am not getting error you do. Source instalation solves the lots of problems related to other products. (PoPy and ZPopyDA) --- Mark James Adams <mark@raysend.com> wrote:
On Friday, June 29, 2001, at 02:18 PM, Vid B wrote:
You have to copy Makefile.pre.in that is in Zope python directory
cp /Zope/lib/python/Makefile.pre.in /Zope/lib/python/Products/ZPatterns
make -f Makefille.pre.in boot
I found the version of Makefile.pre.in from the /Zope/lib/python and copied it over, but still I'm getting the same error:
../../ZODB/cPersistence.h:89: header file 'ExtensionClass.h' not found
followed by errors relating to "undefined type, found 'PyObject'", which I assume means make isn't finding Python.h either.
-- Mark James Adams mark at raysend dot com
_______________________________________________ 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 )
__________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Could it be that I'm using Zope 2.4b1? I already had Python 2.1 installed from a precompiled binary, so I went with installing the latest dev version of Zope. I'm using MacOS X Server, so I had to do source installation. On Friday, June 29, 2001, at 03:53 PM, Vid B wrote:
I am using Zope source installation Zope-2.3.2-src.tgz (it does not come with python, so you have to have python 1.5 or higher instaled) That could be the reason I am not getting error you do.
Source instalation solves the lots of problems related to other products. (PoPy and ZPopyDA)
--- Mark James Adams <mark@raysend.com> wrote:
On Friday, June 29, 2001, at 02:18 PM, Vid B wrote:
You have to copy Makefile.pre.in that is in Zope python directory
cp /Zope/lib/python/Makefile.pre.in /Zope/lib/python/Products/ZPatterns
make -f Makefille.pre.in boot
I found the version of Makefile.pre.in from the /Zope/lib/python and copied it over, but still I'm getting the same error:
../../ZODB/cPersistence.h:89: header file 'ExtensionClass.h' not found
followed by errors relating to "undefined type, found 'PyObject'", which I assume means make isn't finding Python.h either.
-- Mark James Adams mark at raysend dot com
I have Python1.5.2 so I could not install Zope2.4b1 source, but I installed binary installation adn got the same error like you. --- Mark James Adams <mark@raysend.com> wrote:
Could it be that I'm using Zope 2.4b1? I already had Python 2.1 installed from a precompiled binary, so I went with installing the latest dev version of Zope. I'm using MacOS X Server, so I had to do source installation.
On Friday, June 29, 2001, at 03:53 PM, Vid B wrote:
I am using Zope source installation Zope-2.3.2-src.tgz (it does not come with python, so you have to have python 1.5 or higher instaled) That could be the reason I am not getting error you do.
Source instalation solves the lots of problems related to other products. (PoPy and ZPopyDA)
--- Mark James Adams <mark@raysend.com> wrote:
On Friday, June 29, 2001, at 02:18 PM, Vid B
wrote:
You have to copy Makefile.pre.in that is in Zope python directory
cp /Zope/lib/python/Makefile.pre.in /Zope/lib/python/Products/ZPatterns
make -f Makefille.pre.in boot
I found the version of Makefile.pre.in from the /Zope/lib/python and copied it over, but still I'm getting the same error:
../../ZODB/cPersistence.h:89: header file 'ExtensionClass.h' not found
followed by errors relating to "undefined type, found 'PyObject'", which I assume means make isn't finding Python.h
either.
-- Mark James Adams mark at raysend dot com
__________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Hi Mark, Yes.. it could be! I don't think ZPatterns is really released for 2.4 yet. You might also want to check the ZPatterns mailing list: http://www.eby-sarna.com/mailman/listinfo/zpatterns -steve Mark James Adams wrote:
Could it be that I'm using Zope 2.4b1? I already had Python 2.1 installed from a precompiled binary, so I went with installing the latest dev version of Zope. I'm using MacOS X Server, so I had to do source installation.
On Friday, June 29, 2001, at 03:53 PM, Vid B wrote:
I am using Zope source installation Zope-2.3.2-src.tgz (it does not come with python, so you have to have python 1.5 or higher instaled) That could be the reason I am not getting error you do.
Source instalation solves the lots of problems related to other products. (PoPy and ZPopyDA)
--- Mark James Adams <mark@raysend.com> wrote:
On Friday, June 29, 2001, at 02:18 PM, Vid B wrote:
You have to copy Makefile.pre.in that is in Zope python directory
cp /Zope/lib/python/Makefile.pre.in /Zope/lib/python/Products/ZPatterns
make -f Makefille.pre.in boot
I found the version of Makefile.pre.in from the /Zope/lib/python and copied it over, but still I'm getting the same error:
../../ZODB/cPersistence.h:89: header file 'ExtensionClass.h' not found
followed by errors relating to "undefined type, found 'PyObject'", which I assume means make isn't finding Python.h either.
-- Mark James Adams mark at raysend dot com
_______________________________________________ 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 )
Hi Mark, What version of ZPatterns are you using? This sounds like an old "bug" that occured when the Zope sources moved around at the 2.3.1/2 timeframe. -steve Mark James Adams wrote:
Hello:
I'm trying to get LoginManager to work, which means building DynPersist in ZPatterns. I followed the instructions of copying Makefile.pre.in into the ZPatters folder and running "make -f Makefile.pre.in boot".
The main error I seem to be getting is:
../../ZODB/cPersistence.h:89: header file 'ExtensionClass.h' not found
ExtensionClass.h is located in my Zope directory in lib/Components/ExtensionClass/src/ExtensionClass.h.
How do I tell make where to find this file and any other headers it needs in order to build Python modules for Zope. Sorry, I don't know too much about make or compiling modules.
Thanks!
-- Mark James Adams mark at raysend dot com
_______________________________________________ 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 (5)
-
Mark James Adams -
Scott Anderson -
Steve Drees -
Steve Spicklemire -
Vid B