I want to direct the Z2.log file to both a local file and to a remote machine. I think the configuration might be something like this: <logger access> level WARN <logfile> path $INSTANCE/log/Z2.log format %(message)s </logfile> <syslog> address 192.168.0.92:514 format %(message)s </syslog> </logger> but it does not seem to function correctly. Has anyone tried this? Any assistance would be appreciated. This is Zope 2.7.6. --
I'm getting an attribute error when I try to run Zope 2.7.6, which is occurring when NauScheduler starts up: AttributeError: ignoreLater I am using NauScheduler on other windows and unix systems. But have not seen this problem before. Can anyone help? Below is the traceback. Thanks. Barry Drake 2005-08-25T17:15:00 ERROR(200) Zope Couldn't install NauScheduler Traceback (most recent call last): File "C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py", line 751, in install_product initmethod(context) File "C:\Zope-Instance\Products\NauScheduler\__init__.py", line 59, in initialize schedule.ignoreLater() AttributeError: ignoreLater Traceback (most recent call last): File "C:\Program Files\Zope-2.7.6-final\lib\python\Zope\Startup\run.py", line 50, in ? run() File "C:\Program Files\Zope-2.7.6-final\lib\python\Zope\Startup\run.py", line 19, in run start_zope(opts.configroot) File "C:\Program Files\Zope-2.7.6-final\lib\python\Zope\Startup\__init__.py", line 52, in start_zope starter.startZope() File "C:\Program Files\Zope-2.7.6-final\lib\python\Zope\Startup\__init__.py", line 231, in startZope Zope.startup() File "C:\Program Files\Zope-2.7.6-final\lib\python\Zope\__init__.py", line 47, in startup _startup() File "C:\Program Files\Zope-2.7.6-final\lib\python\Zope\App\startup.py", line 96, in startup OFS.Application.initialize(application) File "C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py", line 278, in initialize initializer.initialize() File "C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py", line 305, in initialize self.install_products() File "C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py", line 573, in install_products return install_products(app) File "C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py", line 604, in install_products folder_permissions, raise_exc=debug_mode) File "C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py", line 751, in install_product initmethod(context) File "C:\Zope-Instance\Products\NauScheduler\__init__.py", line 59, in initialize schedule.ignoreLater() AttributeError: ignoreLater
Hi Barry, Dunno what NauScheduler is, but you should contact the product author to find out what the problem is... cheers, Chris Barry Drake wrote:
I'm getting an attribute error when I try to run Zope 2.7.6, which is occurring when NauScheduler starts up:
AttributeError: ignoreLater
I am using NauScheduler on other windows and unix systems. But have not seen this problem before. Can anyone help? Below is the traceback.
Thanks.
Barry Drake
2005-08-25T17:15:00 ERROR(200) Zope Couldn't install NauScheduler
Traceback (most recent call last):
File "C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py", line 751, in install_product
initmethod(context)
File "C:\Zope-Instance\Products\NauScheduler\__init__.py", line 59, in initialize
schedule.ignoreLater()
AttributeError: ignoreLater
Traceback (most recent call last):
File "C:\Program Files\Zope-2.7.6-final\lib\python\Zope\Startup\run.py", line 50, in ?
run()
File "C:\Program Files\Zope-2.7.6-final\lib\python\Zope\Startup\run.py", line 19, in run
start_zope(opts.configroot)
File "C:\Program Files\Zope-2.7.6-final\lib\python\Zope\Startup\__init__.py", line 52, in start_zope
starter.startZope()
File "C:\Program Files\Zope-2.7.6-final\lib\python\Zope\Startup\__init__.py", line 231, in startZope
Zope.startup()
File "C:\Program Files\Zope-2.7.6-final\lib\python\Zope\__init__.py", line 47, in startup
_startup()
File "C:\Program Files\Zope-2.7.6-final\lib\python\Zope\App\startup.py", line 96, in startup
OFS.Application.initialize(application)
File "C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py", line 278, in initialize
initializer.initialize()
File "C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py", line 305, in initialize
self.install_products()
File "C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py", line 573, in install_products
return install_products(app)
File "C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py", line 604, in install_products
folder_permissions, raise_exc=debug_mode)
File "C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py", line 751, in install_product
initmethod(context)
File "C:\Zope-Instance\Products\NauScheduler\__init__.py", line 59, in initialize
schedule.ignoreLater()
AttributeError: ignoreLater
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Chris, Tried that first. The email on the page for this product returns and unknown recipient. Also, there is zero documentation. Thanks. Barry --- Chris Withers wrote:
Hi Barry,
Dunno what NauScheduler is, but you should contact the product author to find out what the problem is...
cheers,
Chris
Barry Drake wrote:
I'm getting an attribute error when I try to run Zope 2.7.6, which is occurring when NauScheduler starts up:
AttributeError: ignoreLater
I am using NauScheduler on other windows and unix systems. But have not seen this problem before. Can anyone help? Below is the traceback.
Thanks.
Barry Drake
2005-08-25T17:15:00 ERROR(200) Zope Couldn't install NauScheduler
Traceback (most recent call last):
File "C:\Program
Files\Zope-2.7.6-final\lib\python\OFS\Application.py",
line 751, in install_product
initmethod(context)
File
"C:\Zope-Instance\Products\NauScheduler\__init__.py",
line 59, in initialize
schedule.ignoreLater()
AttributeError: ignoreLater
Traceback (most recent call last):
File "C:\Program
Files\Zope-2.7.6-final\lib\python\Zope\Startup\run.py",
line 50, in ?
run()
File "C:\Program
Files\Zope-2.7.6-final\lib\python\Zope\Startup\run.py",
line 19, in run
start_zope(opts.configroot)
File "C:\Program
Files\Zope-2.7.6-final\lib\python\Zope\Startup\__init__.py",
line 52, in start_zope
starter.startZope()
File "C:\Program
Files\Zope-2.7.6-final\lib\python\Zope\Startup\__init__.py",
line 231, in startZope
Zope.startup()
File "C:\Program
Files\Zope-2.7.6-final\lib\python\Zope\__init__.py",
line 47, in startup
_startup()
File "C:\Program
Files\Zope-2.7.6-final\lib\python\Zope\App\startup.py",
line 96, in startup
OFS.Application.initialize(application)
File "C:\Program
Files\Zope-2.7.6-final\lib\python\OFS\Application.py",
line 278, in initialize
initializer.initialize()
File "C:\Program
Files\Zope-2.7.6-final\lib\python\OFS\Application.py",
line 305, in initialize
self.install_products()
File "C:\Program
Files\Zope-2.7.6-final\lib\python\OFS\Application.py",
line 573, in install_products
return install_products(app)
File "C:\Program
Files\Zope-2.7.6-final\lib\python\OFS\Application.py",
line 604, in install_products
folder_permissions, raise_exc=debug_mode)
File "C:\Program
Files\Zope-2.7.6-final\lib\python\OFS\Application.py",
line 751, in install_product
initmethod(context)
File
"C:\Zope-Instance\Products\NauScheduler\__init__.py",
line 59, in initialize
schedule.ignoreLater()
AttributeError: ignoreLater
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
-- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Barry Drake wrote:
Chris, Tried that first. The email on the page for this product returns and unknown recipient. Also, there is zero documentation.
In that situation, I'd look for an alternative product ;-) What are you looking to do? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Thanks Chris, This was solved a few days ago. Someone (sorry don't recall the name) on the list pointed me to the ScheduleList object created by NauSchedule at the root of Zope. After removing that, I was able to reenstall the product and start using it again. NauSchedule is a very cool product for scheduling automatic tasks, though there are only three sentences of documentation for installation. Cheers! Barry --- Chris Withers <chris@simplistix.co.uk> wrote:
Barry Drake wrote:
Chris, Tried that first. The email on the page for this product returns and unknown recipient. Also, there is zero documentation.
In that situation, I'd look for an alternative product ;-)
What are you looking to do?
Chris
-- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Barry Drake wrote:
NauSchedule is a very cool product for scheduling automatic tasks, though there are only three sentences of documentation for installation.
You may wish to have a look at Stepper and/or ZASync ;-) cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Thank you. I certainly will check those out. Barry --- Chris Withers wrote:
Barry Drake wrote:
NauSchedule is a very cool product for scheduling automatic tasks, though there are only three
sentences
of documentation for installation.
You may wish to have a look at Stepper and/or ZASync ;-)
cheers,
Chris
-- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Hi Barry,
I'm getting an attribute error when I try to run Zope 2.7.6, which is occurring when NauScheduler starts up:
AttributeError: ignoreLater
[...]
schedule.ignoreLater()
AttributeError: ignoreLater
It means that the object schedule doesn't have or can't access a method called ignoreLater. With "it can't access" I mean that the object is there, but it is broken. Looking at the source code of the NauScheduler, I saw that the __init__.py file checks for an instance of the "ScheduleList" class, which has the same id and if I'm not wrong it is created the first time that you create a NauSchedulder object in the ZMI, then the absolute path of the new created object is added to a path list inside the "ScheduleList" object. So, it means that somehow you already tried to create a NauScheduler Object, but something when wrong causing either the creation of a broken object or the object wasn't created at all, but its path was stored in the "ScheduleList". And I think that's why you get "AttributeError: ignoreLater" because "None" or a broken object don't have or can't access the ignoreLater method. So, my suggestion is: 1) Make a backup of your Data.fs 2) Remove the NauScheduler Product from your Products folder. 3) Restart Zope 4) Remove the NauScheduler objects 5) Remove the ScheduleList object. 6) Stop Zope 7) Move the NauScheduler again to the Products folder 8) Restart zope 9) Watch at the console to see if an error is printed 10) If no errors are printed, then try to create a NauScheduler object and see if it works.
I am using NauScheduler on other windows and unix systems. But have not seen this problem before. Can anyone help? Below is the traceback.
Another possibility is that you are using a Data.fs comming from a unix system into a Windows XP PC and somehow the import of the instances wasn't successful. If this is the case, the question is: did you make sure to first install all the products you are using in linux before moving the Data.fs? But I'm especulating here since you didn't give details about the installation (ie: was it a clean zope installation or did you migrate a Data.fs from unix to windows?) Regards, Josef
Josef, Thank you. I had done everything you mentioned, but didn't see the ScheduleList object located at the root level of Zope. Removing that solved the problem. Thanks again. Barry --- Josef Meile wrote:
Hi Barry,
I'm getting an attribute error when I try to run Zope 2.7.6, which is occurring when NauScheduler starts up:
AttributeError: ignoreLater
[...]
schedule.ignoreLater()
AttributeError: ignoreLater
It means that the object schedule doesn't have or can't access a method called ignoreLater. With "it can't access" I mean that the object is there, but it is broken.
Looking at the source code of the NauScheduler, I saw that the __init__.py file checks for an instance of the "ScheduleList" class, which has the same id and if I'm not wrong it is created the first time that you create a NauSchedulder object in the ZMI, then the absolute path of the new created object is added to a path list inside the "ScheduleList" object. So, it means that somehow you already tried to create a NauScheduler Object, but something when wrong causing either the creation of a broken object or the object wasn't created at all, but its path was stored in the "ScheduleList". And I think that's why you get "AttributeError: ignoreLater" because "None" or a broken object don't have or can't access the ignoreLater method.
So, my suggestion is:
1) Make a backup of your Data.fs 2) Remove the NauScheduler Product from your Products folder. 3) Restart Zope 4) Remove the NauScheduler objects 5) Remove the ScheduleList object. 6) Stop Zope 7) Move the NauScheduler again to the Products folder 8) Restart zope 9) Watch at the console to see if an error is printed 10) If no errors are printed, then try to create a NauScheduler object and see if it works.
I am using NauScheduler on other windows and unix systems. But have not seen this problem before. Can anyone help? Below is the traceback.
Another possibility is that you are using a Data.fs comming from a unix system into a Windows XP PC and somehow the import of the instances wasn't successful. If this is the case, the question is: did you make sure to first install all the products you are using in linux before moving the Data.fs? But I'm especulating here since you didn't give details about the installation (ie: was it a clean zope installation or did you migrate a Data.fs from unix to windows?)
Regards, Josef
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Barry Drake -
Chris Withers -
Dennis Allison -
Josef Meile