goldsmith / Wikipedia

A Pythonic wrapper for the Wikipedia API
https://wikipedia.readthedocs.org/
MIT License
2.89k stars 519 forks source link

Issue that was asked by goldsmith #268

Closed Eolien55 closed 3 years ago

Eolien55 commented 3 years ago

Hello I got the following issue while using asyncio from cmd in win10 by calling another file that use your package : Traceback (most recent call last): File "assistant.py", line 95, in runRun() File "assistant.py", line 93, in runRun run() File "assistant.py", line 47, in run speak(searchWiki(data, "summary")) File "C:\Users\Elie\PycharmProjects\encyclopedia\main.py", line 102, in searchWiki page = wikipedia.page(subject) File "C:\Users\Elie\anaconda3\lib\site-packages\wikipedia\wikipedia.py", line 270, in page results, suggestion = search(title, results=1, suggestion=True) File "C:\Users\Elie\anaconda3\lib\site-packages\wikipedia\util.py", line 28, in call ret = self._cache[key] = self.fn(*args, **kwargs) File "C:\Users\Elie\anaconda3\lib\site-packages\wikipedia\wikipedia.py", line 109, in search raise WikipediaException(raw_results['error']['info']) wikipedia.exceptions.WikipediaException: An unknown error occured: "The "srsearch" parameter must be set.". Please report it on GitHub!