BackupGGCode / python-tesseract

python wrapper class for tesseract OCR (Linux & Mac & Windows)
3 stars 1 forks source link

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
 LIBGCC_S_SEH-1.DLL    is missing.

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

GoogleCodeExporter commented 9 years ago
missing dll attached

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

Attachments:

GoogleCodeExporter commented 9 years ago
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:

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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:

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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:

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
:(
what is the report from dependency walker?

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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Do consider buy me a coffee. 

Have a nice day.

Joe

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

GoogleCodeExporter commented 9 years ago
Already did!

Thanks again!

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

GoogleCodeExporter commented 9 years ago
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