OpenALPR install library problem for python

3,726 views
Skip to first unread message

Mesut Piskin

unread,
Nov 8, 2016, 2:01:18 PM11/8/16
to OpenALPR
Hello everybody,

I have a problem with the installation for python. I runing test.py but I got an error

Error details;

D:\openalpr-2.3.0-win-64bit\openalpr_64>python python\test.py -c us --config "openalpr.conf" --runtime_data "runtime_data" samples/us-1.jpg
Traceback (most recent call last):
  File "python\test.py", line 21, in <module>
    alpr = Alpr(options.country, options.config, options.runtime_data)
  File "C:\Miniconda2\lib\site-packages\openalpr\openalpr.py", line 58, in __init__
    raise nex
OSError: Unable to locate the OpenALPR library. Please make sure that OpenALPR is properly installed on your system and that the libraries are in the appropriate paths.
Exception AttributeError: "Alpr instance has no attribute 'loaded'" in <bound method Alpr.__del__ of <openalpr.openalpr.Alpr instance at 0x0000000002BF5948>> ignored

I need help

Matt

unread,
Nov 11, 2016, 8:14:15 PM11/11/16
to OpenALPR
It's trying to find the native shared library:

Is that installed properly on your system?  The Python binding does not seem able to find it.

-Matt

Luigi De Francisci

unread,
Nov 22, 2016, 7:03:42 AM11/22/16
to OpenALPR
same error, i have installed openalpr on windows 8.1, you have solved?

cfir tsabari

unread,
Jan 31, 2017, 4:28:12 PM1/31/17
to OpenALPR
hello,
well i think i figured it out,
Short answer please install the vc_redist.x64\86.exe sitting at the openalpr folder.
Long answer (with credits to the post that helped me),
first i have checked the source code of the python binding i have saw that the code the return this error is this code:
if platform.system().lower().find("windows") != -1:
     
self._openalprpy_lib = ctypes.cdll.LoadLibrary("libopenalprpy.dll")
second i have searched some info about when LoadLibrary should failed and saw that this might happen when either the library is not found(not the case here), or if the library dependencies isn't found(the case here), i saw that in this post ,also i have read an important clue that this might be related to the c++ Runtime.
Lastly i have checked agian the help section about using precompiled binaries and saw that you should install the runtime drivers in order to use the OpenALPR software.

hope that helped you.
Reply all
Reply to author
Forward
0 new messages