magnusjwatson2786 / SRT-Audio

Subtitle to Audio Converter using Pyttsx3
MIT License
24 stars 11 forks source link

noob question #2

Closed waxweb closed 2 years ago

waxweb commented 2 years ago

when I try to install the requirements, I get: ERROR: Could not find a version that satisfies the requirement pywin32==301 (from versions: 302, 303) I am on Python 3.10 on Windows 10 64... do I need to do something like make a specific 32 bit install of Python, or something like that? Please help :)

waxweb commented 2 years ago

ok! I downgraded to 3.9, in which pywin32 still works. I seem to have a noob directory problem, being on windows and all: I double \'d the directory when inserting it in tts.py, but get:

i run tts.py and get X:\01PORTABLE\speech_pytts\SRT-Audio>python tts.py Traceback (most recent call last): File "X:\01____PORTABLE\speech_pytts\SRT-Audio\tts.py", line 8, in parsesrt.parse(srtpath) File "X:\01PORTABLE\speech_pytts\SRT-Audio\parsesrt.py", line 22, in parse ln+=b" " UnboundLocalError: local variable 'ln' referenced before assignment

what to do?

magnusjwatson2786 commented 2 years ago

Sorry about that. I just fixed it. It should work fine now.

waxweb commented 2 years ago

thank you for the help :)

I'm still having version problems with python and requirements... immediately there is a pywintypes error [ImportError: No system module 'pywintypes' (pywintypes38.dll)], which should be in pywin32..

could I ask you exactly what version of python you are using, and if I should set any specific version of pywin32 in the requirements?

Thank you! I am very eager to try this...

here is the full error:

Traceback (most recent call last): File "tts.py", line 12, in engine = pyttsx3.init() File "C:\Users\David\AppData\Roaming\Python\Python38\site-packages\pyttsx3__init.py", line 22, in init eng = Engine(driverName, debug) File "C:\Users\David\AppData\Roaming\Python\Python38\site-packages\pyttsx3\engine.py", line 30, in init self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug) File "C:\Users\David\AppData\Roaming\Python\Python38\site-packages\pyttsx3\driver.py", line 50, in init self._module = importlib.import_module(name) File "C:\Users\David\AppData\Local\Programs\Python\Python38\lib\importlib__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 783, in exec_module File "", line 219, in _call_with_frames_removed File "C:\Users\David\AppData\Roaming\Python\Python38\site-packages\pyttsx3\drivers\sapi5.py", line 10, in import pythoncom File "C:\Users\David\AppData\Roaming\Python\Python38\site-packages\pythoncom.py", line 2, in import pywintypes File "C:\Users\David\AppData\Roaming\Python\Python38\site-packages\win32\lib\pywintypes.py", line 105, in import_pywin32_system_module("pywintypes", globals()) File "C:\Users\David\AppData\Roaming\Python\Python38\site-packages\win32\lib\pywintypes.py", line 87, in import_pywin32_system_module__ raise ImportError("No system module '%s' (%s)" % (modname, filename)) ImportError: No system module 'pywintypes' (pywintypes38.dll)

On 2022-03-31 08:59, magnusjwatson2786 wrote:

Sorry about that. I just fixed it. It should work fine now.

-- Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. You are receiving this because you authored the thread.Message ID: @.***>

Links:

[1] https://github.com/magnusjwatson2786/SRT-Audio/issues/2#issuecomment-1084711419 [2] https://github.com/notifications/unsubscribe-auth/ABACTRJQPSFXPM4RRAFO56TVCW4WZANCNFSM5R7YV6UA