title: AttributeError: module 'pyttsx3' has no attribute 'init'
body: <p>First of all, I'm using:</p>
  
  <ul>
  <li>Windows 10</li>
  <li>Python 3.6.2 (but I've tried with Python 3.5.4 too)</li>
  <li><a href="https://pypi.python.org/pypi/pyttsx3/2.6" rel="nofollow noreferrer">pyttsx3</a> module</li>
  </ul>
  
  <p>I'm trying to use pyttsx3 but I just can't initialize it, with the official code examples.</p>
  
  <p>My code (just like the examples from <a href="https://pyttsx3.readthedocs.io/en/latest/engine.html#speaking-text" rel="nofollow noreferrer">here</a> and <a href="https://pypi.python.org/pypi/pyttsx3/2.6" rel="nofollow noreferrer">here</a>):</p>
  
  <pre><code>import pyttsx3
  engine = pyttsx3.init()
  engine.say('Just a sample text.')
  engine.runAndWait()
  </code></pre>
  
  <p>And the second line gives me this error:</p>
  
  <blockquote>
    <p>AttributeError: module 'pyttsx3' has no attribute 'init'</p>
  </blockquote>
  
  <p>I installed it with PIP:</p>
  
  <pre><code>pip install pyttsx3
  </code></pre>
  
  <p>And I tried to fix it installing pypiwin32 but it still doesn't work:</p>
  
  <pre><code>pip install pypiwin32
  </code></pre>
  
  <p>When I execute the following script:</p>
  
  <pre><code>import pyttsx3
  print(dir(pyttsx3))
  </code></pre>
  
  <p>I get this:</p>
  
  <pre><code>['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'pyttsx3']
  </code></pre>
  
  <p>There is this:</p>
  
  <pre><code>drivers (folder)
  __pycache__ (folder)
  driver.py
  engine.py
  six.py
  voice.py
  __init__.py
  </code></pre>
  
  <p>At:</p>
  
  <pre><code>C:\Program Files\Python36\Lib\site-packages\pyttsx3
  </code></pre>
  
  <p>And the contents of the file <code>__init__.py</code> (I omitted comments):</p>
  
  <pre><code>from .engine import Engine
  import weakref
  
  _activeEngines = weakref.WeakValueDictionary()
  
  def init(driverName=None, debug=False):
      try:
          eng = _activeEngines[driverName]
      except KeyError:
          eng = Engine(driverName, debug)
          _activeEngines[driverName] = eng
      return eng
  </code></pre>