AIX 下 pyamf 无法使用



AIX 下 pyamf 无法使用

解决

已经接解决,在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](root.md) Connecting to http://localhost:8001
2010-05-25 11:56:13,312 DEBUG [root](root.md) Referer: None
2010-05-25 11:56:13,313 DEBUG [root](root.md) User-Agent: PyAMF/0.5.1
2010-05-25 11:56:13,313 DEBUG [root](root.md) Adding request myadd(1, 2)
2010-05-25 11:56:13,313 DEBUG [root](root.md) Executing single request: /1
2010-05-25 11:56:13,313 DEBUG [root](root.md) AMF version: 0
2010-05-25 11:56:13,313 DEBUG [root](root.md) Client type: 0
2010-05-25 11:56:13,317 DEBUG [root](root.md) Sending POST request to 
2010-05-25 11:56:13,319 DEBUG [root](root.md) Waiting for response...
2010-05-25 11:56:13,371 DEBUG [root](root.md) Got response status: 200
2010-05-25 11:56:13,371 DEBUG [root](root.md) Content-Type: application/x-amf
2010-05-25 11:56:13,372 DEBUG [root](root.md) Content-Length: 6
2010-05-25 11:56:13,372 DEBUG [root](root.md) Server: PyAMF/0.5.1 CPython/2.6.5
2010-05-25 11:56:13,372 DEBUG [root](root.md) Read 6 bytes for the response
2010-05-25 11:56:13,373 DEBUG [root](root.md) Response: 

2010-05-25 11:56:13,373 DEBUG [root](root.md) Removing request: /1
Traceback (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''"