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

Python3 compat: Remove usage of urllib2 #5

Open
sundhaug92 opened this issue Mar 31, 2018 · 2 comments
Open

Python3 compat: Remove usage of urllib2 #5

sundhaug92 opened this issue Mar 31, 2018 · 2 comments

Comments

@sundhaug92
Copy link

https://stackoverflow.com/questions/2792650/import-error-no-module-name-urllib2

Alternatives: Use the six-library or requests

@Hasimir
Copy link

Hasimir commented Jul 4, 2018

This project hasn't been updated in a very long time, at least seven years. It's safe to say that the author has has moved on to other projects and getting a fix for something like this here is not worth the effort.

Fortunately there's already an alternative incorporated into another project over here and specifically in this bit. You can indeed copy that directory and use it as a module, though it lacks tests when done that way. It appears to be functionally identical to this project, it's written for Python 3 and it uses requests.

It definitely works too.

@Hasimir
Copy link

Hasimir commented Sep 19, 2018

The project I referred to previously has now been split off into it's own dedicated package as hkp4py. Python 2.7 support has been restored and it's on PyPI.

The announcement was posted to the gnupg-devel mailing list earlier this week. It'll be included in examples in the GPGME Python Bindings HOWTO in time for the next release.

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

2 participants