Skip to content

super() argument 1 must be type, not classobj #485

@BotJohn

Description

@BotJohn

When trying to scrape a wiki, I get the following error:
40 namespaces found
Retrieving titles in the namespace 0
Traceback (most recent call last):
File "dumpgenerator.py", line 2572, in
main()
File "dumpgenerator.py", line 2564, in main
createNewDump(config=config, other=other)
File "dumpgenerator.py", line 2133, in createNewDump
getPageTitles(config=config, session=other['session'])
File "dumpgenerator.py", line 391, in getPageTitles
for title in titles:
File "dumpgenerator.py", line 261, in getPageTitlesAPI
site = mwclient.Site(apiurl.netloc, apiurl.path.replace("api.php", ""), scheme=apiurl.scheme, pool=session)
File "C:\Python27\lib\site-packages\mwclient\client.py", line 169, in init
self.pages = listing.PageList(self)
File "C:\Python27\lib\site-packages\mwclient\listing.py", line 242, in init
super(PageList, self).init(site, 'allpages', 'ap',
TypeError: super() argument 1 must be type, not classobj

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions