Opened 9 years ago

Closed 9 years ago

#48447 closed defect (invalid)

Can't update ports because of Python

Reported by: ruipacheco (Rui Pacheco) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: py27-docutils

Description

$ sudo port upgrade outdated
--->  Computing dependencies for mercurial
--->  Dependencies to be installed: py27-docutils
--->  Activating py27-docutils @0.12_0
Error: org.macports.activate for port py27-docutils returned: Image error: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/rst2html.py already exists and does not belong to a registered port.  Unable to activate port py27-docutils. Use 'port -f activate py27-docutils' to force the activation.
Error: Failed to install py27-docutils
Please see the log file for port py27-docutils for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-docutils/py27-docutils/main.log
Error: The following dependencies were not installed: py27-docutils
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

Change History (4)

comment:1 in reply to:  description Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: invalid
Status: newclosed

Replying to rui.pacheco@…:

Error: org.macports.activate for port py27-docutils returned: Image error: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/rst2html.py already exists and does not belong to a registered port.  Unable to activate port py27-docutils. Use 'port -f activate py27-docutils' to force the activation.

Why does this file already exist but is not registered to a port? How did it get there? (This error message is MacPorts' way of telling you it didn't put it there.)

Perhaps you ran a third-party installer, that was itself built using MacPorts, that installed its files into your MacPorts prefix without MacPorts knowing about it?

Or perhaps you had this port installed with MacPorts some time ago, then you uninstalled MacPorts incompletely, then you reinstalled MacPorts?

In either case, the safest solution, since we don't know how many other files are in your MacPorts prefix that MacPorts did not put there, is to uninstall MacPorts completely, then reinstall MacPorts and the ports you want.

comment:2 Changed 9 years ago by ruipacheco (Rui Pacheco)

Resolution: invalid
Status: closedreopened

I did just that but I still get a similar error:

$ sudo port install mercurial
--->  Computing dependencies for mercurial
--->  Dependencies to be installed: py27-docutils py27-roman
--->  Fetching archive for py27-roman
--->  Attempting to fetch py27-roman-2.0.0_0.darwin_14.noarch.tbz2 from http://lil.fr.packages.macports.org/py27-roman
--->  Attempting to fetch py27-roman-2.0.0_0.darwin_14.noarch.tbz2.rmd160 from http://lil.fr.packages.macports.org/py27-roman
--->  Installing py27-roman @2.0.0_0
--->  Activating py27-roman @2.0.0_0
--->  Cleaning py27-roman
--->  Installing py27-docutils @0.12_0
--->  Activating py27-docutils @0.12_0
Error: org.macports.activate for port py27-docutils returned: Image error: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/rst2html.py already exists and does not belong to a registered port.  Unable to activate port py27-docutils. Use 'port -f activate py27-docutils' to force the activation.
Error: Failed to install py27-docutils
Please see the log file for port py27-docutils for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-docutils/py27-docutils/main.log
Error: The following dependencies were not installed: py27-docutils
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port mercurial failed
VCS_INFO_formats:32: VCS_INFO_reposub: function definition file not found              

I do not use any other package managers other than MacPorts. My day is spent with PyCharm, Vagrant and Terminal.

Last edited 9 years ago by ruipacheco (Rui Pacheco) (previous) (diff)

comment:3 in reply to:  2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to rui.pacheco@…:

I did just that but I still get a similar error:

Just to make sure: you uninstalled all ports, and removed MacPorts itself by completely deleting the /opt/local directory?

comment:4 Changed 9 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: reopenedclosed

There is nothing to fix here. Since Trac is not for tech support, please follow-up on the Macports Users mailing list instead if you still need help.

Note: See TracTickets for help on using tickets.