Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update nsss.py #4

Merged
merged 1 commit into from
Oct 15, 2023
Merged

Update nsss.py #4

merged 1 commit into from
Oct 15, 2023

Conversation

haf
Copy link

@haf haf commented Oct 10, 2023

This stops this error from happening:

 Traceback (most recent call last):
   File ".pyenv/versions/3.10.7/lib/python3.10/runpy.py", line 196, in _run_module_as_main
     return _run_code(code, main_globals, None,
   File ".pyenv/versions/3.10.7/lib/python3.10/runpy.py", line 86, in _run_code
     exec(code, run_globals)
   File "thea/tts.py", line 13, in <module>
     main()
   File "thea/tts.py", line 7, in main
     engine = rlvoice.init()
   File ".venv/lib/python3.10/site-packages/rlvoice/__init__.py", line 22, in init
     eng = Engine(driverName, debug)
   File ".venv/lib/python3.10/site-packages/rlvoice/engine.py", line 30, in __init__
     self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug)
   File ".venv/lib/python3.10/site-packages/rlvoice/driver.py", line 49, in __init__
     self._module = importlib.import_module(name)
   File ".pyenv/versions/3.10.7/lib/python3.10/importlib/__init__.py", line 126, in import_module
     return _bootstrap._gcd_import(name[level:], package, level)
   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
   File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
   File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
   File "<frozen importlib._bootstrap_external>", line 883, in exec_module
   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
   File ".venv/lib/python3.10/site-packages/rlvoice/drivers/nsss.py", line 13, in <module>
     class NSSpeechDriver(NSObject):
   File ".venv/lib/python3.10/site-packages/rlvoice/drivers/nsss.py", line 14, in NSSpeechDriver
     @objc.python_method
 NameError: name 'objc' is not defined. Did you mean: 'object'?

This stops this error from happening:

```
Traceback (most recent call last):
  File "/Users/h/.pyenv/versions/3.10.7/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/Users/h/.pyenv/versions/3.10.7/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/Users/h/dev/thea/thea/tts.py", line 13, in <module>
    main()
  File "/Users/h/dev/thea/thea/tts.py", line 7, in main
    engine = rlvoice.init()
  File "/Users/h/dev/thea/.venv/lib/python3.10/site-packages/rlvoice/__init__.py", line 22, in init
    eng = Engine(driverName, debug)
  File "/Users/h/dev/thea/.venv/lib/python3.10/site-packages/rlvoice/engine.py", line 30, in __init__
    self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug)
  File "/Users/h/dev/thea/.venv/lib/python3.10/site-packages/rlvoice/driver.py", line 49, in __init__
    self._module = importlib.import_module(name)
  File "/Users/h/.pyenv/versions/3.10.7/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/h/dev/thea/.venv/lib/python3.10/site-packages/rlvoice/drivers/nsss.py", line 13, in <module>
    class NSSpeechDriver(NSObject):
  File "/Users/h/dev/thea/.venv/lib/python3.10/site-packages/rlvoice/drivers/nsss.py", line 14, in NSSpeechDriver
    @objc.python_method
NameError: name 'objc' is not defined. Did you mean: 'object'?
```
@Akul2010
Copy link
Member

Thank you! I'm sorry I wasn't able to look into it, I've been a little busy.

@Akul2010 Akul2010 merged commit 1b1a8ee into Akul-AI:master Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants