vaibhavsingh97 / random-word

This is a simple python package to generate random english words
https://pypi.org/project/random-word/
MIT License
123 stars 25 forks source link

Cant run the code, am getting an unexpected error message #40

Closed SHR3KtheGR3AT closed 3 years ago

SHR3KtheGR3AT commented 4 years ago

Describe the bug when i try to print the random word i am getting the error message Error occured, No result found. If you think this was a mistake than raise issue at https://github.com/vaibhavsingh97/random-word/issues

To Reproduce

from random_word import RandomWords
w = RandomWords()

word = w.get_random_word()
print(word)

Expected behavior it is supposed to print a random word

Environment (please complete the following information):

Screenshots If applicable, add screenshots to help explain your problem.

1 2

jackpalaia commented 4 years ago

same thing is happening to me

HarrazOtame commented 4 years ago

Wow... it seems that I'm not alone with this problem... I'm relatively new to programming so there's not much I know about this issue

MichaelSheinman commented 4 years ago

same issue for me

tayjaybabee commented 4 years ago

I am also having this problem

melody-ju commented 4 years ago

+1

gokart23 commented 4 years ago

fwiw, for me, this was due to the API rate being exceeded when using the author's key (this package internally queries the Wordnik API). Signing up for a dev account on the Wordnik website and placing my own key at [config.py] worked for me, ymmv.

@vaibhavsingh97 maybe this could be added to the documentation/setup procedure?

gboy13 commented 3 years ago

Same issue. Takes ~ a week to get your own API key. Wish there was a way to use this with a local dictionary.

roho2 commented 3 years ago

Having the same issue. I applied to get a new API key but have to wait a week to find out if it works.

EDIT: Received my API key. That completely solved my issue. Once I added the new API key to config.py my program had no issues connecting and getting words.

vaibhavsingh97 commented 3 years ago

Thanks for reporting the issue 👍 , I am working on it, a possible duplicate of https://github.com/vaibhavsingh97/random-word/issues/44.

@vaibhavsingh97 maybe this could be added to the documentation/setup procedure?

I will update the documentation