can't workout why getting a type error on __init__
<p>Hope someone can help me...</p>

<p>Have the following:</p>

<p>smartsheet_test.py</p>

<pre><code>from pfcms.content import Content

def main():
    ss = Content()
    ss.smartsheet()

if __name__ == "__main__":
    main()
</code></pre>

<p>content.py</p>

<pre><code>import smartsheet as ss
class Content:
    """ PFCMS SmartSheet utilities """
    def __init__(self):
        self.token = 'xxxxxxxxxxxxxxxxxxx'

    def smartsheet(self):
         smartsheet = ss.Smartsheet(self.token)
</code></pre>

<p>however when I execute the code I get:</p>

<pre><code>python -d smartsheet_test.py 
Traceback (most recent call last):
File "smartsheet_test.py", line 8, in &lt;module&gt;
main()
File "smartsheet_test.py", line 5, in main
ss.smartsheet()
File "/xxxxx/pfcms/pfcms/content.py",     line 10, in smartsheet
smartsheet = ss.Smartsheet(self.token)
TypeError: __init__() takes exactly 1 argument (2 given)
</code></pre>

<p>is <code>self</code> being passed into <code>ss.Smartsheet(self.token)</code> somehow, all I can see is that I'm passing the argument <code>self.token</code>. My knowledge of Python isn't too deep at this point. Any help greatly appreciated.</p>

<p>Thanks
Alex </p>

<p>You have (or had) a file called <code>smartsheet.py</code> in your current working directory. Delete or rename that file, and delete any related <code>.pyc</code> file.</p>

python class smartsheet-api