AIX下的pyamf就是会报错,无奈了

bigzhu posted @ May 25, 2010 09:54:00 AM , 1063 阅读

 已经接解决,在AIX上必须关闭c扩展的方式来编译,估计是c扩展有问题.

To disable the installation of the C-extension, supply the``--disable-ext`` option::

    python setup.py install --disable-ext

服务端部署在AIX上,调用貌似一切正常,但是实际客户端无法取到返回的数据

2010-05-25 11:56:13,312 INFO  [root] Connecting to http://localhost:80012010-05-25 11:56:13,312 DEBUG [root] Referer: None2010-05-25 11:56:13,313 DEBUG [root] User-Agent: PyAMF/0.5.12010-05-25 11:56:13,313 DEBUG [root] Adding request myadd(1, 2)2010-05-25 11:56:13,313 DEBUG [root] Executing single request: /12010-05-25 11:56:13,313 DEBUG [root] AMF version: 02010-05-25 11:56:13,313 DEBUG [root] Client type: 02010-05-25 11:56:13,317 DEBUG [root] Sending POST request to 2010-05-25 11:56:13,319 DEBUG [root] Waiting for response...2010-05-25 11:56:13,371 DEBUG [root] Got response status: 2002010-05-25 11:56:13,371 DEBUG [root] Content-Type: application/x-amf2010-05-25 11:56:13,372 DEBUG [root] Content-Length: 62010-05-25 11:56:13,372 DEBUG [root] Server: PyAMF/0.5.1 CPython/2.6.52010-05-25 11:56:13,372 DEBUG [root] Read 6 bytes for the response2010-05-25 11:56:13,373 DEBUG [root] Response: 

2010-05-25 11:56:13,373 DEBUG [root] Removing request: /1Traceback (most recent call last):  File "test2.py", line 16, in     print service2(1,2)  File "build/bdist.aix-5.3/egg/pyamf/remoting/client/__init__.py", line 116, in __call__  File "build/bdist.aix-5.3/egg/pyamf/remoting/client/__init__.py", line 105, in _call  File "build/bdist.aix-5.3/egg/pyamf/remoting/client/__init__.py", line 427, in execute_single  File "build/bdist.aix-5.3/egg/pyamf/remoting/__init__.py", line 173, in __getitem__KeyError: "''/1''"


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter