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

"TypeError: NoneType object is not callable" when starting ovos-tts-server #88

Closed
technout opened this issue Dec 3, 2022 · 8 comments
Closed

Comments

@technout
Copy link

technout commented Dec 3, 2022

Hi, trying to run it on Ubuntu 20.04 with Python 3.8 but got some error:

Command: ovos-tts-server --engine neon-tts-plugin-glados --cache

Output:

2022-12-03 20:30:09.348 - OVOS - ovos_config.models:load_local:99 - DEBUG - Configuration '/etc/mycroft/mycroft.conf' not defined, skipping
2022-12-03 20:30:09.411 - OVOS - ovos_config.models:load_local:99 - DEBUG - Configuration '/home/<user>/.config/mycroft/web_cache.json' not defined, skipping
2022-12-03 20:30:09.476 - OVOS - ovos_config.models:load_local:99 - DEBUG - Configuration '/home/<user>/.config/mycroft/mycroft.conf' not defined, skipping
2022-12-03 20:30:09.539 - OVOS - ovos_config.models:load_local:99 - DEBUG - Configuration '/etc/xdg/mycroft/mycroft.conf' not defined, skipping
2022-12-03 20:30:09.602 - OVOS - ovos_config.models:load_local:99 - DEBUG - Configuration '/etc/xdg/xdg-ubuntu/mycroft/mycroft.conf' not defined, skipping
2022-12-03 20:30:09.666 - OVOS - ovos_config.models:load_local:99 - DEBUG - Configuration '/home/<user>/.mycroft/mycroft.conf' not defined, skipping
2022-12-03 20:30:11.226 - OVOS - ovos_plugin_manager.g2p:create:98 - DEBUG - Loaded plugin dummy
Traceback (most recent call last):
  File "/home/<user>/.local/bin/ovos-tts-server", line 8, in <module>
    sys.exit(main())
  File "/home/<user>/.local/lib/python3.8/site-packages/ovos_tts_server/__main__.py", line 29, in main
    start_tts_server(args.engine, port=args.port, host=args.host, cache=bool(args.cache))
  File "/home/<user>/.local/lib/python3.8/site-packages/ovos_tts_server/__init__.py", line 50, in start_tts_server
    TTS = engine(config={"persist_cache": cache})  # this will cache every synth even across reboots
  File "/home/<user>/.local/lib/python3.8/site-packages/neon_tts_plugin_glados/__init__.py", line 35, in __init__
    self.glados = torch.jit.load(model)
  File "/home/<user>/.local/lib/python3.8/site-packages/torch/jit/_serialization.py", line 161, in load
    cpp_module = torch._C.import_ir_module(cu, str(f), map_location, _extra_files)
RuntimeError: Unknown qengine

I did succesfully install:
sudo apt install espeak-ng
pip3 install ovos-tts-server
pip3 install neon-tts-plugin-glados
pip3 install ovos-tts-plugin-server

What did i do wrong? :)

@Theodotus1243
Copy link

@technout try neon-tts-plugin-coqui instead of neon-tts-plugin-glados

@technout
Copy link
Author

@technout try neon-tts-plugin-coqui instead of neon-tts-plugin-glados

After installing it with: pip3 install neon-tts-plugin-coqui
I tried: ovos-tts-server --engine neon-tts-plugin-coqui --cache

Got this error:

2022-12-11 - OVOS - ovos_plugin_manager.utils:load_plugin:104 - WARNING - Could not find the plugin mycroft.plugin.tts.neon-tts-plugin-coqui
Traceback (most recent call last):
  File "/home/<user>/.local/bin/ovos-tts-server", line 8, in <module>
    sys.exit(main())
  File "/home/<user>/.local/lib/python3.8/site-packages/ovos_tts_server/__main__.py", line 29, in main
    start_tts_server(args.engine, port=args.port, host=args.host, cache=bool(args.cache))
  File "/home/<user>/.local/lib/python3.8/site-packages/ovos_tts_server/__init__.py", line 50, in start_tts_server
    TTS = engine(config={"persist_cache": cache})  # this will cache every synth even across reboots
TypeError: 'NoneType' object is not callable

