Python3 - TypeError: module.__init__() takes at most 2 arguments (3 given) : <p>Please don't mark as duplicate, other similar questions did not solve my issue.</p>

<p>This is my setup</p>

<pre><code>/main.py
/actions/ListitAction.py
/actions/ViewAction.py
</code></pre>

<p>Main.py:</p>

<pre><code>from actions import ListitAction, ViewAction
</code></pre>

<p>ListitAction.py:</p>

<pre><code>class ListitAction(object):    

    def __init__(self):        
        #some init behavior

    def build_uri():
        return "test.uri"
</code></pre>

<p>ViewAction.py</p>

<pre><code>from actions import ListitAction

class ViewAction(ListitAction):

    def __init__(self, view_id):
        ListitAction.__init__(self)
        self.view_id = view_id

    def build_uri():
        return "test"
</code></pre>

<p>Running:</p>

<pre><code>$ python3 main.py
</code></pre>

<p>The only error message I receive is: </p>

<pre><code>Traceback (most recent call last):
  File "/home/jlevac/workspace/project/listit.py", line 11, in &lt;module&gt;
    from actions import ListitAction, ViewAction, CommentsAction
  File "/home/jlevac/workspace/project/actions/ViewAction.py", line 3, in &lt;module&gt;
    class ViewAction(ListitAction):
TypeError: module.__init__() takes at most 2 arguments (3 given)
</code></pre>

<p>Even if I try for the python3 console, I received the same error message:</p>

<pre><code>$python3
from actions import ViewAction
</code></pre>

<p>I am new to Python, but not new to programming. I'm assuming that my error messages have to do with the import statements, but based on the message I can't really figure out what it means.</p>

<p>Thanks</p>
