Opened 11 years ago

Closed 11 years ago

#41962 closed defect (invalid)

py27-setuptools @2.0.1_0: easy_install already exists and does not belong to a registered port

Reported by: paulfwb (Yucca) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: py27-setuptools

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

sudo port install py27-numpy py27-scipy py27-matplotlib py27-ipython +notebook py27-pandas py27-sympy py27-nose
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
Password:
--->  Computing dependencies for py27-numpy
--->  Dependencies to be installed: py27-nose py27-setuptools
--->  Activating py27-setuptools @2.0.1_0
Error: org.macports.activate for port py27-setuptools returned: Image error: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/easy_install already exists and does not belong to a registered port.  Unable to activate port py27-setuptools. Use 'port -f activate py27-setuptools' to force the activation.
Error: Failed to install py27-setuptools
Please see the log file for port py27-setuptools for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-setuptools/py27-setuptools/main.log
Error: The following dependencies were not installed: py27-nose py27-setuptools
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port py27-numpy failed

Change History (3)

comment:1 in reply to:  description Changed 11 years ago by seanfarley (Sean Farley)

Error: org.macports.activate for port py27-setuptools returned: Image error: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/easy_install already exists and does not belong to a registered port.

Did you uninstall MacPorts somehow but not remove the directory /opt/local?

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: Python removed
Owner: changed from macports-tickets@… to jmr@…
Port: py27-setuptools added; python27 removed
Priority: HighNormal
Summary: port py27-numpy failedpy27-setuptools @2.0.1_0: easy_install already exists and does not belong to a registered port

Yes, only you can explain why that file, which should only be installed by the py27-setuptools port, already exists on your system. If you cannot explain it, you may be better off following the complete uninstall instructions in our guide, including removing /opt/local entirely, then reinstalling MacPorts and the ports you want. This will ensure that you don't have any unwanted files in your MacPorts prefix.

Also, what DYLD_ environment variables do you have set, and why? Often it is a mistake to set such variables.

comment:3 Changed 11 years ago by jmroot (Joshua Root)

Resolution: invalid
Status: newclosed

Feel free to reopen if there's evidence that MacPorts is incorrectly creating unregistered files. Otherwise this is working as intended by not overwriting existing files.

Note: See TracTickets for help on using tickets.