MoneyPrinterTurbo icon indicating copy to clipboard operation
MoneyPrinterTurbo copied to clipboard

failed, error: module 'datetime' has no attribute 'UTC'

Open lstep opened this issue 3 months ago • 2 comments

Hello,

When running with docker compose up, it starts correctly, I can connect to the web interface, set parameters, but when I click on the red bar "Generate Video", I get the error "failed, error: module 'datetime' has no attribute 'UTC'":

## generating audio

2024-11-08 23:07:33.796 | INFO     | app.services.voice:azure_tts_v1:1057 - start, voice name: en-US-AvaNeural, try: 1

2024-11-08 23:07:33.803 | ERROR    | app.services.voice:azure_tts_v1:1080 - failed, error: module 'datetime' has no attribute 'UTC'

2024-11-08 23:07:33.803 | INFO     | app.services.voice:azure_tts_v1:1057 - start, voice name: en-US-AvaNeural, try: 2

2024-11-08 23:07:33.809 | ERROR    | app.services.voice:azure_tts_v1:1080 - failed, error: module 'datetime' has no attribute 'UTC'

2024-11-08 23:07:33.810 | INFO     | app.services.voice:azure_tts_v1:1057 - start, voice name: en-US-AvaNeural, try: 3

2024-11-08 23:07:33.816 | ERROR    | app.services.voice:azure_tts_v1:1080 - failed, error: module 'datetime' has no attribute 'UTC'

2024-11-08 23:07:33.816 | ERROR    | app.services.task:generate_audio:85 - failed to generate audio:
1. check if the language of the voice matches the language of the video script.
2. check if the network is available. If you are in China, it is recommended to use a VPN and enable the global traffic mode.

2024-11-08 23:07:33.817 | ERROR    | __main__:<module>:790 - Video Generation Failed

I'm running the latest (from git clone), on an Ubuntu 24.04, but that shouldn't change anything as it's a docker I'm running

lstep avatar Nov 08 '24 23:11 lstep