Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#48640 closed defect (fixed)

py-libcloud is missing backports.ssl-match-hostname dependency

Reported by: hans@… Owned by: petrrr
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: py-libcloud

Description

When Apache libcloud 0.17 is used with Python 2.x, it now requires backports.ssl-match-hostname. I'm getting this stack dump:

Traceback (most recent call last):
  File "/opt/local/bin/fdroid", line 115, in <module>
    main()
  File "/opt/local/bin/fdroid", line 93, in main
    mod.main()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fdroidserver/server.py", line 321, in main
    update_awsbucket(repo_section)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fdroidserver/server.py", line 57, in update_awsbucket
    cls = get_driver(Provider.S3)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/libcloud/storage/providers.py", line 63, in get_driver
    return get_provider_driver(DRIVERS, provider)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/libcloud/utils/misc.py", line 44, in get_driver
    _mod = __import__(mod_name, globals(), locals(), [driver_name])
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/libcloud/storage/drivers/s3.py", line 38, in <module>
    from libcloud.common.base import ConnectionUserAndKey, RawResponse
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/libcloud/common/base.py", line 51, in <module>
    from libcloud.httplib_ssl import LibcloudHTTPConnection
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/libcloud/httplib_ssl.py", line 26, in <module>
    from backports.ssl_match_hostname import match_hostname, CertificateError
ImportError: No module named backports.ssl_match_hostname

Change History (3)

comment:1 Changed 9 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to petr@…

In the future, please Cc the port maintainers (port info --maintainers py-libcloud), if any.

comment:2 Changed 9 years ago by petrrr

Resolution: fixed
Status: newclosed

Thanks for spotting this. Should be fixed by r139671.

comment:3 Changed 9 years ago by petrrr

I just committed an update to 0.18.0, in r139672. This also removed the deprecated py26 and py33 subports.

As version 0.18.0 seems to rely on the the standard library where possible (i.e. py27 >= 2.7.9 and py34), the dependency on backports.ssl_match_hostname was removed again.

Thanks for the Head-Up!

Note: See TracTickets for help on using tickets.