title: How to fix the missing dependencies in pyzbar?
body: <p>I am currently using PyCharm2021.3.2 edition 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 from pyzbar.pyzbar import decode and from pyzbar import pyzbar:</p>
  <pre><code>&gt; Traceback (most recent call last):
    File &quot;C:\Users\User\PycharmProjects\pythonProject\venv\lib\site-packages\pyzbar\zbar_library.py&quot;, line 58, in load
      dependencies, libzbar = load_objects(Path(''))
    File &quot;C:\Users\User\PycharmProjects\pythonProject\venv\lib\site-packages\pyzbar\zbar_library.py&quot;, line 50, in load_objects
      deps = [
    File &quot;C:\Users\User\PycharmProjects\pythonProject\venv\lib\site-packages\pyzbar\zbar_library.py&quot;, line 51, in &lt;listcomp&gt;
      cdll.LoadLibrary(str(directory.joinpath(dep)))
    File &quot;C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2800.0_x64__qbz5n2kfra8p0\lib\ctypes\__init__.py&quot;, line 452, in LoadLibrary
      return self._dlltype(name)
    File &quot;C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2800.0_x64__qbz5n2kfra8p0\lib\ctypes\__init__.py&quot;, line 374, 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;C:\Users\User\AppData\Roaming\JetBrains\PyCharmCE2021.3\scratches\scan-barcode-vid.py&quot;, line 2, in &lt;module&gt;
      from pyzbar.pyzbar import decode
    File &quot;C:\Users\User\PycharmProjects\pythonProject\venv\lib\site-packages\pyzbar\pyzbar.py&quot;, line 7, in &lt;module&gt;
      from .wrapper import (
    File &quot;C:\Users\User\PycharmProjects\pythonProject\venv\lib\site-packages\pyzbar\wrapper.py&quot;, line 139, in &lt;module&gt;
      zbar_version = zbar_function(
    File &quot;C:\Users\User\PycharmProjects\pythonProject\venv\lib\site-packages\pyzbar\wrapper.py&quot;, line 136, in zbar_function
      return prototype((fname, load_libzbar()))
    File &quot;C:\Users\User\PycharmProjects\pythonProject\venv\lib\site-packages\pyzbar\wrapper.py&quot;, line 115, in load_libzbar
      libzbar, dependencies = zbar_library.load()
    File &quot;C:\Users\User\PycharmProjects\pythonProject\venv\lib\site-packages\pyzbar\zbar_library.py&quot;, line 60, in load
      dependencies, libzbar = load_objects(Path(__file__).parent)
    File &quot;C:\Users\User\PycharmProjects\pythonProject\venv\lib\site-packages\pyzbar\zbar_library.py&quot;, line 54, in load_objects
      libzbar = cdll.LoadLibrary(str(directory.joinpath(fname)))
    File &quot;C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2800.0_x64__qbz5n2kfra8p0\lib\ctypes\__init__.py&quot;, line 452, in LoadLibrary
      return self._dlltype(name)
    File &quot;C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2800.0_x64__qbz5n2kfra8p0\lib\ctypes\__init__.py&quot;, line 374, in __init__
      self._handle = _dlopen(self._name, mode)
  FileNotFoundError: Could not find module 'C:\Users\User\PycharmProjects\pythonProject\venv\lib\site-packages\pyzbar\libzbar-64.dll' (or one of its dependencies). Try using the full path with constructor syntax.
  </code></pre>
  <p>I have looked up the documentation for pyzbar on github 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 the wheel package which does not contain any information about pyzbar.</p>
  <p><a href="https://pypi.org/project/pyzbar/#files" rel="nofollow noreferrer">https://pypi.org/project/pyzbar/#files</a> to download pyzbar-0.1.8-py2.py3-none-win_amd64.whl.
  even after downloading files from here. replacing Dll and all other lib one by one but still the same error.</p>
  <p>Any advice on how to fix this?</p>