Opened 7 years ago

Closed 7 years ago

#54567 closed defect (fixed)

py-twisted 17.5.0: missing python package dependency 'hyperlink'

Reported by: kpreid (Kevin Reid) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: Cc: olv.bonnet@…
Port: py-twisted

Description

Since upgrading to py27-twisted 17.5.0_0, the code import twisted.web.template, for example, will fail because Twisted 17.5.0 introduced a dependency on the Python package hyperlink which is not installed by MacPorts: https://github.com/twisted/twisted/commit/e2e0c715072ea129431031e9ed2428262f7e4a42

Fixing this will require creating a port for hyperlink, but I assume this will be straightforward.

>>> import twisted.web.template
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/web/template.py", line 571, in <module>
    import twisted.web.util
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/web/util.py", line 13, in <module>
    from twisted.python import urlpath
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/python/urlpath.py", line 15, in <module>
    from hyperlink import URL as _URL
ImportError: No module named hyperlink
$ port deps py27-twisted and active
Full Name: py27-twisted @17.5.0_0
Library Dependencies: python27, py27-setuptools, py27-zopeinterface,
                      py27-incremental, py27-constantly

Change History (3)

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

Cc: olv.bonnet@… added; mcalhoun@… removed
Owner: set to MarcusCalhoun-Lopez
Status: newassigned

comment:2 Changed 7 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Status: assignedaccepted

Thank you for tracking this problem down.

comment:3 Changed 7 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: acceptedclosed

In 822a8698e200e64cafd288770a345fca5d8ebb2c/macports-ports:

py-twisted: add dependency on py-hyperlink

Fixes #54567

Note: See TracTickets for help on using tickets.