FujiwaraChoki / MoneyPrinter

Automate Creation of YouTube Shorts using MoviePy.
MIT License
10.07k stars 1.35k forks source link

[BUG] Error: 'NoneType' object has no attribute 'group' #251

Closed AlexKa03 closed 4 months ago

AlexKa03 commented 4 months ago

Describe the bug After clicking on generate it gives this error. From my reserch i think it's comming from g4f, more specificly from the You provider. Does someone know alternative provider, because gpt 3.5 and 4 api's are paid. Or how to fix this issue. Im not the best in coding, so idk how to fix this issue right now.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'MoneyPrinter'
  2. Click on 'Generate'
  3. See error

Expected behavior This error shouldnt even exist, it should just make videos.

Screenshots image image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

AlexKa03 commented 4 months ago

Currently its working maybe 50% of the time but the error is still the same. SO if possible what is the best alternative provider.

FujiwaraChoki commented 4 months ago

You'll have to try different ones out, there is no provider that works all the time, at least with in my experience.

AlexKa03 commented 4 months ago

Ok thanks. But that does mean that i have to change the code every time (small portions)

FujiwaraChoki commented 4 months ago

You can implement a mechanism within a try except block to switch to a new provider every time the original one fails.

FujiwaraChoki commented 4 months ago

Closing, as I haven't heard anything back