LocalFS DeprecationWarning
Hello, I just installed LocalFS on zope 2.4.1b1, but am now getting this error on start up: /usr/local/zope/2.4.1b1/lib/python/ts_regex.py:87: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /usr/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) ------ Any ideas... Many thanks Norman
LocalFS uses the old deprecated ts_regex.py module. With 2.4 this module is obsolet and no longer used from the Zope core. It will remain part of the Zope distribution for 3rd party products available for some time in the future but will maybe go away sometime. Andreas ----- Original Message ----- From: "Norman Khine" <khine@bmpublications.co.uk> To: "Zope Mailing List" <zope@zope.org> Sent: Thursday, November 15, 2001 10:12 Subject: [Zope] LocalFS DeprecationWarning
Hello, I just installed LocalFS on zope 2.4.1b1, but am now getting this error on start up:
/usr/local/zope/2.4.1b1/lib/python/ts_regex.py:87: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /usr/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) ------
Any ideas...
Many thanks
Norman
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
On Thu, Nov 15, 2001 at 10:17:40AM -0500, Andreas Jung wrote:
LocalFS uses the old deprecated ts_regex.py module. With 2.4 this module is obsolet and no longer used from the Zope core. It will remain part of the Zope distribution for 3rd party products available for some time in the future but will maybe go away sometime.
In other words: It's just a warning and you can safely ignore it. It will only become a problem if, sometime in the future, you upgrade to a version of python that no longer supplies the old regex module. The warning is there so developers (e.g. whoever created LocalFS) can update their code *before* it breaks. -- paul winkler home: http://www.slinkp.com music: http://www.reacharms.com calendars: http://www.calendargalaxy.com
Norman Khine wrote:
Hello, I just installed LocalFS on zope 2.4.1b1, but am now getting this error on start up:
/usr/local/zope/2.4.1b1/lib/python/ts_regex.py:87: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /usr/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning)
On www.easyleading.org you can download a version that uses the new re module -- _______________________________________________________________________ Andreas Heckel andreas@easyleading.org LINUX is like a wigwam...no gates...no windows and an apache inside ;-)
participants (4)
-
Andreas Heckel -
Andreas Jung -
Norman Khine -
Paul Winkler