Python 2.7: ImportError: Error loading DLL: the specified module was not found

I install Python 2.7, open erp 7.0 and eclipse for programming, and I met some error while running "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. 

Please help me, thanks a lot.

+4
source share
4 answers

I had the same problem.

I solved the problem by reinstalling Pywin32 for Windows:

I think the problem is installing pywin32 using the PIP command line.

+2
source

If you open it in a dependencywalker, it will tell you what you are missing. Sometimes you need to run dynamic mode. B / c dependencies load dynamically and will not be detected until you profile the application from Dependency Walker

http://www.dependencywalker.com/

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

+1
source

If you installed it via pip , you need to run the post install script to fully install pywin32:

 python Scripts/pywin32_postinstall.py -install 

This is mentioned in the pywin32 documentation .

0
source

Try installing PyWin32 , it comes with the necessary DLL.

-one
source

All Articles