@technout technout changed the title Got RuntimeError: 'Unknown qengine' when starting ovos-tts-server "TypeError: NoneType object is not callable" when starting ovos-tts-server Dec 26, 2022
@technout
Copy link
Author

ovos-tts-server --engine neon-tts-plugin-coqui --cache
This command should work, right? Why do i still get the above error?

@NeonBohdan
Copy link
Collaborator

Here is the PR about this
Try
ovos-tts-server --engine neon-tts-plugin-coqui or
ovos-tts-server --engine coqui

@technout
Copy link
Author

Thanks for the reply, the first command give the same TypeError.
Second command starts the server, when trying to connect to http://localhost:9666/ it gives an 404, also noted in the the log as: "GET / HTTP/1.1" 404 -
But does this not start a different engine then --engine neon-tts-plugin-coqui or is it the same?

@Theodotus1243
Copy link

Try Gradio demo, which you can deploy localy

@technout
Copy link
Author

technout commented Jan 5, 2023

Thanks for the huggingface.co tip, interesting! But i really want to run my original request locally, that should work right?

@NeonBohdan
Copy link
Collaborator

NeonBohdan commented Feb 13, 2023

Once this #93 pull request will be accepted you will be able to use coqui with ovos-tts-server

Simpy run

docker pull ghcr.io/neongeckocom/neon-tts-plugin-coqui:latest

docker run -p 8080:9666 coqui-tts

Open browser and request
http://localhost:8080/synthesize/hello or http://localhost:8080/synthesize/Привіт?lang=uk

If you want to setup it without docker simply follow Dockerfile

Fill free to reopen

@NeonBohdan NeonBohdan reopened this Feb 13, 2023
@github-actions github-actions bot mentioned this issue Feb 23, 2024
NeonDaniel added a commit that referenced this issue Feb 23, 2024
# Changelog

##
[0.7.3a7](https://github.com/NeonGeckoCom/neon-tts-plugin-coqui/tree/0.7.3a7)
(2024-02-23)

[Full
Changelog](0.7.3a6...0.7.3a7)

**Merged pull requests:**

- Update Gradio Web UI
[\#114](#114)
([NeonDaniel](https://github.com/NeonDaniel))

##
[0.7.3a6](https://github.com/NeonGeckoCom/neon-tts-plugin-coqui/tree/0.7.3a6)
(2024-02-23)

[Full
Changelog](0.7.3a5...0.7.3a6)

**Merged pull requests:**

- Pin ovos-tts-server version for stable container release
[\#113](#113)
([NeonDaniel](https://github.com/NeonDaniel))

##
[0.7.3a5](https://github.com/NeonGeckoCom/neon-tts-plugin-coqui/tree/0.7.3a5)
(2024-02-23)

[Full
Changelog](0.7.2...0.7.3a5)

**Implemented enhancements:**

- \[FEAT\] Python3.11-Compatible PyTorch
[\#109](#109)

**Fixed bugs:**

- \[BUG\] I get error message "KeyError: 'en-us'" when I use
"CoquiTTS\(\)"
[\#99](#99)
- Torch Compatibility
[\#82](#82)

**Closed issues:**

- Tried to install Neon tts on Windows 11 using docker commands in
PowerShell
[\#105](#105)
- "TypeError: NoneType object is not callable" when starting
ovos-tts-server
[\#88](#88)

**Merged pull requests:**

- Update automation to publish GH prereleases
[\#112](#112)
([NeonDaniel](https://github.com/NeonDaniel))
- Fix relative paths in setup.py
[\#111](#111)
([NeonDaniel](https://github.com/NeonDaniel))
- Loosen dependency for Python 3.11 Compat.
[\#110](#110)
([NeonDaniel](https://github.com/NeonDaniel))
- Handle connection errors and fall back to local cached model files
[\#108](#108)
([NeonDaniel](https://github.com/NeonDaniel))
- Update release automation to new workflow
[\#104](#104)
([NeonDaniel](https://github.com/NeonDaniel))
- Update Docker to include Gradio web UI
[\#102](#102)
([NeonDaniel](https://github.com/NeonDaniel))



\* *This Changelog was automatically generated by
[github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
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

3 participants