Code Monkey home page Code Monkey logo

Comments (9)

jasperan avatar jasperan commented on July 22, 2024

Having the same issue. Is it possible that we are making too many HTTP requests and there is an unknown rate limiting that we don't know of?

from random-word.

plaffitte avatar plaffitte commented on July 22, 2024

Same issue here:

Exception: Error occured, No result found. If you think this was a mistake than raise issue at https://github.com/vaibhavsingh97/random-word/issues

from random-word.

mmichealjroberts avatar mmichealjroberts commented on July 22, 2024

I am receiving the same issue:

 File "x/x/x/env/lib/python3.7/site-packages/random_word/random_word.py", line 60, in get_random_word
   "Error occured, No result found. If you think this was a mistake than raise issue at {}".format(self.issue_url))
Exception: Error occured, No result found. If you think this was a mistake than raise issue at https://github.com/vaibhavsingh97/random-word/issues

Using the following:

random_word = r.get_random_word(hasDictionaryDef="true", includePartOfSpeech="noun,verb", minCorpusCount=1, maxCorpusCount=10, minDictionaryCount=1, maxDictionaryCount=10, minLength=5, maxLength=10)

from random-word.

jared-bloomer avatar jared-bloomer commented on July 22, 2024

Same Issue for me as well. Using a quick isolated script to test it out

The Script:

#!/usr/bin/env python3

def word():
    from random_word import RandomWords
    r = RandomWords()
    word = r.get_random_word(hasDictionaryDef="true")
    return word

def main():
    print(word())

if __name__ == "__main__":
    main()

The Result:

Traceback (most recent call last):
  File "./randomword", line 13, in <module>
    main()
  File "./randomword", line 10, in main
    print(word())
  File "./randomword", line 6, in word
    word = r.get_random_word(hasDictionaryDef="true")
  File "/usr/local/lib/python3.7/site-packages/random_word/random_word.py", line 60, in get_random_word
    "Error occured, No result found. If you think this was a mistake than raise issue at {}".format(self.issue_url))
Exception: Error occured, No result found. If you think this was a mistake than raise issue at https://github.com/vaibhavsingh97/random-word/issues

from random-word.

BBFC-Gaming avatar BBFC-Gaming commented on July 22, 2024

Same thing is happening to me. I tried to put time.sleep(2) in between the lines, but it didn't fix it.

from random-word.

EdwardTheLegend avatar EdwardTheLegend commented on July 22, 2024

I get the same thing too. My current solution is close it down and come back later.

from random-word.

alliefitter avatar alliefitter commented on July 22, 2024

I just got this error, though it doesn't seem to be persistent. I've resorted to using this function.

def make_random_word(self):
    words = RandomWords()
    word = None
    while not word:
        try:
            word = words.get_random_word()
        except:
            pass

    return word

EDIT: Yeah, didn't test this before posting. It's still just doesn't work. Right now my script is just hanging as it loops over indefinitely

from random-word.

juan-solorio-program avatar juan-solorio-program commented on July 22, 2024

Same issue here.

Exception: Error occured, No result found. If you think this was a mistake than raise issue at https://github.com/vaibhavsingh97/random-word/issues

from random-word.

vaibhavsingh97 avatar vaibhavsingh97 commented on July 22, 2024

I had released a new version on PyPI (https://pypi.org/project/Random-Word/1.0.6/), this will fix recent issues.

from random-word.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.