--- Comment #2 from Merlijn van Deen <> ---
Both are python 2 (Queue)/ python 3 (queue) import blocks. However, the issue
is *not* queue, even though the error sounds like that.

What happens is:

      from httplib2 import SSLHandshakeError <-- fails
      import Queue
      import urlparse
      import cookielib
   except ImportError: <- this is meant for people who run python 3
      from ssl import SSLError as SSLHandshakeError <-- this also works on py2
      import queue as Queue <-- but this doesn't!

I think we should probably change those blocks to explicit blocks, i.e.

   if sys.version_info[0] == 2:
      from httplib2 import SSLHandshakeError

However, that would just change the error to

Traceback (most recent call last):
  File "C:\rewrite\", line 123, in <module>
  File "C:\rewrite\", line 30, in tryimport_pwb
    import pywikibot
  File "C:\rewrite\pywikibot\", line 412, in <module>
    from .page import Page, ImagePage, Category, Link, User, ItemPage,
PropertyPage, Claim
  File "C:\rewrite\pywikibot\", line 17, in <module>
  File "C:\rewrite\pywikibot\", line 32, in <module>
    from pywikibot import pagegenerators
  File "C:\rewrite\pywikibot\", line 31, in <module>
    from pywikibot.comms import http
  File "C:\rewrite\pywikibot\comms\", line 35, in <module>
    from httplib2 import SSLHandshakeError
ImportError: No module named httplib2

which still needs the 'You probably forgot the submodules' clarification

You are receiving this mail because:
You are on the CC list for the bug.
Wikibugs-l mailing list

Reply via email to