Opened 10 years ago

Closed 10 years ago

#45700 closed defect (invalid)

py27-requests & py34-requests

Reported by: mattia-vaccari (Mattia Vaccari) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.2
Keywords: Cc: kurthindenburg (Kurt Hindenburg)
Port: py-requests

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

Change History (4)

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: py-requests added

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.

comment:2 Changed 10 years ago by mattia-vaccari (Mattia Vaccari)

well, the destroot error appeared after i cleaned/uninstalled the package.

but indeed, a few packages had been installed by pip and i hadn't noticed!

sorry about the hassle - mattia

comment:3 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:4 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: invalid
Status: newclosed

closing per comment:2

Note: See TracTickets for help on using tickets.