Search squid archive

Re: Issue with getting python ICAP server running

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



regex was part of Python itself, but it's been deprecated for quite some time. Probably the easiest thing to do (i.e., no coding) would be to use a less recent version of Python; try 2.0, 2.1 or 1.6.

Cheers,


On 31/01/2008, at 6:43 AM, Mohamedk wrote:

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.

--
Mark Nottingham       mnot@xxxxxxxxxxxxx



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux