首页 新闻 搜索 专区 学院

初用python,eclipse导入项目时报错。

1
悬赏园豆:5 [已解决问题] 解决于 2014-11-24 17:56

Finding files... done.
Importing test modules ... Traceback (most recent call last):
File "D:\Program Files\eclipse\plugins\org.python.pydev.debug_2.5.0.2012040618\pysrc\pydev_runfiles.py", line 307, in __get_module_from_str
mod = __import__(modname)
File "D:\program\Traffic_WEB\源代码\监控子系统\ITMManage\alarm_pb2.py", line 4, in <module>
from google.protobuf import descriptor as _descriptor
ImportError: No module named google.protobuf
ERROR: Module: alarm_pb2 could not be imported (file: D:/program/Traffic_WEB/源代码/监控子系统/ITMManage/alarm_pb2.py).
Traceback (most recent call last):
File "D:\Program Files\eclipse\plugins\org.python.pydev.debug_2.5.0.2012040618\pysrc\pydev_runfiles.py", line 307, in __get_module_from_str
mod = __import__(modname)
File "D:\program\Traffic_WEB\源代码\监控子系统\ITMManage\cmd_pb2.py", line 4, in <module>
from google.protobuf import descriptor as _descriptor
ImportError: No module named google.protobuf
ERROR: Module: cmd_pb2 could not be imported (file: D:/program/Traffic_WEB/源代码/监控子系统/ITMManage/cmd_pb2.py).
Traceback (most recent call last):
File "D:\Program Files\eclipse\plugins\org.python.pydev.debug_2.5.0.2012040618\pysrc\pydev_runfiles_xml_rpc.py", line 131, in run
self.server.notifyCommands(commands)
File "D:\Program Files\python\lib\xmlrpclib.py", line 1224, in __call__
return self.__send(self.__name, args)
File "D:\Program Files\python\lib\xmlrpclib.py", line 1578, in __request
verbose=self.__verbose
File "D:\Program Files\python\lib\xmlrpclib.py", line 1264, in request
return self.single_request(host, handler, request_body, verbose)
File "D:\Program Files\python\lib\xmlrpclib.py", line 1297, in single_request
return self.parse_response(response)
File "D:\Program Files\python\lib\xmlrpclib.py", line 1473, in parse_response
return u.close()
File "D:\Program Files\python\lib\xmlrpclib.py", line 793, in close
raise Fault(**self._stack[0])
Fault: <Fault 0: u'Failed to read XML-RPC request: 1 \u5b57\u8282\u7684 UTF-8 \u5e8f\u5217\u7684\u5b57\u8282 1 \u65e0\u6548\u3002'>
Traceback (most recent call last):
File "D:\Program Files\eclipse\plugins\org.python.pydev.debug_2.5.0.2012040618\pysrc\pydev_runfiles_xml_rpc.py", line 131, in run
self.server.notifyCommands(commands)
File "D:\Program Files\python\lib\xmlrpclib.py", line 1224, in __call__
return self.__send(self.__name, args)
File "D:\Program Files\python\lib\xmlrpclib.py", line 1578, in __request
verbose=self.__verbose
File "D:\Program Files\python\lib\xmlrpclib.py", line 1264, in request
return self.single_request(host, handler, request_body, verbose)
File "D:\Program Files\python\lib\xmlrpclib.py", line 1297, in single_request
return self.parse_response(response)
File "D:\Program Files\python\lib\xmlrpclib.py", line 1473, in parse_response
return u.close()
File "D:\Program Files\python\lib\xmlrpclib.py", line 793, in close
raise Fault(**self._stack[0])
Fault: <Fault 0: u'Failed to read XML-RPC request: 1 \u5b57\u8282\u7684 UTF-8 \u5e8f\u5217\u7684\u5b57\u8282 1 \u65e0\u6548\u3002'>
Traceback (most recent call last):
File "D:\Program Files\eclipse\plugins\org.python.pydev.debug_2.5.0.2012040618\pysrc\pydev_runfiles.py", line 307, in __get_module_from_str
mod = __import__(modname)
File "D:\program\Traffic_WEB\源代码\监控子系统\ITMManage\config.py", line 5, in <module>
from controler import *
File "D:\program\Traffic_WEB\源代码\监控子系统\ITMManage\controler\commonhandler.py", line 5, in <module>
from database import User
File "D:\program\Traffic_WEB\源代码\监控子系统\ITMManage\database.py", line 23, in <module>
from config import db_setting
ImportError: cannot import name db_setting
ERROR: Module: config could not be imported (file: D:/program/Traffic_WEB/源代码/监控子系统/ITMManage/config.py).
Traceback (most recent call last):
File "D:\Program Files\eclipse\plugins\org.python.pydev.debug_2.5.0.2012040618\pysrc\pydev_runfiles_xml_rpc.py", line 131, in run
self.server.notifyCommands(commands)
File "D:\Program Files\python\lib\xmlrpclib.py", line 1224, in __call__
Traceback (most recent call last):
return self.__send(self.__name, args)
File "D:\Program Files\eclipse\plugins\org.python.pydev.debug_2.5.0.2012040618\pysrc\pydev_runfiles.py", line 307, in __get_module_from_str
File "D:\Program Files\python\lib\xmlrpclib.py", line 1578, in __request
verbose=self.__verbose
mod = __import__(modname)
File "D:\Program Files\python\lib\xmlrpclib.py", line 1264, in request
File "D:\program\Traffic_WEB\源代码\监控子系统\ITMManage\database.py", line 23, in <module>
return self.single_request(host, handler, request_body, verbose)
File "D:\Program Files\python\lib\xmlrpclib.py", line 1297, in single_request
from config import db_setting
return self.parse_response(response)
File "D:\program\Traffic_WEB\源代码\监控子系统\ITMManage\config.py", line 5, in <module>
File "D:\Program Files\python\lib\xmlrpclib.py", line 1473, in parse_response
return u.close()
from controler import *
File "D:\Program Files\python\lib\xmlrpclib.py", line 793, in close
File "D:\program\Traffic_WEB\源代码\监控子系统\ITMManage\controler\sendhandler.py", line 1, in <module>
raise Fault(**self._stack[0])
Fault: <Fault 0: u'Failed to read XML-RPC request: 1 \u5b57\u8282\u7684 UTF-8 \u5e8f\u5217\u7684\u5b57\u8282 1 \u65e0\u6548\u3002'>
import zmq
ImportError: No module named zmq
ERROR: Module: database could not be imported (file: D:/program/Traffic_WEB/源代码/监控子系统/ITMManage/database.py).
Traceback (most recent call last):
File "D:\Program Files\eclipse\plugins\org.python.pydev.debug_2.5.0.2012040618\pysrc\pydev_runfiles.py", line 307, in __get_module_from_str
mod = __import__(modname)
File "D:\program\Traffic_WEB\源代码\监控子系统\ITMManage\main.py", line 3, in <module>
import zmq
ImportError: No module named zmq
ERROR: Module: main could not be imported (file: D:/program/Traffic_WEB/源代码/监控子系统/ITMManage/main.py).
Traceback (most recent call last):
File "D:\Program Files\eclipse\plugins\org.python.pydev.debug_2.5.0.2012040618\pysrc\pydev_runfiles.py", line 307, in __get_module_from_str
mod = __import__(modname)
File "D:\program\Traffic_WEB\源代码\监控子系统\ITMManage\recvSocket.py", line 2, in <module>
import zmq
Traceback (most recent call last):
ImportError: No module named zmq
File "D:\Program Files\eclipse\plugins\org.python.pydev.debug_2.5.0.2012040618\pysrc\pydev_runfiles_xml_rpc.py", line 131, in run
ERROR: Module: recvSocket could not be imported (file: D:/program/Traffic_WEB/源代码/监控子系统/ITMManage/recvSocket.py).
self.server.notifyCommands(commands)
File "D:\Program Files\python\lib\xmlrpclib.py", line 1224, in __call__
return self.__send(self.__name, args)
File "D:\Program Files\python\lib\xmlrpclib.py", line 1578, in __request
Traceback (most recent call last):
File "D:\Program Files\eclipse\plugins\org.python.pydev.debug_2.5.0.2012040618\pysrc\pydev_runfiles.py", line 307, in __get_module_from_str
verbose=self.__verbose
mod = __import__(modname)
File "D:\Program Files\python\lib\xmlrpclib.py", line 1264, in request
File "D:\program\Traffic_WEB\源代码\监控子系统\ITMManage\controler\sendhandler.py", line 1, in <module>
return self.single_request(host, handler, request_body, verbose)
import zmq
File "D:\Program Files\python\lib\xmlrpclib.py", line 1297, in single_request
ImportError: No module named zmq
ERROR: Module: controler.sendhandler could not be imported (file: D:/program/Traffic_WEB/源代码/监控子系统/ITMManage/controler/sendhandler.py).
return self.parse_response(response)
done.
File "D:\Program Files\python\lib\xmlrpclib.py", line 1473, in parse_response
return u.close()
File "D:\Program Files\python\lib\xmlrpclib.py", line 793, in close
raise Fault(**self._stack[0])
Fault: <Fault 0: u'Failed to read XML-RPC request: 1 \u5b57\u8282\u7684 UTF-8 \u5e8f\u5217\u7684\u5b57\u8282 1 \u65e0\u6548\u3002'>

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
Traceback (most recent call last):
File "D:\Program Files\eclipse\plugins\org.python.pydev.debug_2.5.0.2012040618\pysrc\pydev_runfiles_xml_rpc.py", line 131, in run
self.server.notifyCommands(commands)
File "D:\Program Files\python\lib\xmlrpclib.py", line 1224, in __call__
return self.__send(self.__name, args)
File "D:\Program Files\python\lib\xmlrpclib.py", line 1578, in __request
verbose=self.__verbose
File "D:\Program Files\python\lib\xmlrpclib.py", line 1264, in request
return self.single_request(host, handler, request_body, verbose)
File "D:\Program Files\python\lib\xmlrpclib.py", line 1297, in single_request
return self.parse_response(response)
File "D:\Program Files\python\lib\xmlrpclib.py", line 1473, in parse_response
return u.close()
File "D:\Program Files\python\lib\xmlrpclib.py", line 793, in close
raise Fault(**self._stack[0])
Fault: <Fault 0: u'Failed to read XML-RPC request: 1 \u5b57\u8282\u7684 UTF-8 \u5e8f\u5217\u7684\u5b57\u8282 1 \u65e0\u6548\u3002'>

以诗答诗的主页 以诗答诗 | 初学一级 | 园豆:125
提问于:2014-10-13 15:13
< >
分享
最佳答案
0

这。。。至少整理下才把错误信息发出来吧??

收获园豆:5
Set sail | 小虾三级 |园豆:540 | 2014-10-17 10:27
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册