[Zope-dev] Curiously Zope Hanging
Hi all, I have a problem with my Zope, he hangs unexpectly if i view a special Method which generates Diagrams with data from a PostgresDB. The data are selected by a timespan( default is 24 Hours ). The Method works as descripted bellow: First when i call foo, then the HTML-Code is rendered with some images-tags, which are generated by selects. The image tags are calling the method foo which returns image data. If i want my diagrams from 2001-06-01 5:00 to 2001-06-01 12:05 everything works fine. If i want my diagrams from 2001-06-01 5:00 to 2001-06-01 12:10 Zope hangs, no exception no log entry, Zope only hangs. If i want my diagrams from 2001-06-01 5:05 to 2001-06-01 12:10 which is the same timespan as example 1 Zope hangs too, no exception no log entry, Zope only hangs. If i view the postgres logs the nothing happens. Could anyone help me to find the problem or the place Zope is hanging thanks as P.S.: Exact the same problem occurs when i you another PostgresDA ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Curiously Zope Hanging
Hi Andre, What OS? I've had lots of trouble with Postgres and threads on FreeBSD. Have you tried starting Zope with '-D' to see if threads are an issue? -steve Andre Schubert wrote: Hi all, I have a problem with my Zope, he hangs unexpectly if i view a special Method which generates Diagrams with data from a PostgresDB. The data are selected by a timespan( default is 24 Hours ). The Method works as descripted bellow: First when i call foo, then the HTML-Code is rendered with some images-tags, which are generated by selects. The image tags are calling the method foo which returns image data. If i want my diagrams from 2001-06-01 5:00 to 2001-06-01 12:05 everything works fine. If i want my diagrams from 2001-06-01 5:00 to 2001-06-01 12:10 Zope hangs, no exception no log entry, Zope only hangs. If i want my diagrams from 2001-06-01 5:05 to 2001-06-01 12:10 which is the same timespan as example 1 Zope hangs too, no exception no log entry, Zope only hangs. If i view the postgres logs the nothing happens. Could anyone help me to find the problem or the place Zope is hanging thanks as P.S.: Exact the same problem occurs when i you another PostgresDA ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Patching Zope Products .. next Question
Would this approach be appropriate? http://dev.zope.org/Members/Caseman/Dynamic_HotFix_News/Dynamic_Hotfix You can hotpatch the __bases__ attribute of the derived class. ok .. I tried several different versions of patching .. 1st Try: Created a new class in the patch that subclassed the ZPatterns-Stuff directly: ### CMFCore.PortalFolder ### import CMFCore class PortalFolder( CustomizerFolder, CMFCore.PortalFolder.PortalFolder): Implements portal content management, but not UI details. meta_type = 'Portal Folder' portal_type = 'Folder' def __init__( self, id, title='' ): CustomizerFolder.__init__(self,id) self.id = id self.title = title CMFCore.PortalFolder.PortalFolder = PortalFolder InitializeClass(CMFCore.PortalFolder.PortalFolder) This works fine except the DataSkin-derived classes don't show up in the CustomizerFolder for customization (they're not properly initialized) 2nd Try: modify __bases__ directly .. ### CMFCore.PortalFolder ### def PortalFolder__init__( self, id, title='' ): CustomizerFolder.__init__(self,id) self.id = id self.title = title import Products.CMFCore.PortalFolder Products.CMFCore.PortalFolder.PortalFolder.__bases__ = tuple((CustomizerFolder,) + Products.CMFCore.PortalFolder.PortalFolder.__bases__) # the next line works only if i use the im_func # otherwise i get this error: # Error Type: TypeError # Error Value: unbound Python method must be called with PlugInContainer 1st argument Products.CMFCore.PortalFolder.PortalFolder.__init__ = PortalFolder__init__.im_func InitializeClass(Products.CMFCore.PortalFolder.PortalFolder) this one doesn't do anything ... do you see the failure .. have a hint what I'm doing wrong ??? thanks for your patience Ulrich Eck net-labs ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] masquerading python products as functions
Thanks for all the pointers. I found the thread that Dieter was mentioning and it was very good. Interesting to follow Chris's process of enlightenment, just what I needed. This Python script solution below looks interesting too, so I must follow that up. Toby Dickenson's wrapper is very nice ... http://www.zope.org/Members/htrd/howto/FunctionTemplate thanks Mick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lalo Martins Sent: Thursday, July 12, 2001 3:45 PM To: [EMAIL PROTECTED] Subject: Re: [Zope-dev] masquerading python products as functions On Wed, Jul 11, 2001 at 11:38:20PM +1200, Mick wrote: Hi, I am trying to make a product act like an external method, or dtmlmethod. Basically I have taken the minimal product and added a __call__ function. It works fine, and can be called as a function of the object that contains it. The problem is that the minimal objects namespace is also pushed onto the stack, and to get out of it I need to go through self.aq_parent. You may want to try out Shared.DC.Scripts.Script. I have a (preliminary) HOWTO at http://www.zope.org/Members/lalo/scriptclass-dev []s, |alo + -- http://www.laranja.org/mailto:[EMAIL PROTECTED] pgp key: http://www.laranja.org/pessoal/pgp Brazil of Darkness (RPG) --- http://www.BroDar.org/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Patching Zope Products .. again
sorry for bothering you again .. I'ld like to release the CMFZPatternsPatch as Patch but still have troubles with that. I have this in my __init__.py of the PatchProduct: ### CMFCore.PortalFolder ### import Products.CMFCore.DynamicType def PortalFolder__init__( self, id, title='' ): CustomizerFolder.__init__(self,id) self.id = id self.title = title import Products.CMFCore.PortalFolder Products.CMFCore.PortalFolder.PortalFolder.__bases__ = tuple([CustomizerFolder,Products.CMFCore.DynamicType.DynamicType]) Products.CMFCore.PortalFolder.PortalFolder.__init__ = PortalFolder__init__ reload(Products.CMFCore) raise testerror,str(Products.CMFCore.PortalFolder.PortalFolder.__bases__) I tried this with and without the reload and when I start zope to see the bases I get: 2001-07-12T12:59:44 ERROR(200) Zope Couldn't import Products.CMFZPatternsPatch Traceback (innermost last): File /usr/share/zope/lib/python/OFS/Application.py, line 528, in import_products (Object: string) File /usr/share/zope/lib/python/Products/CMFZPatternsPatch/__init__.py, line 140, in ? testerror: (extension class OFS.Folder.Folder at 83e9620, class Products.CMFCore.DynamicType.DynamicType at 855e5f8) so .. the __bases__ don't get updated .. or did i miss something ?? thanks for your help Ulrich Eck net-labs ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] Curiously Zope Hanging
I've had this problem as well, although I changed from ZPopPy to psycopg0.99.4 which solved the problem. What I found in REdhat Linux 7.1, where the ps -ef command now queries more info from its children, I finally saw the status of my dbms threads. The Zope hanging maybe wasnt zope directly. It still translated requests BUT I saw in ps -ef: postgresql db01 UPDATE waiting. This is where the hang is. Several emails from Dieter just confused me more. Something about Zope not having imlicit commits on transactions, so you had to make sure a dtml-call transaction().commit() was placed somehwere. This seemed to solve some problems at the time for me although I got alot of : Warning: COMMIT, No transacion in progress Hope I confused you a bit more. Maybe we can get somewhere eventaully ;_) Paz -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andre Schubert Sent: Thursday, July 12, 2001 2:48 PM To: [EMAIL PROTECTED] Cc: zope Subject: Re: [Zope-dev] Curiously Zope Hanging Hi Steve, Immunix Redhat 6.2 Zope 2.3.3 Postgres 7.1.2 I'am running Zope with -M -D and with Stupid_log_file. But i don't find a problem. When Zope hangs, then there is one Thread Running and if i trace this Thread nothing happens. as Steve Spicklemire schrieb: Hi Andre, What OS? I've had lots of trouble with Postgres and threads on FreeBSD. Have you tried starting Zope with '-D' to see if threads are an issue? -steve Andre Schubert wrote: Hi all, I have a problem with my Zope, he hangs unexpectly if i view a special Method which generates Diagrams with data from a PostgresDB. The data are selected by a timespan( default is 24 Hours ). The Method works as descripted bellow: First when i call foo, then the HTML-Code is rendered with some images-tags, which are generated by selects. The image tags are calling the method foo which returns image data. If i want my diagrams from 2001-06-01 5:00 to 2001-06-01 12:05 everything works fine. If i want my diagrams from 2001-06-01 5:00 to 2001-06-01 12:10 Zope hangs, no exception no log entry, Zope only hangs. If i want my diagrams from 2001-06-01 5:05 to 2001-06-01 12:10 which is the same timespan as example 1 Zope hangs too, no exception no log entry, Zope only hangs. If i view the postgres logs the nothing happens. Could anyone help me to find the problem or the place Zope is hanging thanks as P.S.: Exact the same problem occurs when i you another PostgresDA ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Curiously Zope Hanging
Well, the good news is you have a reproducable symptom! Some suggestions: 1) Try the quer(y/ies) that cause the hang separately to make sure they return OK. 2) Create a Python script/Tiny table/Gadfly query that returns data that looks just like the result of your postgresql query to test the rest of your system. (these two just isolate the problem to postgres or Zope) 3) Get out the debugger and step through the publisher to see where it's hanging.. (in -D mode you can also 'print' in python and the results will appear on stdout of the 'start -D' process. 4) Post some real code so we can see what you're really up to (!?) -steve Andre Schubert wrote: Hi Steve, Immunix Redhat 6.2 Zope 2.3.3 Postgres 7.1.2 I'am running Zope with -M -D and with Stupid_log_file. But i don't find a problem. When Zope hangs, then there is one Thread Running and if i trace this Thread nothing happens. as Steve Spicklemire schrieb: Hi Andre, What OS? I've had lots of trouble with Postgres and threads on FreeBSD. Have you tried starting Zope with '-D' to see if threads are an issue? -steve Andre Schubert wrote: Hi all, I have a problem with my Zope, he hangs unexpectly if i view a special Method which generates Diagrams with data from a PostgresDB. The data are selected by a timespan( default is 24 Hours ). The Method works as descripted bellow: First when i call foo, then the HTML-Code is rendered with some images-tags, which are generated by selects. The image tags are calling the method foo which returns image data. If i want my diagrams from 2001-06-01 5:00 to 2001-06-01 12:05 everything works fine. If i want my diagrams from 2001-06-01 5:00 to 2001-06-01 12:10 Zope hangs, no exception no log entry, Zope only hangs. If i want my diagrams from 2001-06-01 5:05 to 2001-06-01 12:10 which is the same timespan as example 1 Zope hangs too, no exception no log entry, Zope only hangs. If i view the postgres logs the nothing happens. Could anyone help me to find the problem or the place Zope is hanging thanks as P.S.: Exact the same problem occurs when i you another PostgresDA ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] Curiously Zope Hanging
On 12 Jul 2001 15:20:16 +0200, Paul Zwarts wrote: I've had this problem as well, although I changed from ZPopPy to psycopg0.99.4 which solved the problem. What I found in REdhat Linux 7.1, where the ps -ef command now queries more info from its children, I finally saw the status of my dbms threads. The Zope hanging maybe wasnt zope directly. It still translated requests BUT I saw in ps -ef: postgresql db01 UPDATE waiting. This is where the hang is. Several emails from Dieter just confused me more. Something about Zope not having imlicit commits on transactions, so you had to make sure a dtml-call transaction().commit() was placed somehwere. This seemed to solve some problems at the time for me although I got alot of : Warning: COMMIT, No transacion in progress never, never, never do that with psycopg. psycopg cooperates with zope (that *does* commit on transactions) and has real transaction control. with zope+psycopg you'll get a commit (or abort) just at the end of the requested page. ciao, federico -- Federico Di Gregorio MIXAD LIVE Chief of Research Technology [EMAIL PROTECTED] Debian GNU/Linux Developer Italian Press Contact[EMAIL PROTECTED] All'inizio ho scritto un programma proprietario, in esclusiva per il cliente; e mi ha succhiato un pezzo di anima. -- Alessandro Rubini ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Curiously Zope Hanging
Hi Andre, Andre Schubert wrote: No, the problem is not reproduceable, because if move the timespan 5 minutes earlier then Zope crashes. And thats the problem. Hmm.. my point was only that if you can *predict* correctly when Zope will hang.. then it is at least 'reproducable'. If i call my diagrams in the order that a is the same and b is changing everything works well and there are absolutely no hangs, but if i call my diagrams the other way that a is changing and b is the same then Zope works if i select data from 2001-06-01 5:00 to 2001-06-20 12:05 and Zope hangs if i select data from 2001-06-01 5:00 to 2001-06-20 12:10 or from 2001-06-01 5:05 to 2001-06-20 12:10 I hope you understand my explanations in my bad german-english. I think I get the basic picture... but as Steve Spicklemire schrieb: Well, the good news is you have a reproducable symptom! ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] Curiously Zope Hanging
Yes, thanks for mentioning that Frederico. I _should_ have said thats what I used in PoPy. I dont use it anymore with your product. : ), but that doesnt mean I'm any wiser for this. But *magic* is a highly used term in programming these days, so I'm not worried too much. At least I dont have unhappy customers anymore. Paz -Original Message- From: Federico Di Gregorio [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 3:30 PM To: Paul Zwarts Cc: Andre Schubert; [EMAIL PROTECTED]; zope Subject: RE: [Zope-dev] Curiously Zope Hanging On 12 Jul 2001 15:20:16 +0200, Paul Zwarts wrote: I've had this problem as well, although I changed from ZPopPy to psycopg0.99.4 which solved the problem. What I found in REdhat Linux 7.1, where the ps -ef command now queries more info from its children, I finally saw the status of my dbms threads. The Zope hanging maybe wasnt zope directly. It still translated requests BUT I saw in ps -ef: postgresql db01 UPDATE waiting. This is where the hang is. Several emails from Dieter just confused me more. Something about Zope not having imlicit commits on transactions, so you had to make sure a dtml-call transaction().commit() was placed somehwere. This seemed to solve some problems at the time for me although I got alot of : Warning: COMMIT, No transacion in progress never, never, never do that with psycopg. psycopg cooperates with zope (that *does* commit on transactions) and has real transaction control. with zope+psycopg you'll get a commit (or abort) just at the end of the requested page. ciao, federico -- Federico Di Gregorio MIXAD LIVE Chief of Research Technology [EMAIL PROTECTED] Debian GNU/Linux Developer Italian Press Contact[EMAIL PROTECTED] All'inizio ho scritto un programma proprietario, in esclusiva per il cliente; e mi ha succhiato un pezzo di anima. -- Alessandro Rubini ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Curiously Zope Hanging
No, the problem is not reproduceable, because if move the timespan 5 minutes earlier then Zope crashes. And thats the problem. If have a select which selects data of a given timespan. The number of rows is equal, but the start and end is changing. The queries itself are running withoput problems in my testscripts. The next is that there are over 23 Million of rows in the DB and there is an btree index of two collumns a and b. And now comes the curiousity. If i call my diagrams in the order that a is the same and b is changing everything works well and there are absolutely no hangs, but if i call my diagrams the other way that a is changing and b is the same then Zope works if i select data from 2001-06-01 5:00 to 2001-06-20 12:05 and Zope hangs if i select data from 2001-06-01 5:00 to 2001-06-20 12:10 or from 2001-06-01 5:05 to 2001-06-20 12:10 I hope you understand my explanations in my bad german-english. as Steve Spicklemire schrieb: Well, the good news is you have a reproducable symptom! Some suggestions: 1) Try the quer(y/ies) that cause the hang separately to make sure they return OK. 2) Create a Python script/Tiny table/Gadfly query that returns data that looks just like the result of your postgresql query to test the rest of your system. (these two just isolate the problem to postgres or Zope) 3) Get out the debugger and step through the publisher to see where it's hanging.. (in -D mode you can also 'print' in python and the results will appear on stdout of the 'start -D' process. 4) Post some real code so we can see what you're really up to (!?) -steve Andre Schubert wrote: Hi Steve, Immunix Redhat 6.2 Zope 2.3.3 Postgres 7.1.2 I'am running Zope with -M -D and with Stupid_log_file. But i don't find a problem. When Zope hangs, then there is one Thread Running and if i trace this Thread nothing happens. as Steve Spicklemire schrieb: Hi Andre, What OS? I've had lots of trouble with Postgres and threads on FreeBSD. Have you tried starting Zope with '-D' to see if threads are an issue? -steve Andre Schubert wrote: Hi all, I have a problem with my Zope, he hangs unexpectly if i view a special Method which generates Diagrams with data from a PostgresDB. The data are selected by a timespan( default is 24 Hours ). The Method works as descripted bellow: First when i call foo, then the HTML-Code is rendered with some images-tags, which are generated by selects. The image tags are calling the method foo which returns image data. If i want my diagrams from 2001-06-01 5:00 to 2001-06-01 12:05 everything works fine. If i want my diagrams from 2001-06-01 5:00 to 2001-06-01 12:10 Zope hangs, no exception no log entry, Zope only hangs. If i want my diagrams from 2001-06-01 5:05 to 2001-06-01 12:10 which is the same timespan as example 1 Zope hangs too, no exception no log entry, Zope only hangs. If i view the postgres logs the nothing happens. Could anyone help me to find the problem or the place Zope is hanging thanks as P.S.: Exact the same problem occurs when i you another PostgresDA ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] Curiously Zope Hanging
Ah, the common paradigm. someone TOLD me that smoking cigarettes wiht ceral and milk will make me barf, and I can assume that to be so. But when i do indeed barf, do I come satisfied with that or now question if that it had to do with te spoon or the bowl? Paz -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Steve Spicklemire Sent: Thursday, July 12, 2001 4:17 PM To: Andre Schubert Cc: zope Subject: Re: [Zope-dev] Curiously Zope Hanging Hi Andre, Andre Schubert wrote: No, the problem is not reproduceable, because if move the timespan 5 minutes earlier then Zope crashes. And thats the problem. Hmm.. my point was only that if you can *predict* correctly when Zope will hang.. then it is at least 'reproducable'. If i call my diagrams in the order that a is the same and b is changing everything works well and there are absolutely no hangs, but if i call my diagrams the other way that a is changing and b is the same then Zope works if i select data from 2001-06-01 5:00 to 2001-06-20 12:05 and Zope hangs if i select data from 2001-06-01 5:00 to 2001-06-20 12:10 or from 2001-06-01 5:05 to 2001-06-20 12:10 I hope you understand my explanations in my bad german-english. I think I get the basic picture... but as Steve Spicklemire schrieb: Well, the good news is you have a reproducable symptom! ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Curiously Zope Hanging
Sorry.. got distracted and forgot where I was! I think I get the basic picture... but I think maybe we need more details of your system to be of any more help.. -steve as Steve Spicklemire schrieb: Well, the good news is you have a reproducable symptom! ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Traversal Barf
snip stuff about SERVER_URL KeyError * Casey Duncan [EMAIL PROTECTED] [010711 16:22]: I haven't the time time to pursue this right now, but I'll attempt to make a simple, reproduceable example and submit it to the Tracker. But just in case I get time to debug it, where might I start? I'm not very familiar with the Traversal / Publishing stuff. I'm happy to help if I can. Thanks for the offer. I'll need to take time to assemble something that isn't our entire framework for you to have a look at. Hopefully by the end of the week... cheers, seb ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Curiously Zope Hanging
Steve Spicklemire writes: What OS? I've had lots of trouble with Postgres and threads on FreeBSD. Have you tried starting Zope with '-D' to see if threads are an issue? Maybe in the stone age -D had disabled threading. All Zope versions I know of (from 2.1.6 on) were multi-threaded even in debug mode. Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] problems compiling zope-2.3.3 source under YDL 2.0
I'm having problems compiling the Zope source under Yellow Dog Linux (PPC) 2.0 (which is basically RedHat 7.0) can anyone offer a suggestion based on the traceback? here 'tis: [zope@ydl Zope-2.3.3]$ python wo_pcgi.py -- Compiling python modules -- Building extension modules cp ./lib/python/Setup15 ./lib/python/Setup Compiling extensions in lib/python cp /usr/lib/python1.5/config/Makefile.pre.in . make -f Makefile.pre.in boot PYTHON=/usr/bin/python rm -f *.o *~ rm -f *.a tags TAGS config.c Makefile.pre python sedscript rm -f *.so *.sl so_locations VERSION=`/usr/bin/python -c import sys; print sys.version[:3]`; \ installdir=`/usr/bin/python -c import sys; print sys.prefix`; \ exec_installdir=`/usr/bin/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 `/usr/local/zope/Zope-2.3.3/lib/python' sed -n \ -e '1s/.*/1i\\/p' \ -e '2s%.*%# Generated automatically from Makefile.pre.in by sedscript.%p' \ -e '/^VERSION=/s/^VERSION=[]*\(.*\)/s%@VERSION[@]%\1%/p' \ -e '/^CC=/s/^CC=[ ]*\(.*\)/s%@CC[@]%\1%/p' \ -e '/^CCC=/s/^CCC=[]*\(.*\)/s%#@SET_CCC[@]%CCC=\1%/p' \ -e '/^LINKCC=/s/^LINKCC=[ ]*\(.*\)/s%@LINKCC[@]%\1%/p' \ -e '/^OPT=/s/^OPT=[]*\(.*\)/s%@OPT[@]%\1%/p' \ -e '/^LDFLAGS=/s/^LDFLAGS=[]*\(.*\)/s%@LDFLAGS[@]%\1%/p' \ -e '/^LDLAST=/s/^LDLAST=[ ]*\(.*\)/s%@LDLAST[@]%\1%/p' \ -e '/^DEFS=/s/^DEFS=[ ]*\(.*\)/s%@DEFS[@]%\1%/p' \ -e '/^LIBS=/s/^LIBS=[ ]*\(.*\)/s%@LIBS[@]%\1%/p' \ -e '/^LIBM=/s/^LIBM=[ ]*\(.*\)/s%@LIBM[@]%\1%/p' \ -e '/^LIBC=/s/^LIBC=[ ]*\(.*\)/s%@LIBC[@]%\1%/p' \ -e '/^RANLIB=/s/^RANLIB=[ ]*\(.*\)/s%@RANLIB[@]%\1%/p' \ -e '/^MACHDEP=/s/^MACHDEP=[]*\(.*\)/s%@MACHDEP[@]%\1%/p' \ -e '/^SO=/s/^SO=[ ]*\(.*\)/s%@SO[@]%\1%/p' \ -e '/^LDSHARED=/s/^LDSHARED=[ ]*\(.*\)/s%@LDSHARED[@]%\1%/p' \ -e '/^CCSHARED=/s/^CCSHARED=[ ]*\(.*\)/s%@CCSHARED[@]%\1%/p' \ -e '/^SGI_ABI=/s/^SGI_ABI=[]*\(.*\)/s%@SGI_ABI[@]%\1%/p' \ -e '/^LINKFORSHARED=/s/^LINKFORSHARED=[ ]*\(.*\)/s%@LINKFORSHARED[@]%\1%/p' \ -e '/^prefix=/s/^prefix=\(.*\)/s%^prefix=.*%prefix=\1%/p' \ -e '/^exec_prefix=/s/^exec_prefix=\(.*\)/s%^exec_prefix=.*%exec_prefix=\1%/p' \ /usr/lib/python1.5/config/Makefile sedscript echo /^#@SET_CCC@/d sedscript echo /^installdir=/s%=.*%= /usr% sedscript echo /^exec_installdir=/s%=.*%=/usr% sedscript echo /^srcdir=/s%=.*%= .% sedscript echo /^VPATH=/s%=.*%= .% sedscript echo /^LINKPATH=/s%=.*%= % sedscript echo /^BASELIB=/s%=.*%=% sedscript echo /^BASESETUP=/s%=.*%= % sedscript sed -f sedscript ./Makefile.pre.in Makefile.pre /usr/lib/python1.5/config/makesetup \ -m Makefile.pre -c /usr/lib/python1.5/config/config.c.in Setup -n /usr/lib/python1.5/config/Setup.thread /usr/lib/python1.5/config/Setup.local /usr/lib/python1.5/config/Setup make -f Makefile do-it-again make[2]: Entering directory `/usr/local/zope/Zope-2.3.3/lib/python' /usr/lib/python1.5/config/makesetup \ -m Makefile.pre -c /usr/lib/python1.5/config/config.c.in Setup -n /usr/lib/python1.5/config/Setup.thread /usr/lib/python1.5/config/Setup.local /usr/lib/python1.5/config/Setup make[2]: Leaving directory `/usr/local/zope/Zope-2.3.3/lib/python' make[1]: Leaving directory `/usr/local/zope/Zope-2.3.3/lib/python' make gcc -fPIC -I../Components/ExtensionClass -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5 -DHAVE_CONFIG_H -c ./../Components/ExtensionClass/ExtensionClass.c ./../Components/ExtensionClass/ExtensionClass.c:60: stdio.h: No such file or directory In file included from ../Components/ExtensionClass/ExtensionClass.h:114, from ./../Components/ExtensionClass/ExtensionClass.c:61: /usr/include/python1.5/Python.h:57: stdio.h: No such file or directory /usr/include/python1.5/Python.h:58: string.h: No such file or directory /usr/include/python1.5/Python.h:59: errno.h: No such file or directory /usr/include/python1.5/Python.h:61: stdlib.h: No such file or directory In file included from /usr/lib/gcc-lib/ppc-yellowdog-linux/2.95.3/include/syslimits.h:7, from /usr/lib/gcc-lib/ppc-yellowdog-linux/2.95.3/include/limits.h:11, from /usr/include/python1.5/longobject.h:58, from /usr/include/python1.5/Python.h:76, from ../Components/ExtensionClass/ExtensionClass.h:114, from ./../Components/ExtensionClass/ExtensionClass.c:61: /usr/lib/gcc-lib/ppc-yellowdog-linux/2.95.3/include/limits.h:117: limits.h: No such file or directory In file included from /usr/include/python1.5/Python.h:97, from
Re: [Zope-dev] problems compiling zope-2.3.3 source under YDL 2.0
/usr/include/python1.5/mymalloc.h:57: stdlib.h: No such file or directory ^^^ Looks like your compiler installation is broken or you don't have any header files installed. Please check if you can find the file 'stdlib.h' somewhere on your system. Andreas Jung [EMAIL PROTECTED] Digital Creations Zope Dealers http://www.zope.org - Original Message - From: marc lindahl [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Donnerstag, 12. Juli 2001 14:27 Subject: [Zope-dev] problems compiling zope-2.3.3 source under YDL 2.0 I'm having problems compiling the Zope source under Yellow Dog Linux (PPC) 2.0 (which is basically RedHat 7.0) can anyone offer a suggestion based on the traceback? here 'tis: [zope@ydl Zope-2.3.3]$ python wo_pcgi.py -- -- -- Compiling python modules -- -- -- Building extension modules cp ./lib/python/Setup15 ./lib/python/Setup Compiling extensions in lib/python cp /usr/lib/python1.5/config/Makefile.pre.in . make -f Makefile.pre.in boot PYTHON=/usr/bin/python rm -f *.o *~ rm -f *.a tags TAGS config.c Makefile.pre python sedscript rm -f *.so *.sl so_locations VERSION=`/usr/bin/python -c import sys; print sys.version[:3]`; \ installdir=`/usr/bin/python -c import sys; print sys.prefix`; \ exec_installdir=`/usr/bin/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 `/usr/local/zope/Zope-2.3.3/lib/python' sed -n \ -e '1s/.*/1i\\/p' \ -e '2s%.*%# Generated automatically from Makefile.pre.in by sedscript.%p' \ -e '/^VERSION=/s/^VERSION=[]*\(.*\)/s%@VERSION[@]%\1%/p' \ -e '/^CC=/s/^CC=[ ]*\(.*\)/s%@CC[@]%\1%/p' \ -e '/^CCC=/s/^CCC=[]*\(.*\)/s%#@SET_CCC[@]%CCC=\1%/p' \ -e '/^LINKCC=/s/^LINKCC=[ ]*\(.*\)/s%@LINKCC[@]%\1%/p' \ -e '/^OPT=/s/^OPT=[]*\(.*\)/s%@OPT[@]%\1%/p' \ -e '/^LDFLAGS=/s/^LDFLAGS=[]*\(.*\)/s%@LDFLAGS[@]%\1%/p' \ -e '/^LDLAST=/s/^LDLAST=[ ]*\(.*\)/s%@LDLAST[@]%\1%/p' \ -e '/^DEFS=/s/^DEFS=[ ]*\(.*\)/s%@DEFS[@]%\1%/p' \ -e '/^LIBS=/s/^LIBS=[ ]*\(.*\)/s%@LIBS[@]%\1%/p' \ -e '/^LIBM=/s/^LIBM=[ ]*\(.*\)/s%@LIBM[@]%\1%/p' \ -e '/^LIBC=/s/^LIBC=[ ]*\(.*\)/s%@LIBC[@]%\1%/p' \ -e '/^RANLIB=/s/^RANLIB=[ ]*\(.*\)/s%@RANLIB[@]%\1%/p' \ -e '/^MACHDEP=/s/^MACHDEP=[]*\(.*\)/s%@MACHDEP[@]%\1%/p' \ -e '/^SO=/s/^SO=[ ]*\(.*\)/s%@SO[@]%\1%/p' \ -e '/^LDSHARED=/s/^LDSHARED=[ ]*\(.*\)/s%@LDSHARED[@]%\1%/p' \ -e '/^CCSHARED=/s/^CCSHARED=[ ]*\(.*\)/s%@CCSHARED[@]%\1%/p' \ -e '/^SGI_ABI=/s/^SGI_ABI=[]*\(.*\)/s%@SGI_ABI[@]%\1%/p' \ -e '/^LINKFORSHARED=/s/^LINKFORSHARED=[ ]*\(.*\)/s%@LINKFORSHARED[@]%\1%/p' \ -e '/^prefix=/s/^prefix=\(.*\)/s%^prefix=.*%prefix=\1%/p' \ -e '/^exec_prefix=/s/^exec_prefix=\(.*\)/s%^exec_prefix=.*%exec_prefix=\1%/p' \ /usr/lib/python1.5/config/Makefile sedscript echo /^#@SET_CCC@/d sedscript echo /^installdir=/s%=.*%= /usr% sedscript echo /^exec_installdir=/s%=.*%=/usr% sedscript echo /^srcdir=/s%=.*%= .% sedscript echo /^VPATH=/s%=.*%= .% sedscript echo /^LINKPATH=/s%=.*%= % sedscript echo /^BASELIB=/s%=.*%=% sedscript echo /^BASESETUP=/s%=.*%= % sedscript sed -f sedscript ./Makefile.pre.in Makefile.pre /usr/lib/python1.5/config/makesetup \ -m Makefile.pre -c /usr/lib/python1.5/config/config.c.in Setup -n /usr/lib/python1.5/config/Setup.thread /usr/lib/python1.5/config/Setup.local /usr/lib/python1.5/config/Setup make -f Makefile do-it-again make[2]: Entering directory `/usr/local/zope/Zope-2.3.3/lib/python' /usr/lib/python1.5/config/makesetup \ -m Makefile.pre -c /usr/lib/python1.5/config/config.c.in Setup -n /usr/lib/python1.5/config/Setup.thread /usr/lib/python1.5/config/Setup.local /usr/lib/python1.5/config/Setup make[2]: Leaving directory `/usr/local/zope/Zope-2.3.3/lib/python' make[1]: Leaving directory `/usr/local/zope/Zope-2.3.3/lib/python' make gcc -fPIC -I../Components/ExtensionClass -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5 -DHAVE_CONFIG_H -c ./../Components/ExtensionClass/ExtensionClass.c ./../Components/ExtensionClass/ExtensionClass.c:60: stdio.h: No such file or directory In file included from ../Components/ExtensionClass/ExtensionClass.h:114, from ./../Components/ExtensionClass/ExtensionClass.c:61: /usr/include/python1.5/Python.h:57: stdio.h: No such file or directory /usr/include/python1.5/Python.h:58: string.h: No such file or directory
Re: [Zope-dev] problems compiling zope-2.3.3 source under YDL 2.0
That was it... neglected to install glibc-devel If anyone wants it, I guess I can gzip the build up... THanks Andreas!!! Marc From: Andreas Jung [EMAIL PROTECTED] Organization: Andreas Jung Reply-To: Andreas Jung [EMAIL PROTECTED] Date: Thu, 12 Jul 2001 15:30:51 -0500 To: marc lindahl [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [Zope-dev] problems compiling zope-2.3.3 source under YDL 2.0 /usr/include/python1.5/mymalloc.h:57: stdlib.h: No such file or directory ^^^ Looks like your compiler installation is broken or you don't have any header files installed. Please check if you can find the file 'stdlib.h' somewhere on your system. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )