ollama-voice-mac icon indicating copy to clipboard operation
ollama-voice-mac copied to clipboard

ModuleNotFoundError: No module named 'pyttsx3'

Open scott-mackenzie opened this issue 10 months ago • 4 comments

Please let me start by saying thank you and I do love the thought put into this concept project. I think this type of project is critical for long term societal protections to ensure LLM Localization empowers people and not only States or major corporations.

The error seems like a simple one but so far working the problem has not resulted in a solution. Any ideas are most welcome!

Below is System information:

`Software:

System Software Overview:

  System Version: macOS 14.4.1 (23E224)
  Kernel Version: Darwin 23.4.0
  Boot Volume: Macintosh HD
  Boot Mode: Normal
  Computer Name: N/A
  User Name: N/A
  Secure Virtual Memory: Enabled
  System Integrity Protection: Enabled
  Time since boot: 25 days, 18 hours, 9 minutes

Hardware:

Hardware Overview:

  Model Name: MacBook Pro
  Model Identifier: Mac14,6
  Model Number: Z179000H4LL/A
  Chip: Apple M2 Max
  Total Number of Cores: 12 (8 performance and 4 efficiency)
  Memory: 96 GB
  System Firmware Version: 10151.101.3
  OS Loader Version: 10151.101.3
  Serial Number (system): N/A
  Hardware UUID: 9A28DB48-8F29-5124-996B-7A6D8507642F
  Provisioning UDID: 00006021-0018690C14F0C01E
  Activation Lock Status: Enabled`

This is a clean install as per the default guidance. As per the other Issue the requirements.txt had to be adjusted to the below to even get as far as an error on the run command "python -v assistant.py" with the applicable section of the failure shown below at point of error:

# extension module '_struct' executed from '/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/lib-dynload/_struct.cpython-39-darwin.so' import '_struct' # <_frozen_importlib_external.ExtensionFileLoader object at 0x105061df0> import 'struct' # <_frozen_importlib_external.SourceFileLoader object at 0x105061a30> import 'wave' # <_frozen_importlib_external.SourceFileLoader object at 0x104ff94f0> Traceback (most recent call last): File "/Users/username/WebstormProjects/ollama-voice-mac/assistant.py", line 5, in <module> import pyttsx3 File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked ModuleNotFoundError: No module named 'pyttsx3'

However when I run the below command to check if pyttsx3 is installed it shows that the module is present:

pip install pyttsx3 --break-system-packages --user

Using the variables of "--break-system-packages" and "--user" as I use homebrew.

Has anyone gotten ollama-voice-mac to work on a MacBook m2?

Any ideas on this error / obstacle?

scott-mackenzie avatar Apr 21 '24 16:04 scott-mackenzie