I have recently moved our Zope installation over to a centos server. Since the move all the external methods periodically stop working for no apparent reason and the error is returned as: "external method can not be called because it is none" The thing is that it works well and then stops. Does anyone have any ideas about this? The installation was not initially compiled on centos as I have a large collection of software as part of the application which can be moved between servers with the Zope installation. The reason for the move to Centos is that DTMLTex fails when trying to run pdflatex on Ubuntu and this seems to be distro specific, with no apparent way to fix it, unless anyone knows any better? Kind Regards Garry
----- Original Message ----- From: "Garry Saddington" <garry@schoolteachers.co.uk> To: <zope@zope.org> Sent: Wednesday, May 07, 2008 11:52 AM Subject: [Zope] disappearing external methods
I have recently moved our Zope installation over to a centos server. Since the move all the external methods periodically stop working for no apparent reason and the error is returned as: "external method can not be called because it is none"
The thing is that it works well and then stops. Does anyone have any ideas about this? The installation was not initially compiled on centos as I have a large collection of software as part of the application which can be moved between servers with the Zope installation. The reason for the move to Centos is that DTMLTex fails when trying to run pdflatex on Ubuntu and this seems to be distro specific, with no apparent way to fix it, unless anyone knows any better?
We use centOS and have a lot of external methods (all working happily). Have you tried deleting the .pyc files associated with the external methods and then restarting zope? Jonathan
----- Original Message ----- From: "Jonathan" <dev101@magma.ca> To: "Garry Saddington" <garry@schoolteachers.co.uk>; <zope@zope.org> Sent: Wednesday, May 07, 2008 11:54 AM Subject: Re: [Zope] disappearing external methods
----- Original Message ----- From: "Garry Saddington" <garry@schoolteachers.co.uk> To: <zope@zope.org> Sent: Wednesday, May 07, 2008 11:52 AM Subject: [Zope] disappearing external methods
I have recently moved our Zope installation over to a centos server. Since the move all the external methods periodically stop working for no apparent reason and the error is returned as: "external method can not be called because it is none"
The thing is that it works well and then stops. Does anyone have any ideas about this? The installation was not initially compiled on centos as I have a large collection of software as part of the application which can be moved between servers with the Zope installation. The reason for the move to Centos is that DTMLTex fails when trying to run pdflatex on Ubuntu and this seems to be distro specific, with no apparent way to fix it, unless anyone knows any better?
We use centOS and have a lot of external methods (all working happily).
Have you tried deleting the .pyc files associated with the external methods and then restarting zope?
Sorry, that should have been delete any .pyc files of modules that your external methods call and delete .pyc files for any products that may be used by the external methods, then restart zope. You can also try to delete and re-add the external method within the ZMI. Jonathan
On Wednesday 07 May 2008 16:54, Jonathan wrote:
----- Original Message ----- From: "Garry Saddington" <garry@schoolteachers.co.uk> To: <zope@zope.org> Sent: Wednesday, May 07, 2008 11:52 AM Subject: [Zope] disappearing external methods
I have recently moved our Zope installation over to a centos server. Since the move all the external methods periodically stop working for no apparent reason and the error is returned as: "external method can not be called because it is none"
The thing is that it works well and then stops. Does anyone have any ideas about this? The installation was not initially compiled on centos as I have a large collection of software as part of the application which can be moved between servers with the Zope installation. The reason for the move to Centos is that DTMLTex fails when trying to run pdflatex on Ubuntu and this seems to be distro specific, with no apparent way to fix it, unless anyone knows any better?
We use centOS and have a lot of external methods (all working happily).
Have you tried deleting the .pyc files associated with the external methods and then restarting zope? There are no .pyc files in any of our installations. Have you used the Zope that comes with Centos or from Zope.org? Regards Garry
----- Original Message ----- From: "Garry Saddington" <garry@schoolteachers.co.uk> To: <zope@zope.org> Sent: Wednesday, May 07, 2008 12:06 PM Subject: Re: [Zope] disappearing external methods
On Wednesday 07 May 2008 16:54, Jonathan wrote:
----- Original Message ----- From: "Garry Saddington" <garry@schoolteachers.co.uk> To: <zope@zope.org> Sent: Wednesday, May 07, 2008 11:52 AM Subject: [Zope] disappearing external methods
I have recently moved our Zope installation over to a centos server. Since the move all the external methods periodically stop working for no apparent reason and the error is returned as: "external method can not be called because it is none"
The thing is that it works well and then stops. Does anyone have any ideas about this? The installation was not initially compiled on centos as I have a large collection of software as part of the application which can be moved between servers with the Zope installation. The reason for the move to Centos is that DTMLTex fails when trying to run pdflatex on Ubuntu and this seems to be distro specific, with no apparent way to fix it, unless anyone knows any better?
We use centOS and have a lot of external methods (all working happily).
Have you tried deleting the .pyc files associated with the external methods and then restarting zope? There are no .pyc files in any of our installations. Have you used the Zope that comes with Centos or from Zope.org? Regards Garry
We downloaded/installed zope from zope.org. Jonathan
Garry Saddington schrieb:
Have you tried deleting the .pyc files associated with the external methods and then restarting zope? There are no .pyc files in any of our installations. Have you used the Zope that comes with Centos or from Zope.org? Tried, as somebody say, to open the external method on the ZMI, then press save, and test if it works. If you have a lot of them, you could try Dieter's advice here:
http://mail.zope.org/pipermail/zope/2002-July/119101.html Check also that you move all .py files from your external methods and that file and folder permissions allow the user running zope to access them. I'm not sure but I think this problems with the external methods only happen with old zope versions. Which version you have? Best regards Josef
On Wednesday 07 May 2008 18:13, Josef Meile wrote:
Garry Saddington schrieb:
Have you tried deleting the .pyc files associated with the external methods and then restarting zope?
There are no .pyc files in any of our installations. Have you used the Zope that comes with Centos or from Zope.org?
Tried, as somebody say, to open the external method on the ZMI, then press save, and test if it works. If you have a lot of them, you could try Dieter's advice here:
http://mail.zope.org/pipermail/zope/2002-July/119101.html
Check also that you move all .py files from your external methods and that file and folder permissions allow the user running zope to access them.
I'm not sure but I think this problems with the external methods only happen with old zope versions. Which version you have?
2.9.6 I am re-compiling on Centos to see if that helps Regards Garry
Garry Saddington wrote at 2008-5-7 16:52 +0100:
I have recently moved our Zope installation over to a centos server. Since the move all the external methods periodically stop working for no apparent reason and the error is returned as: "external method can not be called because it is none"
This means that the "ExternalMethod"s source cannot be imported. Check that this source is where it should be (and is readable). If this is the case, press the "save" button of the "ExternalMethod" to see a more detailed problem report. -- Dieter
participants (4)
-
Dieter Maurer -
Garry Saddington -
Jonathan -
Josef Meile