Article View: news.software.nntp
Article #87326Re: PyClean installation
From: Steve Crook
Date: Thu, 14 Jan 2016 22:18
Date: Thu, 14 Jan 2016 22:18
44 lines
2264 bytes
2264 bytes
On Thu, 14 Jan 2016 21:45:10 +0100, Julien ΓLIE wrote in
Message-Id: <n791cm$14v$1@news.trigofacile.com>:
> Hmmm, looking at ~/pyclean/log/traceback, I see:
>
> Traceback (most recent call last):
> File "/home/news/bin/filter/filter_innd.py", line 302, in filter_art
> return self.pyfilter.filter(art)
> File "/home/news/bin/filter/filter_innd.py", line 808, in filter
> if self.emp_phn.add(fodder + ngs):
> File "/home/news/bin/filter/filter_innd.py", line 1180, in add
> h = md5(content).digest()
> TypeError: 'module' object is not callable
>
>
> Do you know how to fix that?
Hi Julien,
Thanks again for taking the time to look at this. The error is caused
by a bad import against Python 2.4. The fix is:
crooks@fleegle:~/pyclean-git/pyclean$ git diff
diff --git a/pyclean/pyclean.py b/pyclean/pyclean.py
index eaaf1be..d8f8110 100644
--- a/pyclean/pyclean.py
+++ b/pyclean/pyclean.py
@@ -23,7 +23,7 @@ except ImportError:
try:
from hashlib import md5
except ImportError:
- import md5
+ from md5 import md5
# First, define some high-level date/time functions
def now():
--
What shall we use
To fill the empty spaces
Where we used to talk?
Technical Details
Message-ID:
<slrnn9g7l6.lfk.steve@fleegle.mixmin.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mailReferences:
<n4km8u$1ra$1@news.trigofacile.com> <slrnn95jel.lfk.steve@fleegle.mixmin.net> <slrnn9f49r.lfk.steve@fleegle.mixmin.net> <n791cm$14v$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnn9g7l6.lfk.steve@fleegle.mixmin.net> Subject: Re: PyClean installation Date: Thu, 14 Jan 2016 22:18:14 +0000 From: Steve Crook <steve@mixmin.net> References: <n4km8u$1ra$1@news.trigofacile.com> <slrnn95jel.lfk.steve@fleegle.mixmin.net> <slrnn9f49r.lfk.steve@fleegle.mixmin.net> <n791cm$14v$1@news.trigofacile.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail Newsgroups: news.software.nntp Organization: Mixmin Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 14 Jan 2016 22:18:14 -0000 (UTC) Injection-Info: news.mixmin.net; posting-host="a9bc96ea220dfec4647fda15f105e0f4c0b75cf6"; logging-data="3945"; mail-complaints-to="abuse@mixmin.net" User-Agent: slrn/pre1.0.3-6 (Linux) X-Received-Body-CRC: 1618974761 X-Received-Bytes: 2129