adi-panda / Kuebiko

An AI Twitch TTS Chat Bot using GPT-3 and Google Cloud TTS
355 stars 88 forks source link

"How to fix 'FileNotFoundError: Could not find module libvlc.dll' when running Python script for Twitch chatbot on GitHub?" #18

Closed ainzlpnoresponse closed 1 year ago

ainzlpnoresponse commented 1 year ago

"Hi, I encountered an error when running the command 'python main.py' for the Twitch chatbot. Specifically, I got a 'FileNotFoundError' saying that the 'libvlc.dll' module could not be found in the directory specified. I checked my setup and it seems like the module is indeed missing. Can someone please advise on how to resolve this issue? Thank you!" image

The method I have tried but not useful (same error):

  1. reinstalling the vlc library by running the following command in your command prompt: pip uninstall python-vlc pip install python-vlc
  2. manually installing the vlc library by downloading it from the website https://www.dll-files.com/libvlc.dll.html for Version 3.0.8.0 into "Kuebiko-main" folder
miscla commented 1 year ago
import os
os.add_dll_directory(r'C:\Program Files\VideoLAN\VLC')

import vlc

try to change to this code for add your vlc folder

chimmykk commented 1 year ago

https://youtu.be/NVNQBAOXBNw

this will help!! :)

Adolfiux commented 1 year ago

Do u have the lasted VLC installed on windows?

https://www.videolan.org/vlc/

ainzlpnoresponse commented 1 year ago

Yes, that's my personal issue that doesnt install VLC properly, I install it from official site, thank you everyone!