Re: [Zope3-Users] Debug quits with no error...

2008-06-27 Thread Jon Hadley
Magic configure line for me was:

./configure MACOSX_DEPLOYMENT_TARGET=10.5 LDFLAGS=-L/opt/local/lib
OPT=-I/opt/local/include

Now all works fine. Thanks for the troubleshooting pointers all.

Worldcookery.com however still seems down for me and 'everyone else':

http://downforeveryoneorjustme.com/worldcookery.com


Jon
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Debug quits with no error...

2008-06-27 Thread Fred Drake
On Fri, Jun 27, 2008 at 4:10 AM, Jon Hadley [EMAIL PROTECTED] wrote:
 ./configure MACOSX_DEPLOYMENT_TARGET=10.5 LDFLAGS=-L/opt/local/lib
 OPT=-I/opt/local/include

Egads; I'd completely forgotten about that environment variable; I'll
bet I was looking at a build for a different version of Python.
That's no longer required with Python 2.5.x.

 Worldcookery.com however still seems down for me and 'everyone else':

Of course, now it's not working for me either.  :-/


 -Fred

-- 
Fred L. Drake, Jr. fdrake at gmail.com
Chaos is the score upon which reality is written. --Henry Miller
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Debug quits with no error...

2008-06-25 Thread Jon Hadley
Working form page 87 of PVW's book* I can now successfully type 'from
worldcookery.recipe import Recipe'

However, the next line, 'minestrone = Recipe()'  results in the prompt
quitting out with a 'Bus error'.

Progress, at least (thanks Jim), but still broken. Where should I be
looking for the cause? Is this the debugger still, or my code?

Jon.

*As an aside, the worldcookery.com website seem to have been offline
for the past 2 days. I was thinking of installing the finished
application from the source there to check against my code.
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Debug quits with no error...

2008-06-25 Thread Jon Hadley
 Check if you get the same error if you just play in a normal python
 prompt.

How do I run a python prompt within my application (so that I can call
the classes etc)? Bearing in mind I'm using buildout and I'm a
beginner!

 I think the solution to this was to install readline

I have readline support installed already. I can edit a line with the
right and left keys and up brings back a history, at both the python
and debug prompt.

Cheers,

Jon.
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Debug quits with no error...

2008-06-25 Thread Fred Drake
On Wed, Jun 25, 2008 at 4:57 AM, Jon Hadley [EMAIL PROTECTED] wrote:
 *As an aside, the worldcookery.com website seem to have been offline
 for the past 2 days. I was thinking of installing the finished

This is working for me.

 How do I run a python prompt within my application (so that I can call
 the classes etc)? Bearing in mind I'm using buildout and I'm a
 beginner!

If your buildout includes an interpreter part, that would be
producing a script in bin/ (conventionally bin/py, but that's
controlled in the buildout.cfg).  Running that script will give you an
interpreter with the packages it was configured to provide, with all
the dependencies.


 -Fred

-- 
Fred L. Drake, Jr. fdrake at gmail.com
Chaos is the score upon which reality is written. --Henry Miller
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Debug quits with no error...

2008-06-25 Thread Jon Hadley
Thanks for all the advice guys.

Just tried print 'hello world' at the python prompt and got a Bus
Error, so looks like it is my python installation after all.

Will come back to you when I've fixed it!

Jon
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Debug quits with no error...

2008-06-24 Thread Jim Fulton


On Jun 24, 2008, at 11:44 AM, Jon Hadley wrote:


Hi all, I'm running through PVW's Zope 3 book.

I'm trying to create an object via the debug prompt using
./bin/instance debug (my zope instance is buildout based, on OSX).

However, each time I enter: from worldcookery.recipe import Recipe
the prompt just quits out, no error, nothing ...

'import urllib' works
'import worldcookery' works
'import worldcookery.recipe' doesn't work

If I mistype the name on purpose, it gives a 'proper' error.

./bin/instance fg and start both run the server fine with no errors
and I can browse the default Zope3 site.

Where am I going wrong?


Nothing.  This is a bug in the debug setup, probably in the buildout  
recipe.


You can work around this by using:

  parts/application/debugzope -C parts/instance/zope.conf

assuming that you called your application part application.

JIm

--
Jim Fulton
Zope Corporation


___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users