2011年2月20日星期日

wallproxy配置备注

环境:arch 2.6.37, python 2.7, wallproxy v038

安装参照了 http://code.google.com/p/wallproxy/wiki/wallproxyV038

使用时出现以下问题:

Exception happened during processing of request from ('127.0.0.1', 41862)
Traceback (most recent call last):
File "/usr/lib/python2.7/SocketServer.py", line 582, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.7/SocketServer.py", line 639, in __init__
self.handle()
File "/usr/lib/python2.7/BaseHTTPServer.py", line 337, in handle
self.handle_one_request()
File "/usr/lib/python2.7/BaseHTTPServer.py", line 325, in handle_one_request
method()
File "proxy.py", line 196, in do_METHOD
retval, data = handler(proxy, self.path, self.command, self.headers, payload)
File "/opt/wallproxy/local/util.py", line 147, in proxyFetch
data = encrypt(params, server['key'],smode)
File "/opt/wallproxy/local/util.py", line 124, in encrypt
CryptoObj=Wcrypto.Wcrypto(smode)
File "/opt/wallproxy/local/Wcrypto.py", line 80, in __init__
self.initstr(smode)
File "/opt/wallproxy/local/Wcrypto.py", line 144, in initstr
if (keysize>0):return self.init(cipher,mode,keysize,True)
File "/opt/wallproxy/local/Wcrypto.py", line 130, in init
else:raise ImportError('Crypto.Cipher.'+cipher+'no found')
ImportError: Crypto.Cipher.AESno found


解决方法:删除wallproxy安装目录local下的Crypto与_OpenSSL目录(上述目录是提供Windows系统使用的)