6

我正在安装 Python 2.7,打开 erp 7.0 和 eclipse 进行编程,运行“openerp-server.py”时遇到了一些错误:

Traceback (most recent call last):
  File "F:\openerp-7.0-20130327-002325\openerp-server.py", line 2, in <module>
import openerp
  File "F:\openerp-7.0-20130327-002325\openerp\__init__.py", line 39, in <module>
import addons
  File "F:\openerp-7.0-20130327-002325\openerp\addons\__init__.py", line 38, in <module>
from openerp.modules import get_module_resource, get_module_path
  File "F:\openerp-7.0-20130327-002325\openerp\modules\__init__.py", line 27, in <module>
from . import db, graph, loading, migration, module, registry
  File "F:\openerp-7.0-20130327-002325\openerp\modules\graph.py", line 32, in <module>
import openerp.osv as osv
  File "F:\openerp-7.0-20130327-002325\openerp\osv\__init__.py", line 22, in <module>
import osv
  File "F:\openerp-7.0-20130327-002325\openerp\osv\osv.py", line 30, in <module>
import orm
  File "F:\openerp-7.0-20130327-002325\openerp\osv\orm.py", line 62, in <module>
import fields
  File "F:\openerp-7.0-20130327-002325\openerp\osv\fields.py", line 47, in <module>
import openerp.tools as tools
  File "F:\openerp-7.0-20130327-002325\openerp\tools\__init__.py", line 26, in <module>
from convert import *
  File "F:\openerp-7.0-20130327-002325\openerp\tools\convert.py", line 51, in <module>
from translate import _
  File "F:\openerp-7.0-20130327-002325\openerp\tools\translate.py", line 45, in <module>
import osutil
  File "F:\openerp-7.0-20130327-002325\openerp\tools\osutil.py", line 31, in <module>
import win32service as ws
ImportError: DLL load failed: The specified module could not be found.

请帮助我,非常感谢。

4

4 回答 4

2

我有同样的问题。

我通过为 Windows 重新安装 Pywin32 解决了这个问题:

  1. http://sourceforge.net/projects/pywin32/files/pywin32/Build%20219/

  2. 选择http://sourceforge.net/projects/pywin32/files/pywin32/Build%20219/pywin32-219.win32-py2.7.exe/download

  3. 通过单击 pywin32-219.win32-py2.7.exe 安装 pywin32

我认为问题在于通过命令行 PIP 安装 pywin32。

于 2015-03-30T05:48:24.720 回答
1

If you open it in dependencywalker it'll tell you what you're missing. Sometimes you need to run dynamic mode b/c dependencies are loaded dynamically and will not be detected until you profile the application from within Dependency Walker

http://www.dependencywalker.com/

faq: http://www.dependencywalker.com/faq.html

于 2013-09-19T11:51:12.800 回答
0

如果pywin32通过安装pip,则需要运行安装后脚本

python Scripts/pywin32_postinstall.py -install

pywin32 文档中的更多详细信息。

于 2019-07-09T14:50:06.157 回答
-1

尝试安装PyWin32,它带有所需的 DLL。

于 2013-09-19T11:43:45.303 回答