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

RetryError[<Future at 0x7fd49eb96ee0 state=finished raised TypeError>] #4

Open
colonha opened this issue Aug 4, 2023 · 7 comments
Open

Comments

@colonha
Copy link

colonha commented Aug 4, 2023

I face this error when was running the test.py.

After some troubleshooting i found the function (generate_featured_image) is expecting two parameters
def generate_featured_image(text, meta_title):
But only one is sent
featured_image = generate_featured_image( meta_title)

I make it work replacing the text with url_slug and adding that parameter to the calling function
def generate_featured_image(url_slug, meta_title):
featured_image = generate_featured_image(url_slug, meta_title)

If you wanted i can do a PR to fix this issue.

@meuerdesign
Copy link

I face this error when was running the test.py.

After some troubleshooting i found the function (generate_featured_image) is expecting two parameters def generate_featured_image(text, meta_title): But only one is sent featured_image = generate_featured_image( meta_title)

Thought i'm the only one that got this error.
I did a slightly different approach to fix this error.
I changed:
def generate_featured_image(text, meta_title):
to
def generate_featured_image(meta_title):

And:
image_filename = f"./out/{text.replace(' ', '_').replace('/', '_')}.png"
to
image_filename = f"./out/{meta_title.replace(' ', '_').replace('/', '_')}.png"

@sysads
Copy link

sysads commented Aug 12, 2023

I have tried both steps but I am still getting same error
Error generating blog post for URL Slug choose-platform: RetryError[<Future at 0x2362aadc410 state=finished raised Exception>]

Any help will be appreciated

@flowengaged
Copy link

Yes please i have the same error at test.py. Any fix?

Thanks

@harvickfarms
Copy link

Looking for the same fix for the above error.

Generating outline for URL Slug organic-gardening
0%| | 0/1 [00:00<?, ?it/s]Error generating blog post for URL Slug organic-gardening: RetryError[<Future at 0x2787609dc40 state=finished raised AttributeError>]

@IncomeStreamSurfer any help is appreciated. Just a farmer trying to figure out blog coding. ;/

@cloud4sure
Copy link

Same error here. I tried the above fixes, but they haven't worked either.
Error generating blog post for URL Slug : RetryError[<Future at 0x20c35c3c610 state=finished raised AttributeError>]

@hyu279
Copy link

hyu279 commented May 29, 2024

I face this error when was running the test.py.

After some troubleshooting i found the function (generate_featured_image) is expecting two parameters def generate_featured_image(text, meta_title): But only one is sent featured_image = generate_featured_image( meta_title)

I make it work replacing the text with url_slug and adding that parameter to the calling function def generate_featured_image(url_slug, meta_title): featured_image = generate_featured_image(url_slug, meta_title)

If you wanted i can do a PR to fix this issue.

hello, i still face this issue after trying this method above, could u give me some help?

@fantasyinfo
Copy link

i have fixed that code, if any one intersted buying it, please msg me at [email protected]

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

8 participants