All: I'm getting this error message every time I try to start Zope: /var/www/zope/lib/python/ts_regex.py:87: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /usr/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) What gives, it was working fine then I got a call saying the site wasn't responding. So I restarted Zope and got this. Any help will be greatly appreciated. ============================================ Todd
Todd, You have installed a product which use the old (deprecated) regex module rather than the current re module. It should not be a problem (it is only a warning). You may want to find the offending product and either upgrade to a newer version that uses re or modify the product to use re. Your "zope not responding" problem is not related to this particular message. On Thu, 28 Aug 2003, Todd Loomis, (SAIC) wrote:
All:
I'm getting this error message every time I try to start Zope:
/var/www/zope/lib/python/ts_regex.py:87: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /usr/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning)
What gives, it was working fine then I got a call saying the site wasn't responding. So I restarted Zope and got this. Any help will be greatly appreciated.
============================================
Todd
Thanks, however the site has been running for over a year and I've not installed any products recently! ============================================ Todd -----Original Message----- From: Dennis Allison [mailto:allison@sumeru.stanford.EDU] Sent: Thursday, August 28, 2003 12:30 PM To: Todd Loomis, (SAIC) Cc: Zope@zope.org Subject: Re: [Zope] Help Error!!! Todd, You have installed a product which use the old (deprecated) regex module rather than the current re module. It should not be a problem (it is only a warning). You may want to find the offending product and either upgrade to a newer version that uses re or modify the product to use re. Your "zope not responding" problem is not related to this particular message. On Thu, 28 Aug 2003, Todd Loomis, (SAIC) wrote:
All:
I'm getting this error message every time I try to start Zope:
/var/www/zope/lib/python/ts_regex.py:87: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /usr/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning)
What gives, it was working fine then I got a call saying the site wasn't responding. So I restarted Zope and got this. Any help will be greatly appreciated.
============================================
Todd
Hmmm... I suppose it could be due to asn error routine that only imports regex when called... You might want to grep over the source and find where it gets imported. Where to look, of course, depends upon your zope setup. BTW, you didn't say which zope version you are using. Incidentally, the deprecation warning comes from python and not from zope. On Thu, 28 Aug 2003, Todd Loomis, (SAIC) wrote:
Thanks, however the site has been running for over a year and I've not installed any products recently!
============================================ Todd
-----Original Message----- From: Dennis Allison [mailto:allison@sumeru.stanford.EDU] Sent: Thursday, August 28, 2003 12:30 PM To: Todd Loomis, (SAIC) Cc: Zope@zope.org Subject: Re: [Zope] Help Error!!!
Todd, You have installed a product which use the old (deprecated) regex module rather than the current re module. It should not be a problem (it is only a warning). You may want to find the offending product and either upgrade to a newer version that uses re or modify the product to use re.
Your "zope not responding" problem is not related to this particular message.
On Thu, 28 Aug 2003, Todd Loomis, (SAIC) wrote:
All:
I'm getting this error message every time I try to start Zope:
/var/www/zope/lib/python/ts_regex.py:87: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /usr/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning)
What gives, it was working fine then I got a call saying the site wasn't responding. So I restarted Zope and got this. Any help will be greatly appreciated.
============================================
Todd
_______________________________________________ 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 )
On Thu, Aug 28, 2003 at 09:42:52AM -0700, Dennis Allison wrote:
Hmmm... I suppose it could be due to asn error routine that only imports regex when called... You might want to grep over the source and find where it gets imported. Where to look, of course, depends upon your zope setup. BTW, you didn't say which zope version you are using.
Incidentally, the deprecation warning comes from python and not from zope.
My bet is that he's running an older version of zope... <= 2.5.x reported this warning routinely IIRC... but he hasn't said so that's just a guess. Todd, if you check the logs I think you will see that this "error" has been reported every time zope starts, for as long as you've been running it. BTW, you cross-posted... that's generally not approved of here. I'll follow up in this thread and ignore the one on zope-dev. -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's CARBONATED GYNECOLOGIST ACTUATOR! (random hero from isometric.spaceninja.com)
Following up from the thread on zope-dev... keeping it on this list now...
What have you done to verify that zope isn't running?
When I do a start it comes back with these warnings in the log files and when I try to load the site it gives me a proxy error.
ok, the proxy error is more interesting... Are you running behind apache or some other proxy server?
What platform are you on?
Redhat 7.2
OK. try this at the command line: ps ax | grep py You should see several python processes running. What do you get? Also if you have links or lynx or wget installed, you should be able to test the zope server directly from the command line, like so: links http://localhost:8080 lynx http://localhost:8080 (either of those should show you the zope welcome page) wget http://localhost:8080 (that should download the zope welcome page to a file)
What version of Zope?
2.4.3
ok, that explains the deprecation warnings. Forget about them... they're not relevant... REALLY. Zope 2.4.3 *always* gave this warning. -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's UN-PILL HATER! (random hero from isometric.spaceninja.com)
See Below -----Original Message----- From: zope-bounces@zope.org [mailto:zope-bounces@zope.org] On Behalf Of Paul Winkler Sent: Thursday, August 28, 2003 12:59 PM To: Zope@zope.org Subject: Re: [Zope] Help Error!!! Following up from the thread on zope-dev... keeping it on this list now...
What have you done to verify that zope isn't running?
When I do a start it comes back with these warnings in the log files and when I try to load the site it gives me a proxy error.
ok, the proxy error is more interesting... Are you running behind apache or some other proxy server? Apache
What platform are you on?
Redhat 7.2
OK. try this at the command line: ps ax | grep py You should see several python processes running. What do you get? 1281 pts/0 S 0:00 grep py Also if you have links or lynx or wget installed, you should be able to test the zope server directly from the command line, like so: links http://localhost:8080 lynx http://localhost:8080 (either of those should show you the zope welcome page) wget http://localhost:8080 (that should download the zope welcome page to a file) Looking up localhost:8080 localhost:8080 Making HTTP connection to localhost:8080 Alert!: Unable to connect to remote host. lynx: Can't access startfile http://localhost:8080/
What version of Zope?
2.4.3
ok, that explains the deprecation warnings. Forget about them... they're not relevant... REALLY. Zope 2.4.3 *always* gave this warning. -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's UN-PILL HATER! (random hero from isometric.spaceninja.com) _______________________________________________ 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 )
On Thu, Aug 28, 2003 at 01:07:56PM -0400, Todd Loomis, (SAIC) wrote:
You should see several python processes running. What do you get? 1281 pts/0 S 0:00 grep py
OK, zope is definitely not running. What command do you use to start zope? is it the usual "start" shell script? If so, please show the contents of that script. I'd like to see what startup options are being used. Next, please give *all* console output that you get from that command. And please give complete log output starting from when you try to start zope. That should tell us something... -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's MECHA RANDY SPOT-WELDER! (random hero from isometric.spaceninja.com)
participants (3)
-
Dennis Allison -
Paul Winkler -
Todd Loomis, (SAIC)