title: Import Error: DLL load failed. The specified module could not be found
body: <p>I'm a beginner to python. I have installed python on my laptop and its version is <strong>Python 2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:19:08) [MSC v.1500 32 bit (Intel)] on win32</strong>. I'm trying to import an existing framework created by others and creating a new sample python file using the existing package. I wrote a simple line:</p>
  <pre><code> from machine_lib.pydblib import db
  </code></pre>
  <p>The pydblib is a file automatically generated from SWIG. The below code is grabbed from the SWIG file:</p>
  <pre><code>from sys import version_info as _swig_python_version_info
  if _swig_python_version_info &gt;= (2, 7, 0):
      def swig_import_helper():
          import importlib
          pkg = __name__.rpartition('.')[0]
          mname = '.'.join((pkg, '_pydblib')).lstrip('.')
          try:
              return importlib.import_module(mname)
          except ImportError:
              return importlib.import_module('_pydblib')
      _pydblib = swig_import_helper()
  </code></pre>
  <p>The error is at the except block : <code>return importlib.import_module('_pydblib')</code> which says :</p>
  <pre><code>ImportError: DLL load failed: The specified module could not be found in pycharm.
  </code></pre>
  <p>I have gone through the answers for the same error and nothing worked. How can I get rid of this error? I'm happy to share more info if required. Thanks in advance!</p>