pyopencv import error

63 views
Skip to first unread message

Prashant

unread,
Apr 19, 2011, 3:27:15 PM4/19/11
to ctypes...@googlegroups.com
I am on win xp 32 and python 2.6.2. After installation and running a demo example:
Traceback (most recent call last):
  File "test.py", line 1, in <module>
    from pyopencv import *
  File "C:\Python26\lib\site-packages\pyopencv\__init__.py", line 1, in <module>
    from info import __doc__
  File "C:\Python26\lib\site-packages\pyopencv\info.py", line 42, in <module>
    import config as _cfg
  File "C:\Python26\lib\site-packages\pyopencv\config.py", line 7, in <module>
    from cxtypes_h import *
  File "C:\Python26\lib\site-packages\pyopencv\cxtypes_h.py", line 19, in <module>
    import cxtypes_h_ext as _ext
ImportError: DLL load failed: Invalid access to memory location.

BTW, I have installed complete OpenCV from executable installer into D:\OpenCV2.2.

Any pointers?

Prashant

saroele

unread,
Jun 8, 2011, 4:34:25 PM6/8/11
to ctypes...@googlegroups.com
I seem to have the same problem.
I'm running windows 7, 64 bit, python 2.6 (32 bit). 

This is the error message I get:
In [2]: import pyopencv
------------------------------------------------------------
Traceback (most recent call last):
  File "<ipython console>", line 1, in <module>
  File "c:\users\rdc\appdata\local\temp\easy_install-lpp2ia\pyopencv-2.1.0.wr1.2.0-py2.6-win32.egg.tmp\pyopencv\__init__.py", line 1, in <module>
  File "c:\users\rdc\appdata\local\temp\easy_install-lpp2ia\pyopencv-2.1.0.wr1.2.0-py2.6-win32.egg.tmp\pyopencv\info.py", line 42, in <module>
  File "c:\users\rdc\appdata\local\temp\easy_install-lpp2ia\pyopencv-2.1.0.wr1.2.0-py2.6-win32.egg.tmp\pyopencv\config.py", line 7, in <module>
  File "c:\users\rdc\appdata\local\temp\easy_install-lpp2ia\pyopencv-2.1.0.wr1.2.0-py2.6-win32.egg.tmp\pyopencv\cxtypes_h.py", line 19, in <module>
  File "c:\users\rdc\appdata\local\temp\easy_install-lpp2ia\pyopencv-2.1.0.wr1.2.0-py2.6-win32.egg.tmp\pyopencv\cxtypes_h_ext.py", line 7, in <module>
  File "c:\users\rdc\appdata\local\temp\easy_install-lpp2ia\pyopencv-2.1.0.wr1.2.0-py2.6-win32.egg.tmp\pyopencv\cxtypes_h_ext.py", line 6, in __bootstrap__
ImportError: DLL load failed: Invalid access to memory location.

thanks for your help,
Roel
Reply all
Reply to author
Forward
0 new messages