thks but still not happening for me unfortunately.
I checked:
C:\Users\c.o’d>python --version
Python 3.5.1
I can run the program from idle or feed it line by line thru command line, so i know its working.
my 64 bit module path is :
C:/Users/c.od/AppData/Local/Programs/Python/Python35/Lib/site-packages
I can see the package in the folder and it finds it outside of touch.
I run same script in touch and get:
[code]TouchDesigner 64-Bit 099 Build 2018.41570 compile on Tue Nov 13 15:13:15 2018
Python 3.5.1+ (default, Apr 21 2016, 11:06:11) [MSC v.1900 64 bit (AMD64)]
python >>>
Traceback (most recent call last):
File “</project1/text1:op(‘/project1/text1’).run()>”, line 1
td.Error: File “C:/Users/c.o’d/AppData/Local/Programs/Python/Python35/Lib/site-packages\pyttsx3_init_.py”, line 44, in init
eng = _activeEngines[driverName]
File “C:\Program Files\Derivative\TouchDesigner099\bin\lib\weakref.py”, line 131, in getitem
o = self.datakey
KeyError: None
During handling of the above exception, another exception occurred:
File “/project1/text1”, line 2
File “C:/Users/c.o’d/AppData/Local/Programs/Python/Python35/Lib/site-packages\pyttsx3_init_.py”, line 46, in init
eng = Engine(driverName, debug)
File “C:/Users/c.o’d/AppData/Local/Programs/Python/Python35/Lib/site-packages\pyttsx3\engine.py”, line 52, in init
self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug)
File “C:/Users/c.o’d/AppData/Local/Programs/Python/Python35/Lib/site-packages\pyttsx3\driver.py”, line 75, in init
self.module = importlib.import_module(name)
File "C:\Program Files\Derivative\TouchDesigner099\bin\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 986, in _gcd_import
File “”, line 969, in _find_and_load
File “”, line 958, in _find_and_load_unlocked
File “”, line 673, in _load_unlocked
File “”, line 662, in exec_module
File “”, line 222, in call_with_frames_removed
File “C:/Users/c.o’d/AppData/Local/Programs/Python/Python35/Lib/site-packages\pyttsx3\drivers\sapi5.py”, line 3
import win32com.client
r = previousimport(*args, **kw)
r = previousimport(*args, **kw)
File "C:/Users/c.o’d/AppData/Local/Programs/Python/Python35/Lib/site-packages\win32com_init.py", line 5
import win32api, sys, os
r = previousimport(*args, **kw)
ImportError: No module named ‘win32api’
Results of run operation resulted in exception. <type:textDAT path:/project1/text1> <class ‘td.textDAT’>
python >>> [/code]
The way I’m understanding what is going on:I cant install win32 separately because its old and there doesnt seem to be any package for 3.5.1 Python. But somehow pyttsx3 finds it outside of touch? is it embedded in the pyttsx3 ?
I dont get it.
script that works in IDLE:
[code]import pyttsx3
engine = pyttsx3.init()
engine.say(“2015 between April and July, and a hardcover collection went on sale in November. Archie Comics proposed the idea to Dark Horse, which holds the license to comics featuring 20th Century Fox’s Predator. The series received positive reviews from critics, who enjoyed the strange matchup and dark humor. The April issue was the top seller for both publishers, and garnered a”)
engine.runAndWait()
[/code]
thsnks for your help.