endorno / python-tesseract

Automatically exported from code.google.com/p/python-tesseract

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import Error (DLL load failed: The specified module could not be found)

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?
1.import tesseract
2.
3.

What is the expected output? What do you see instead?
I get this error:
--------------------------------------------------------------------------
Traceback (most recent call last):

  File "<ipython-input-87-1169c4d151bc>", line 1, in <module>
    import tesseract

  File "D:\Software Development\Anaconda\lib\site-packages\tesseract.py", line 28, in <module>
    _tesseract = swig_import_helper()

  File "D:\Software Development\Anaconda\lib\site-packages\tesseract.py", line 24, in swig_import_helper
    _mod = imp.load_module('_tesseract', fp, pathname, description)

ImportError: DLL load failed: The specified module could not be found.
--------------------------------------------------------------------------

What version of the product are you using? On what operating system?
Running python27 64bit from the Anaconda package on Win 8 Pro 64bit.  The 
python-tesseract installer is 0.9-0.3.win-amd64-py2.7.  I also tried the 32 bit 
installer with  32bit python, but I get the same error.

Please provide any additional information below.
I've attached the dependency walker report for _TESSERACT.PYD.

Thanks!

Original issue reported on code.google.com by sijan...@gmail.com on 4 Jun 2014 at 10:57

Attachments:

[deleted comment]
 LIBGCC_S_SEH-1.DLL    is missing.


Original comment by FreeT...@gmail.com on 5 Jun 2014 at 3:46

missing dll attached

Original comment by FreeT...@gmail.com on 5 Jun 2014 at 3:59

Attachments:

Here's the screenshot from DW.  I downloaded the dll you attached and placed it 
in a few places (not knowing where it goes), but none of them resolved the 
import error.  I tried the main python directory and the site-packages 
directory.  Where does it go? 

It does appear that the last line of the error has changed though...

ImportError: DLL load failed: The specified procedure could not be found.

Original comment by sijan...@gmail.com on 5 Jun 2014 at 4:11

Attachments:

can u show me the file inside D:\Software 
Development\Anaconda\lib\site-packages\ ?


Original comment by FreeT...@gmail.com on 5 Jun 2014 at 11:46

These in the attachment and also cv2.pyd which I left out due to the file size.

Original comment by sijan...@gmail.com on 5 Jun 2014 at 5:53

Attachments:

Since the dll you gave me made a slight difference in the message I thought 
maybe it was the right dll but not, if you know what I mean.  So, I downloaded 
another one off the web and tried it too, but same error.

Original comment by sijan...@gmail.com on 5 Jun 2014 at 5:55

I have removed all the mingw32's dependencies. Hope this version work for you. 

Original comment by FreeT...@gmail.com on 6 Jun 2014 at 6:55

Attachments:

This is what I got back...
--------------------------------------------------------------------------------
-
>>> import tesseract
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\Software Development\Anaconda\lib\site-packages\tesseract.py", line 28, in <module>
    _tesseract = swig_import_helper()
  File "D:\Software Development\Anaconda\lib\site-packages\tesseract.py", line 24, in swig_import_helper
    _mod = imp.load_module('_tesseract', fp, pathname, description)
ImportError: DLL load failed: %1 is not a valid Win32 application.
--------------------------------------------------------------------------------
---

Original comment by sijan...@gmail.com on 6 Jun 2014 at 9:35

:(
what is the report from dependency walker?

Original comment by FreeT...@gmail.com on 6 Jun 2014 at 10:14

try 64bit as well
https://bitbucket.org/3togo/python-tesseract/downloads/python-tesseract-0.9-0.4.
win-amd64-py2.7.exe

Original comment by FreeT...@gmail.com on 6 Jun 2014 at 10:15

[deleted comment]
Nice work!  The 64 bit version works!

Thank you for your help!

Original comment by sijan...@gmail.com on 7 Jun 2014 at 12:33

If it is not too much a trouble, could you be kind enough to do a dependency 
scan on my 32bit version?

Original comment by FreeT...@gmail.com on 7 Jun 2014 at 2:03

Do consider buy me a coffee. 

Have a nice day.

Joe

Original comment by FreeT...@gmail.com on 7 Jun 2014 at 2:05

Already did!

Thanks again!

Original comment by sijan...@gmail.com on 7 Jun 2014 at 2:13

Many thanks.

Tell you an interesting story. I quit using windows for quite some time 
already. The program you are using is mostly compiled in Linux(Ubuntu). I am 
indeed making something that I never use.

Anyhow, thank you for your coffee.


Joe  

Original comment by FreeT...@gmail.com on 7 Jun 2014 at 4:09

  • Changed state: Fixed
tq u are god 

Original comment by jiaweib...@gmail.com on 18 Aug 2015 at 12:01