search-engine-parser icon indicating copy to clipboard operation
search-engine-parser copied to clipboard

`RuntimeError: There is no current event loop in thread 'Thread-2'.`

Open judemont opened this issue 1 year ago • 1 comments

Describe the bug When I use search-engine-parser with flask, I get this error: RuntimeError: There is no current event loop in thread 'Thread-2'.

To Reproduce Steps to reproduce the behavior:

  1. Create a web server with the flask module
  2. Import search_engine_parser
  3. Search using search_engine_parse
  4. See error

Screenshots image

Desktop (please complete the following information):

  • OS: Ubuntu (Linux)
  • Python Version 3.9.10
  • Search-engine-parser version git+https://github.com/bisoncorps/search-engine-parser@0c2f4bde7dd21c10e64c9204417d9a228e96c187

judemont avatar May 23 '23 15:05 judemont

Same thing on Django project. Tried python 3.10 and 3.7

serafxxx avatar May 29 '23 04:05 serafxxx