Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python 2.7: ImportError: DLL load failed: The specified module could not be found

i'm installing Python 2.7, open erp 7.0 and eclipse for programing 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 so much.

like image 381
nhann Avatar asked Sep 19 '13 11:09

nhann


People also ask

How do you fix Importerror DLL load failed the specified module could not be found?

importerror: dll load failed: The specified module could not be found error occurs because of the incompatibilities of Microsoft Visual C++ (Visual Studio) versions. The best way to fix this error (importerror: dll load failed) is to reinstall/ install the Microsoft Visual C++ distribution.

How can I fix Importerror DLL load failed the specified module could not be found in Python 3?

In this case, you should uninstall the library first, then update the pip, and finally install the library again. Besides, if the error occurs, because the module is too new, you can solve the problem by installing the module with a specified version.


1 Answers

I had the same problem.

I resolved the problem by re-installing Pywin32 for Windows:

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

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

  3. Install pywin32 by click pywin32-219.win32-py2.7.exe

I think problem is in installing pywin32 by the command line PIP.

like image 157
Tho Mai Avatar answered Sep 21 '22 07:09

Tho Mai