[squid-users] Issue with getting python ICAP server running

From: Mohamedk <[email protected]>
Date: Wed, 30 Jan 2008 14:43:20 -0500

Hello my name is Moe

I am not a 100% sure if this is the appropriate mailing list since the
problem i am having deals mainly about getting python ICAP up and
running. For some reason not all the modules required by ICAP are
available so i searched on google for each module and placed them in
/usr/local/lib/python2.5/site
-packages/. Here are the changes i have committed to the setup file:

export ICAP_PATH=`pwd`
export PYTHONPATH=$ICAP_PATH/medusa-20010416:$ICAP_PATH/proxylet:/usr/local/lib/python2.5/site-packages:/usr/local/lib/python2.5/
export http_proxy=192.168.0.1:80

After i downloaded most of the external modules for python i am stuck
at this error even though there is a token.py in site-packages.

# /tmp/icap_server/start_icap.py
/usr/local/lib/python2.5/site-packages/regsub.py:15:
DeprecationWarning: the regsub module is deprecated; please use
re.sub() DeprecationWarning)
 Traceback (most recent call last):
  File "/tmp/icap_server/start_icap.py", line 16, in <module>
    import filesys
  File "/tmp/icap_server/medusa-20010416/filesys.py", line 83, in <module>
     import regsub
  File "/usr/local/lib/python2.5/site-packages/regsub.py", line 20, in <module>
    import regex
  File "/usr/local/lib/python2.5/site-packages/regex.py", line 16, in <module>
     from Token import Token
ImportError: cannot import name Token

I would appreciate any help from you guys or just point me towards
some sort of howto.
Received on Wed Jan 30 2008 - 12:43:32 MST

This archive was generated by hypermail pre-2.1.9 : Fri Feb 01 2008 - 12:00:05 MST