我正在尝试在Windows 7 x64上调试OpenERP 6.1。我安装了Python 2.7 x86,当我尝试从Eclipse运行它时,我得到了下面的跟踪。我也尝试过使用32位版本的Eclipse。
我可以调试OpenERP 6.0.3。
有什么想法吗?我怎么知道什么模块试图使用Python 2.6? (我是python和Eclipse的新手。)
Traceback (most recent call last):
File "E:\Downloads\eclipse-SDK-3.7-win32-x86_64\eclipse\plugins\org.python.pydev.debug_2.4.0.2012020116\pysrc\pydevd.py", line 3, in <module>
import pydev_imports
File "E:\Downloads\eclipse-SDK-3.7-win32-x86_64\eclipse\plugins\org.python.pydev.debug_2.4.0.2012020116\pysrc\pydev_imports.py", line 14, in <module>
from _pydev_SimpleXMLRPCServer import SimpleXMLRPCServer
File "E:\Downloads\eclipse-SDK-3.7-win32-x86_64\eclipse\plugins\org.python.pydev.debug_2.4.0.2012020116\pysrc\_pydev_SimpleXMLRPCServer.py", line 115, in <module>
import SocketServer
File "C:\Python27\lib\SocketServer.py", line 132, in <module>
import socket
File "C:\Python27\lib\socket.py", line 47, in <module>
import _socket
ImportError: Module use of python26.dll conflicts with this version of Python.
Fabio要求的输出sys.path:
C:\Python27
C:\Python27\DLLs
C:\Python27\Lib
C:\Python27\Lib\idlelib
C:\Python27\Scripts
C:\Python27\lib\lib-tk
C:\Python27\lib\plat-win
C:\Python27\lib\site-packages
C:\Python27\lib\site-packages\PIL
C:\Python27\lib\site-packages\Pythonwin
C:\Python27\lib\site-packages\python_dateutil-1.5-py2.7.egg
C:\Python27\lib\site-packages\pywebdav-0.9.4.1-py2.7.egg
C:\Python27\lib\site-packages\vobject-0.8.1c-py2.7.egg
C:\Python27\lib\site-packages\win32
C:\Python27\lib\site-packages\win32\lib
C:\Windows\system32\python27.zip
E:\Projects\openerp-6.1-1
从PyDev运行时,我得到同样的错误:
Traceback (most recent call last):
File "E:\Projects\openerp-6.1-1\test_output.py", line 3, in <module>
import socket
File "C:\Python27\lib\socket.py", line 47, in <module>
import _socket
ImportError: Module use of python26.dll conflicts with this version of Python.
答案 0 :(得分:1)
这里的第一件事就是从中调出调试器只是为了看错:
仅使用以下内容创建新文件:
import sys
print '\n'.join(sorted(sys.path))
import socket
从PyDev运行并将完整输出添加到您的问题中......