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

Wrong ffmpeg py package in requirement.txt! #8

Closed
yhyu13 opened this issue Nov 12, 2023 · 3 comments
Closed

Wrong ffmpeg py package in requirement.txt! #8

yhyu13 opened this issue Nov 12, 2023 · 3 comments

Comments

@yhyu13
Copy link

yhyu13 commented Nov 12, 2023

I am having this error on textgen gradio webui stratup

Traceback (most recent call last):
  File "/root/miniconda3/envs/textgen/lib/python3.10/site-packages/gradio/queueing.py", line 407, in call_prediction
    output = await route_utils.call_process_api(
  File "/root/miniconda3/envs/textgen/lib/python3.10/site-packages/gradio/route_utils.py", line 226, in call_process_api
    output = await app.get_blocks().process_api(
  File "/root/miniconda3/envs/textgen/lib/python3.10/site-packages/gradio/blocks.py", line 1550, in process_api
    result = await self.call_function(
  File "/root/miniconda3/envs/textgen/lib/python3.10/site-packages/gradio/blocks.py", line 1185, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "/root/miniconda3/envs/textgen/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
  File "/root/miniconda3/envs/textgen/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2106, in run_sync_in_worker_thread
    return await future
  File "/root/miniconda3/envs/textgen/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 833, in run
    result = context.run(func, *args)
  File "/root/miniconda3/envs/textgen/lib/python3.10/site-packages/gradio/utils.py", line 661, in wrapper
    response = f(*args, **kwargs)
  File "/root/CodeSpace/text-generation-webui/modules/chat.py", line 392, in start_new_chat
    history['visible'] += [['', apply_extensions('output', greeting, state, is_chat=True)]]
  File "/root/CodeSpace/text-generation-webui/modules/extensions.py", line 224, in apply_extensions
    return EXTENSION_MAP[typ](*args, **kwargs)
  File "/root/CodeSpace/text-generation-webui/modules/extensions.py", line 82, in _apply_string_extensions
    text = func(*args, **kwargs)
  File "/root/CodeSpace/text-generation-webui/extensions/SpeakLocal/script.py", line 141, in output_modifier
    text_and_audio_data=speak_text(string)
  File "/root/CodeSpace/text-generation-webui/extensions/SpeakLocal/script.py", line 88, in speak_text
    ffmpeg.input(wav_file).output(output_file, audio_bitrate=selected_bitrate, loglevel="quiet" ).run()
AttributeError: module 'ffmpeg' has no attribute 'input'

You are using the wrong ffmpeg package!

kkroening/ffmpeg-python#174 (comment)

FYI I am using this release tag https://github.com/oobabooga/text-generation-webui/releases/tag/snapshot-2023-11-05

And latest of SpeakLocal

@yhyu13 yhyu13 changed the title Wrong ffmpeg py package! Wrong ffmpeg py package in requirement.txt! Nov 12, 2023
@ill13
Copy link
Owner

ill13 commented Nov 18, 2023

SpeakLocal is no longer working on my fresh install of Oobabooga.
The fixes list at kkroening/ffmpeg-python#174 (comment) aren't working for me either
I'll have to look into this more

@ill13
Copy link
Owner

ill13 commented Nov 18, 2023

I'm not 100% happy with this answer, but it works for now

pip uninstall ffmpeg
pip uninstall ffmpeg-python
pip install ffmpeg-python

On Windows 10, make sure ffmpeg.exe in in your path
image

@ill13
Copy link
Owner

ill13 commented Nov 18, 2023

Updated requirements.txt

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