title: Q: How to fix the missing dependancies in pyzbar
body: <p>I am currently using spyder via anaconda with python 3.8.5 on windows 10 and I am trying to use the pyzbar package to make a barcode reader. When I try to run the script I get this error message when trying to run <code>from pyzbar.pyzbar import decode</code> and <code>from pyzbar import pyzbar</code>:</p>
  <pre><code>  Traceback (most recent call last):
  
    File &quot;C:\Users\norinhan\Anaconda3\lib\site-packages\pyzbar\zbar_library.py&quot;, line 58, in load
      dependencies, libzbar = load_objects(Path(''))
  
    File &quot;C:\Users\norinhan\Anaconda3\lib\site-packages\pyzbar\zbar_library.py&quot;, line 50, in load_objects
      deps = [
  
    File &quot;C:\Users\norinhan\Anaconda3\lib\site-packages\pyzbar\zbar_library.py&quot;, line 51, in &lt;listcomp&gt;
      cdll.LoadLibrary(str(directory.joinpath(dep)))
  
    File &quot;C:\Users\norinhan\Anaconda3\lib\ctypes\__init__.py&quot;, line 459, in LoadLibrary
      return self._dlltype(name)
  
    File &quot;C:\Users\norinhan\Anaconda3\lib\ctypes\__init__.py&quot;, line 381, in __init__
      self._handle = _dlopen(self._name, mode)
  
  FileNotFoundError: Could not find module 'libiconv.dll' (or one of its dependencies). Try using the full path with constructor syntax.
  
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
  
    File &quot;&lt;ipython-input-1-95ae0761f4b5&gt;&quot;, line 1, in &lt;module&gt;
      from pyzbar.pyzbar import decode
  
    File &quot;C:\Users\norinhan\Anaconda3\lib\site-packages\pyzbar\pyzbar.py&quot;, line 7, in &lt;module&gt;
      from .wrapper import (
  
    File &quot;C:\Users\norinhan\Anaconda3\lib\site-packages\pyzbar\wrapper.py&quot;, line 139, in &lt;module&gt;
      zbar_version = zbar_function(
  
    File &quot;C:\Users\norinhan\Anaconda3\lib\site-packages\pyzbar\wrapper.py&quot;, line 136, in zbar_function
      return prototype((fname, load_libzbar()))
  
    File &quot;C:\Users\norinhan\Anaconda3\lib\site-packages\pyzbar\wrapper.py&quot;, line 115, in load_libzbar
      libzbar, dependencies = zbar_library.load()
  
    File &quot;C:\Users\norinhan\Anaconda3\lib\site-packages\pyzbar\zbar_library.py&quot;, line 60, in load
      dependencies, libzbar = load_objects(Path(__file__).parent)
  
    File &quot;C:\Users\norinhan\Anaconda3\lib\site-packages\pyzbar\zbar_library.py&quot;, line 50, in load_objects
      deps = [
  
    File &quot;C:\Users\norinhan\Anaconda3\lib\site-packages\pyzbar\zbar_library.py&quot;, line 51, in &lt;listcomp&gt;
      cdll.LoadLibrary(str(directory.joinpath(dep)))
  
    File &quot;C:\Users\norinhan\Anaconda3\lib\ctypes\__init__.py&quot;, line 459, in LoadLibrary
      return self._dlltype(name)
  
    File &quot;C:\Users\norinhan\Anaconda3\lib\ctypes\__init__.py&quot;, line 381, in __init__
      self._handle = _dlopen(self._name, mode)
  
  FileNotFoundError: Could not find module 'C:\Users\norinhan\Anaconda3\lib\site-packages\pyzbar\libiconv.dll' (or one of its dependencies). Try using the full path with constructor syntax.
  </code></pre>
  <p>When trying to run just <code>import pyzbar</code> it will compile, but it will not be able to access any of the function. When I try I get this message:</p>
  <pre><code>Traceback (most recent call last):
  
    File &quot;&lt;ipython-input-3-26272af93b8a&gt;&quot;, line 1, in &lt;module&gt;
      pyzbar.pyzbar.decode()
  
  AttributeError: module 'pyzbar' has no attribute 'pyzbar'
  </code></pre>
  <p>I have looked up the <a href="https://github.com/NaturalHistoryMuseum/pyzbar" rel="nofollow noreferrer">documentation for pyzbar on github</a> which states &quot;The zbar DLLs are included with the Windows Python wheels&quot;, but have not found this anywhere. The closest to &quot;Windows Python wheels&quot; I have found is <a href="https://pythonwheels.com/" rel="nofollow noreferrer">the wheel package</a> which does not contain any information about pyzbar.</p>
  <p>Any advice on how to fix this?</p>