[MacPorts] #45700: py27-requests & py34-requests

MacPorts noreply at macports.org
Fri Oct 31 03:43:47 PDT 2014


#45700: py27-requests & py34-requests
-------------------------------+--------------------------------
  Reporter:  mattia.vaccari@…  |      Owner:  macports-tickets@…
      Type:  defect            |     Status:  new
  Priority:  Normal            |  Milestone:
 Component:  ports             |    Version:  2.3.2
Resolution:                    |   Keywords:
      Port:  py-requests       |
-------------------------------+--------------------------------
Changes (by ryandesign@…):

 * port:   => py-requests


Old description:

> the latest py27-requests (also affecting py34-requests) port won't
> install on mac os x 10.6
>
> the issue (probably the same as in Ticket #45597) is the following
> (nb : clean-ing and/or uninstall-ing the port also won't help)
>
> cheers - mattia
>
> sudo port install py27-requests
>                                                           --->  Computing
> dependencies for py27-requests
> --->  Fetching archive for py27-requests
> --->  Attempting to fetch py27-requests-2.4.3_0.darwin_10.noarch.tbz2
> from
> http://mse.uk.packages.macports.org/sites/packages.macports.org/py27-requests
> --->  Attempting to fetch
> py27-requests-2.4.3_0.darwin_10.noarch.tbz2.rmd160 from
> http://mse.uk.packages.macports.org/sites/packages.macports.org/py27-requests
> --->  Installing py27-requests @2.4.3_0
> --->  Activating py27-requests @2.4.3_0
> Error: org.macports.activate for port py27-requests returned: Image
> error:
> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
> /site-packages/requests/__init__.py already exists and does not belong to
> a registered port.  Unable to activate port py27-requests. Use 'port -f
> activate py27-requests' to force the activation.
> Please see the log file for port py27-requests for details:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
> .org_release_ports_python_py-requests/py27-requests/main.log
> To report a bug, follow the instructions in the guide:
>     http://guide.macports.org/#project.tickets
> Error: Processing of port py27-requests failed

New description:

 the latest py27-requests (also affecting py34-requests) port won't install
 on mac os x 10.6

 the issue (probably the same as in Ticket #45597) is the following
 (nb : clean-ing and/or uninstall-ing the port also won't help)

 cheers - mattia

 {{{
 sudo port install py27-requests
 --->  Computing dependencies for py27-requests
 --->  Fetching archive for py27-requests
 --->  Attempting to fetch py27-requests-2.4.3_0.darwin_10.noarch.tbz2 from
 http://mse.uk.packages.macports.org/sites/packages.macports.org/py27-requests
 --->  Attempting to fetch
 py27-requests-2.4.3_0.darwin_10.noarch.tbz2.rmd160 from
 http://mse.uk.packages.macports.org/sites/packages.macports.org/py27-requests
 --->  Installing py27-requests @2.4.3_0
 --->  Activating py27-requests @2.4.3_0
 Error: org.macports.activate for port py27-requests returned: Image error:
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/requests/__init__.py already exists and does not belong to
 a registered port.  Unable to activate port py27-requests. Use 'port -f
 activate py27-requests' to force the activation.
 Please see the log file for port py27-requests for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_python_py-requests/py27-requests/main.log
 To report a bug, follow the instructions in the guide:
     http://guide.macports.org/#project.tickets
 Error: Processing of port py27-requests failed
 }}}

--

Comment:

 In #45597 the error was "`no destroot found`". The cause was the user did
 not clean before trying again.

 This is not the same as your issue, which is
 "`/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/requests/__init__.py already exists and does not belong to
 a registered port`".

 Why does that file already exist, if it was not provided by a MacPorts
 port? You can try forcing the port activation, but if you cannot explain
 why the file already existed, who knows how many other files already exist
 that should not be there. In that case the safest solution would be to
 uninstall MacPorts and all ports, then remove /opt/local (after saving any
 important files, such as configuration files, data files, databases), then
 reinstall the ports you want.

-- 
Ticket URL: <https://trac.macports.org/ticket/45700#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list