public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Michael Diamond <dimo414@gmail.com>
To: cygwin@cygwin.com
Subject: Import error with python2-httplib2-0.9.2-1
Date: Wed, 17 May 2017 12:31:00 -0000	[thread overview]
Message-ID: <CACNkRr4foSjYH32EdJkrYC4gOTupxpAQKG9G8H6O1yxYyn6PCw@mail.gmail.com> (raw)

Hello all,

I’m running into trouble with the python2-httplib2[1] package in a
fresh install of Cygwin:

$ python -c 'import httplib2'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line
95, in <module>
    from iri2uri import iri2uri
  File "/usr/lib/python2.7/site-packages/httplib2/iri2uri.py", line
15, in <module>
    import urllib.parse
ImportError: No module named parse

As noted here[2], urllib.parse was introduced in Python 3, so it seems
odd for a 2.7 file to be expecting it. I also notice that it’s `import
urlparse` on GitHub[3], for whatever that’s worth.

[1]: https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Fpython2-httplib2%2Fpython2-httplib2-0.9.2-1
[2]: http://stackoverflow.com/q/29358403/113632
[3]: https://github.com/httplib2/httplib2/blob/master/python2/httplib2/iri2uri.py#L15

Thanks,

Michael

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

                 reply	other threads:[~2017-05-17  9:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACNkRr4foSjYH32EdJkrYC4gOTupxpAQKG9G8H6O1yxYyn6PCw@mail.gmail.com \
    --to=dimo414@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).