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

Redirection throws an error #62

Open
SkytAsul opened this issue May 8, 2023 · 0 comments
Open

Redirection throws an error #62

SkytAsul opened this issue May 8, 2023 · 0 comments

Comments

@SkytAsul
Copy link

SkytAsul commented May 8, 2023

Calling api.page(page_title, auto_suggest = False, redirect = True, preload = False) throws this error:

  File "C:\Users\skyta\Documents\math-lexique.py", line 58, in handle_page
    page = api.page(page_title, auto_suggest = False, preload = False)
  File "C:\Users\skyta\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\mediawikiapi\mediawikiapi.py", line 240, in page
    return WikipediaPage(
  File "C:\Users\skyta\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\mediawikiapi\wikipediapage.py", line 39, in __init__
    self.__load(redirect=redirect, preload=preload)
  File "C:\Users\skyta\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\mediawikiapi\wikipediapage.py", line 116, in __load
    self.__init__(  # type:ignore
TypeError: WikipediaPage.__init__() got multiple values for argument 'request'

Python 3.10.11, mediawikiapi 1.2.0

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

1 participant