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

cannot import disqusapi with python3 #34

Open
carsonpun opened this issue Jan 16, 2017 · 2 comments
Open

cannot import disqusapi with python3 #34

carsonpun opened this issue Jan 16, 2017 · 2 comments

Comments

@carsonpun
Copy link

After I started ipython3, and typed in the shell import disqusapi, it showed ImportError: No module named 'httplib'. Seems look like the disqusapi isn't supporting python3?

I'm using Python 3.5.2 :: Anaconda custom (x86_64)

Here's the error log:

In [1]: import disqusapi
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-1dede7c1a4ae> in <module>()
----> 1 import disqusapi

/Users/kspun/anaconda3/lib/python3.5/site-packages/disqusapi/__init__.py in <module>()
     13     __version__ = 'unknown'
     14 
---> 15 import httplib
     16 import os.path
     17 import simplejson

ImportError: No module named 'httplib'
@carsonpun
Copy link
Author

Just tried something more to make it work:

I was using pip3 install disqus-python3, which gave the above error.

If I use

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

I can do import disqusapi without issues.

@macabeus
Copy link

I have the same issue and fix with same way.
Maybe anybody forgot update the package in Pip =P

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

4 participants
@macabeus @carsonpun and others