Re: [Zope] zeopack: No handlers could be found for logger "ZEO.zrpc"
Tim Peters wrote: Is it true that you don't know how to edit Python code? The first response to that message suggested adding: import logging logging.basicConfig() Have bugs for zeoup and zeopack been opened for these? I'm guessing they should both really use the stuff setup in zeo.conf... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ 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 )
Re: [Zope] zeopack: No handlers could be found for logger "ZEO.zrpc"
Thanks for the help. Adding the following (as suggested) resolved the problem: import logging logging.basicConfig() Regards Cameron ___ 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 )
Re: [Zope] zeopack: No handlers could be found for logger "ZEO.zrpc"
[Cameron Beattie] > When I run the following: > python /usr/lib/zope/bin/zeopack.py -d 20 -h localhost -p 8100 > > I get an error: > No handlers could be found for logger "ZEO.zrpc" As Dieter said, that's not an error in and of itself, it's just Python's logging module whining at you. ZEO.zrpc is trying to log a message of some sort, but the logging module hasn't been set up to accept the request. The message ZEO.zrpc is _trying_ to log may or may not be important. To find out, we'll have to see the message. > I have searched around and found a similar message at > http://mail.zope.org/pipermail/zope-dev/2005-December/026097.html (relating > to zeoup.py) but I didn't understand what needs to be done to remedy the > problem. Is it true that you don't know how to edit Python code? The first response to that message suggested adding: import logging logging.basicConfig() to the code, and it's hard to know what to say if you don't know how to do that. If you know how to use an editor, add those two lines to your copy of zeopack.py, for example immediately following its: if __name__ == "__main__": line. If those instructions don't make sense, show them to someone else ;-) > In the case of zeopack, the database is not packed i.e. the script doesn't > work. Finding out what the log message is may or may not reveal a cause for that. You should also look at your ZEO server's log file, since problems with the database will be logged there by the ZEO server code. In fact, if there _is_ a problem with the database file (e.g., it's corrupted in some way), the only useful information you're going to get will be in the server's log file, and ZEO.zrpc on the client side would just try to log a message saying that the server was unhappy. It's possible that's what's happening here, but not enough info to say for sure. > I am running Zope 2.8.2 with python 2.4.1. ___ 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 )
Re: [Zope] zeopack: No handlers could be found for logger "ZEO.zrpc"
Cameron Beattie wrote at 2006-1-19 17:29 +1300: >When I run the following: >python /usr/lib/zope/bin/zeopack.py -d 20 -h localhost -p 8100 > >I get an error: >No handlers could be found for logger "ZEO.zrpc" It's a warning only. You can ignore it. > ... >In the case of zeopack, the database is not packed i.e. the script doesn't >work. > >I am running Zope 2.8.2 with python 2.4.1. We use "zeopack" successfully: Zope 2.8.1, python 2.3.3. There will almost surely be no differences with respect to your versions. -- Dieter ___ 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 )
[Zope] zeopack: No handlers could be found for logger "ZEO.zrpc"
When I run the following: python /usr/lib/zope/bin/zeopack.py -d 20 -h localhost -p 8100 I get an error: No handlers could be found for logger "ZEO.zrpc" I have searched around and found a similar message at http://mail.zope.org/pipermail/zope-dev/2005-December/026097.html (relating to zeoup.py) but I didn't understand what needs to be done to remedy the problem. In the case of zeopack, the database is not packed i.e. the script doesn't work. I am running Zope 2.8.2 with python 2.4.1. Any help would be appreciated. Regards Cameron ___ 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 )