vinay-shetty / python-calais

Automatically exported from code.google.com/p/python-calais
0 stars 0 forks source link

not compatible with 2.4 #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run calais.py with python 2.4

What is the expected output? What do you see instead?
expected output is successful completion, instead is an exception due to
hashlib module not being found

What version of the product are you using? On what operating system?
revision 5 of python-calais, python 2.4, fedora core 5

Please provide any additional information below.
using an alternative hash function for the content_id method will fix it:

try:
  import hashlib
except:
  return hex(hash(text))

or whatever..

Original issue reported on code.google.com by jasonmadams on 30 May 2008 at 2:10

GoogleCodeExporter commented 9 years ago
I realize the prereqs state python 2.5, but 2.4 works aside from that method.

Original comment by jasonmadams on 30 May 2008 at 2:16

GoogleCodeExporter commented 9 years ago

Original comment by s3x...@gmail.com on 14 Jan 2009 at 2:58