Compiling on Mac OS X
I've rewritten this email three times now, finally deciding on bullet points, because we're all so busy :-) - I'm trying to compile Python 2.0 & Zope 2.3.0 on Mac OS X - Using instructions from http://www.zope.org/Members/jshell/ZopeOnOSX - Today's update to the document got Python installed correctly. Yeah! - Zope compiles and installs, gives me the admin password. Yeah! - I type ./start, but get this: <snip> Traceback (most recent call last): File "/usr/local/zope/2-3-0/z2.py", line 565, in ? exec "import "+MODULE in {} File "<string>", line 1, in ? File "/usr/local/zope/2-3-0/lib/python/Zope/__init__.py", line 94, in ? import ZODB, ZODB.ZApplication, imp File "/usr/local/zope/2-3-0/lib/python/ZODB/__init__.py", line 85, in ? import sys, ExtensionClass, TimeStamp, cPersistence, Persistence ImportError: No module named ExtensionClass </snip> - Disclaimer: I'm a newbie - I'm guessing I don't have the ExtensionClass Python module? - It's "Not Found" at http://www.digicool.com/releases/ExtensionClass/ - Has anyone gotten Zope to start on Mac OS X? Does anyone know where to get the ExtensionClass module? Any help would be much appreciated! Gregg Hartling hartling@earthlink.net
Hi Gregg, Hmm.. somehow your 'pythonpath' seems to be out of whack. I've built/run Zope on the public beta with no problem... I should get the release version soon.. when I do I'll ship you details.. what does: find /usr/local/zope/2-3-0 -name "ExtensionClass*" -ls produce? -steve
"Gregg" == Gregg Hartling <hartling@earthlink.net> writes:
Gregg> I've rewritten this email three times now, finally deciding Gregg> on bullet points, because we're all so busy :-) Gregg> - I'm trying to compile Python 2.0 & Zope 2.3.0 on Mac OS X Gregg> - Using instructions from Gregg> http://www.zope.org/Members/jshell/ZopeOnOSX - Today's Gregg> update to the document got Python installed Gregg> correctly. Yeah! - Zope compiles and installs, gives me Gregg> the admin password. Yeah! - I type ./start, but get this: Gregg> <snip> Traceback (most recent call last): File Gregg> "/usr/local/zope/2-3-0/z2.py", line 565, in ? exec "import Gregg> "+MODULE in {} File "<string>", line 1, in ? File Gregg> "/usr/local/zope/2-3-0/lib/python/Zope/__init__.py", line Gregg> 94, in ? import ZODB, ZODB.ZApplication, imp File Gregg> "/usr/local/zope/2-3-0/lib/python/ZODB/__init__.py", line Gregg> 85, in ? import sys, ExtensionClass, TimeStamp, Gregg> cPersistence, Persistence ImportError: No module named Gregg> ExtensionClass </snip> Gregg> - Disclaimer: I'm a newbie - I'm guessing I don't have the Gregg> ExtensionClass Python module? - It's "Not Found" at Gregg> http://www.digicool.com/releases/ExtensionClass/ - Has Gregg> anyone gotten Zope to start on Mac OS X? Does anyone know Gregg> where to get the ExtensionClass module? Gregg> Any help would be much appreciated! Gregg> Gregg Hartling hartling@earthlink.net Gregg> _______________________________________________ Zope Gregg> maillist - Zope@zope.org Gregg> http://lists.zope.org/mailman/listinfo/zope ** No cross Gregg> posts or HTML encoding! ** (Related lists - Gregg> http://lists.zope.org/mailman/listinfo/zope-announce Gregg> http://lists.zope.org/mailman/listinfo/zope-dev )
On Tuesday, March 27, 2001, at 08:54 PM, Steve Spicklemire wrote:
Hi Gregg,
Hmm.. somehow your 'pythonpath' seems to be out of whack. I've built/run Zope on the public beta with no problem... I should get the release version soon.. when I do I'll ship you details..
what does:
find /usr/local/zope/2-3-0 -name "ExtensionClass*" -ls
produce?
hi, I'm too am trying to build zope on OSX too...and everything worked until I ran ./start and it complained of a lack of Extension Class. I installed Python 2.0 NOT on the main drive so I suspect my path is out of whack... is there anything I can do? tom p.s I'm new to unix
Update from my original post yesterday: Somehow, some way, Zope is running on my OS X box. I don't think I did it right, but it magically worked. What I did was to *not* make any changes to the inst/do.py script as mentioned in the HOW-TO. I just left the file the way it was, and Zope compiled. It took a long time to start up, and wasn't able to install the tutorial files, but it's running. And it didn't complain about not finding the ExtensionClass module. I'm fairly certain that it's not a clean install, and I'm watching out for things that are broken, but I was able to import a fairly complex site I'm working on, and everything is working thus far. Again, I'll disclaim that I'm a newbie and don't understand the repercussions of *not* including the do('makeOPT="-traditional-cpp""') as specified in the docs. All I know is that it's pretty cool to see Zope running on Mac OS X. :-) Gregg. hartling@earthlink.net
On Tuesday, March 27, 2001, at 08:54 PM, Steve Spicklemire wrote:
Hi Gregg,
Hmm.. somehow your 'pythonpath' seems to be out of whack. I've built/run Zope on the public beta with no problem... I should get the release version soon.. when I do I'll ship you details..
what does:
find /usr/local/zope/2-3-0 -name "ExtensionClass*" -ls
produce?
hi, I'm too am trying to build zope on OSX too...and everything worked until I ran ./start and it complained of a lack of Extension Class. I installed Python 2.0 NOT on the main drive so I suspect my path is out of whack...
is there anything I can do?
tom p.s I'm new to unix
_______________________________________________ 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 Wed, 28 Mar 2001, Gregg Hartling wrote:
Somehow, some way, Zope is running on my OS X box. I don't think I did it right, but it magically worked. What I did was to *not* make any changes to the inst/do.py script as mentioned in the HOW-TO. I just left the file the way it was, and Zope compiled.
...
Again, I'll disclaim that I'm a newbie and don't understand the repercussions of *not* including the do('makeOPT="-traditional-cpp""') as specified in the docs. All I know is that it's pretty cool to see Zope running on Mac OS X. :-)
I haven't verified this myself, but what I was told was that the need to use -traditional-cpp was classified as a bug in the PublicBeta and the defaults were going to be changed in the final release. So I would expect that the switch is no longer required. If you're curious about the meaning of that magic option: Project Builder uses precompiled headers which use a special precompiler (which seems to have problems with some stmts) so the default was set to NOT use the "traditional cpp" . I think they got enough questions and complaints about this that they decided to make cc behave normally and let PB set its own defaults. -- Steve Majewski <sdm7g@Virginia.EDU>
On 28/3/01 5:39 pm, "tom smith" <tom@othermedia.com> wrote:
On Tuesday, March 27, 2001, at 08:54 PM, Steve Spicklemire wrote:
Hi Gregg,
Hmm.. somehow your 'pythonpath' seems to be out of whack. I've built/run Zope on the public beta with no problem... I should get the release version soon.. when I do I'll ship you details..
what does:
find /usr/local/zope/2-3-0 -name "ExtensionClass*" -ls
produce?
hi, I'm too am trying to build zope on OSX too...and everything worked until I ran ./start and it complained of a lack of Extension Class. I installed Python 2.0 NOT on the main drive so I suspect my path is out of whack...
is there anything I can do?
tom p.s I'm new to unix
Get the Darwin Python build from http://tony.lownds.com/macosx/MacOSX-Darwin-Python2.0.tgz It's *twice* as fast as the python I built myself and has some libraries built-in (zlib, readline) Ie % cd /usr/local % sudo wget http://tony.lownds.com/macosx/MacOSX-Darwin-Python2.0.tgz % sudo tar zxf MacOSX-Darwin-Python2.0.tgz % cd % python [GCC Apple DevKit-based CPP 5.0] on Darwin1.2 Type "copyright", "credits" or "license" for more information.
% cd Zope % python wo_pcgi.py % ./start Bobs your uncle and Fannys your aunt. Worked for me (now, if I could MySQL installed I would be a seriously happy bunny - not the easter reference) HTH Tone -- Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/ The Medical School, Newcastle University Tel: +44 191 243 6140 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope
participants (5)
-
Gregg Hartling -
Steve Spicklemire -
Steven D. Majewski -
tom smith -
Tony McDonald