[MacPorts] #62317: py27-dnspython @1.16.0 fetch fails

MacPorts noreply at macports.org
Fri Feb 19 03:43:55 UTC 2021


#62317: py27-dnspython @1.16.0 fetch fails
---------------------------+----------------------------
  Reporter:  n2ee          |      Owner:  kurthindenburg
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:
Resolution:                |   Keywords:
      Port:  py-dnspython  |
---------------------------+----------------------------

Comment (by kencu):

 when you build MacPorts on 10.4, it builds against the {{{SSL}}}
 infrastructure present in {{{/usr/local}}} which is just too old to
 support some modern websites:

 {{{
 31      :notice:fetch --->  Attempting to fetch dnspython-1.16.0.zip from
 https://files.pythonhosted.org/packages/source/d/dnspython/
 32      :debug:fetch Fetching distfile failed: error:1407742E:SSL
 routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
 }}}

 There are ways around that:

 {{{
 $ port -v installed py27-dnspython
 The following ports are currently installed:
   py27-dnspython @1.16.0_0 (active) platform='darwin 8' archs='noarch'
 date='2021-02-18T19:36:18-0800'
 }}}

 The simplest way is to just manually download the missing files using
 MacPorts' {{{curl}}} command. You probably have {{{curl}}} installed:
 {{{
 $ which curl
 /opt/local/bin/curl
 }}}

 so do this:
 {{{
 $ port distfiles py27-dnspython
 --->  Distfiles for py27-dnspython
 [dnspython-1.16.0.zip] /opt/local/var/macports/distfiles/py-
 dnspython/dnspython-1.16.0.zip
  rmd160: 1be4e79bcadfd39bc631d56391f727ce92fdabe2
  sha256: 36c5e8e38d4369a08b6780b7f27d790a292b2b08eea01607865bf0936c558e01
  size: 266364
 https://files.pythonhosted.org/packages/source/d/dnspython/dnspython-1.16.0.zip
 }}}

 and now that you know what it wants, do this:
 {{{
 cd /opt/local/var/macports/distfiles/py-dnspython/
 }}}
 then
 {{{
 $ sudo curl -O
 https://files.pythonhosted.org/packages/source/d/dnspython/dnspython-1.16.0.zip
   % Total    % Received % Xferd  Average Speed   Time    Time     Time
 Current
                                  Dload  Upload   Total   Spent    Left
 Speed
   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--
 0
 }}}

 and you are good to go -- for that particular port at least.

 I have some more general solutions to this issue that I use myself, so I
 never see these errors on my Tiger/Leopard/Snow Leopard/Lion systems.

-- 
Ticket URL: <https://trac.macports.org/ticket/62317#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list