Open lee-hodg opened 10 years ago
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.
Bump. This doesn't appear to work at all.
thanks for the bump, @onyxfish fix is on the way!
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)
+1
+1
Still getting this error as of Jan 2016
@loneboat
I had luck by following the directions here
https://github.com/disqus/disqus-python/issues/22
What you need to do is do a pip install of this
pip install https://github.com/disqus/disqus-python/archive/master.zip
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
2018 here, still not fixed. This is really badly maintained.
I installed disqus-python then tried the basic example with my secret key and public key:
However now when I do
I get the error: