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

module 'inspect' has no attribute 'formatargspec' #189

Closed
goldyfruit opened this issue Oct 25, 2023 · 6 comments
Closed

module 'inspect' has no attribute 'formatargspec' #189

goldyfruit opened this issue Oct 25, 2023 · 6 comments

Comments

@goldyfruit
Copy link
Member

goldyfruit commented Oct 25, 2023

Error when loading Mimic 3 TTS

2023-10-25 15:44:59.662 - OVOS - ovos_plugin_manager.utils:find_plugins:115 - ERROR - Failed to load plugin entry point EntryPoint(name='ovos-g2p-plugin-heuristic-arpa', value='ovos_classifiers.opm.heuristics:ARPAHeuristicPhonemizerPlugin', group='ovos.plugin.g2p'): module 'inspect' has no attribute 'formatargspec'
2023-10-25 15:44:59.668 - OVOS - ovos_plugin_manager.g2p:create:142 - ERROR - The selected G2P plugin could not be loaded.
Traceback (most recent call last):
  File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_plugin_manager/g2p.py", line 139, in create
    g2p = clazz(g2p_config)
          ^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not callable
2023-10-25 15:44:59.671 - OVOS - ovos_plugin_manager.templates.tts:__init__:203 - ERROR - G2P plugin not loaded, there will be no mouth movements
Traceback (most recent call last):
  File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_plugin_manager/templates/tts.py", line 201, in __init__
    self.g2p = OVOSG2PFactory.create(cfg)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_plugin_manager/g2p.py", line 139, in create
    g2p = clazz(g2p_config)
          ^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not callable
@NeonDaniel
Copy link
Member

Seems this import may have been removed in Python 3.11 and has been marked as deprecated since 3.5 https://docs.python.org/3.10/library/inspect.html

related issue, GrahamDumpleton/wrapt#196

@NeonDaniel
Copy link
Member

I don't see any references to formatargspec in this repository, or ovos-classifiers.. Any ideas where in the stack this might come from?

I've opened a PR to add tests to ovos-classifiers to try and narrow down the origin of this exception

@goldyfruit
Copy link
Member Author

Might be related to

if k in inspect.signature(self.get_tts).parameters
?

@NeonDaniel
Copy link
Member

I don't see any notes about inspect.signature other than args order not being guranteed for parameters. I'll see if there's test coverage for that init though

@NeonDaniel
Copy link
Member

The plugin appears to init fine on its own

NeonDaniel pushed a commit that referenced this issue Oct 25, 2023
Add ovos-classifiers to test dependencies to troubleshoot #189
NeonDaniel pushed a commit that referenced this issue Oct 25, 2023
@NeonDaniel
Copy link
Member

  • hazm 0.7.0 depends on nltk==3.3
  • the issue with Python3.11 is not present with nltk-3.8.1
  • This appears to be an issue with one or more of the gruut_lang dependencies of mycroft-mimic3-tts not being compatible with Python3.11

@github-actions github-actions bot mentioned this issue Dec 29, 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

No branches or pull requests

2 participants