Python XML-RPC问题,请多指教

陶邦仁 发布于 2012/12/25 11:23
阅读 603
收藏 0
__author__ = 'Administrator'

import dba
import SimpleXMLRPCServer

if __name__ == '__main__':
    server = SimpleXMLRPCServer.SimpleXMLRPCServer(('localhost', 7000))
    server.register_function(dba.connect)
    server.serve_forever() 
对对对运行时会报错,但是Debug时是正常的。
输出:
"D:\Program Files\Python27\python.exe" D:/niux_bi/utils/dbaserver.py
Traceback (most recent call last):
  File "D:/niux_bi/utils/dbaserver.py", line 4, in <module>
    import SimpleXMLRPCServer
  File "D:\Program Files\Python27\lib\SimpleXMLRPCServer.py", line 102, in <module>
    import xmlrpclib
  File "D:\Program Files\Python27\lib\xmlrpclib.py", line 146, in <module>
    import gzip
  File "D:\Program Files\Python27\lib\gzip.py", line 36, in <module>
    class GzipFile(io.BufferedIOBase):
AttributeError: 'module' object has no attribute 'BufferedIOBase'
加载中
0
陶邦仁
陶邦仁
顶起。。。
0
MyNet
MyNet
顶起.....
返回顶部
顶部