"Hey! Congratulations, you've made it so far (which is pretty rare with no Python 3.10). Unfortunately, this program only works on Python 3.10. Please install Python 3.10 and try again.")
"Hey! Congratulations, you've made it so far (which is pretty rare with no Python 3.10). Unfortunately, this program only works on Python 3.10. Please install Python 3.10 and try again."
print('FFmpeg is installed on this system! If you are seeing this error for the second time, restart your computer.')
subprocess.run(
["ffmpeg","-version"],
check=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
print(
"FFmpeg is installed on this system! If you are seeing this error for the second time, restart your computer."
)
exceptFileNotFoundErrorase:
print('FFmpeg is not installed on this system.')
resp=input("We can try to automatically install it for you. Would you like to do that? (y/n): ")
print("FFmpeg is not installed on this system.")
resp=input(
"We can try to automatically install it for you. Would you like to do that? (y/n): "
)
ifresp.lower()=="y":
print("Installing FFmpeg...")
ifos.name=="nt":
@ -73,12 +102,16 @@ def ffmpeg_install():
elifos.name=="mac":
ffmpeg_install_mac()
else:
print("Your OS is not supported. Please install FFmpeg manually and try again.")
print(
"Your OS is not supported. Please install FFmpeg manually and try again."
)
exit()
else:
print("Please install FFmpeg manually and try again.")
exit()
exceptExceptionase:
print("Welcome fellow traveler! You're one of the few who have made it this far. We have no idea how you got at this error, but we're glad you're here. Please report this error to the developer, and we'll try to fix it as soon as possible. Thank you for your patience!")
print(
"Welcome fellow traveler! You're one of the few who have made it this far. We have no idea how you got at this error, but we're glad you're here. Please report this error to the developer, and we'll try to fix it as soon as possible. Thank you for your patience!"
print("No audio clips to gather. Please use a different TTS or post.")# This is to fix the TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'
print(
"No audio clips to gather. Please use a different TTS or post."
)# This is to fix the TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'