'"Error when calling the metaclass bases" when declaring class inside a module
Let me start by saying, I also get the same error whey defining __init__ and running super()'s __init__. I only simplified it down to this custom method to see if the error still happened.
import HTMLParser
class Spider(HTMLParser):
"""
Just a subclass.
"""
This alone in a module raises the following error:
Traceback (most recent call last):
File "D:\my\path\to\my\file
class Spider(HTMLParser):
TypeError: Error when calling the metaclass bases
module.__init__() takes at most 2 arguments (3 given)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
