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

Bug with first lines of code in documentation? #23

Open
lee-hodg opened this issue Nov 13, 2014 · 9 comments
Open

Bug with first lines of code in documentation? #23

lee-hodg opened this issue Nov 13, 2014 · 9 comments

Comments

@lee-hodg
Copy link

I installed disqus-python then tried the basic example with my secret key and public key:

pip install disqus-python
from disqusapi import DisqusAPI
disqus = DisqusAPI(secret_key, public_key)

However now when I do

disqus.get('trends.listThreads')

I get the error:

TypeError: __call__() takes exactly 1 argument (2 given)
@lee-hodg
Copy link
Author

I see now that the version pip installed doesn't match the current master, nevertheless even installing with

 pip install git+https://github.com/disqus/disqus-python.git

I had issues with disqus.get('trends.listThreads') and needed to use disqus.get('trends.listThreads', method='GET'), so I guess the docs should be updated to reflect this.

@onyxfish
Copy link

Bump. This doesn't appear to work at all.

@ivanov
Copy link

ivanov commented Dec 31, 2014

thanks for the bump, @onyxfish fix is on the way!

@rmtew
Copy link

rmtew commented Jun 16, 2015

pip install disqus-python still installs a version that errors as above.

File "update.py", line 70, in run_disqus
for result in disqus.get("posts.list", forum="myforum"):
TypeError: call() takes exactly 1 argument (3 given)

@svengt
Copy link

svengt commented Dec 16, 2015

+1

@loneboat
Copy link

+1

Still getting this error as of Jan 2016

@mxrss
Copy link

mxrss commented Jan 25, 2016

@loneboat

I had luck by following the directions here

#22

What you need to do is do a pip install of this

pip install https://github.com/disqus/disqus-python/archive/master.zip

@aktivkohle
Copy link

aktivkohle commented Feb 21, 2017

Am using Python 3. The error changed to
InterfaceNotDefined: Interface is not defined, you must pass ``method`` (HTTP Method).
...after I redid pip install from the git master.

@fpghost suggestion above
for result in disqus.get('trends.listThreads', method='GET'):
fixed it (thanks!) now it is nicely returning threads. Would be handy if this missing bit of code was in the original README.rst

@martinosorb
Copy link

2018 here, still not fixed. This is really badly maintained.

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

9 participants