Opened 11 years ago

Closed 11 years ago

#42206 closed defect (invalid)

Can't install python27

Reported by: dave@… Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: python27

Description (last modified by ci42)

This is a very fresh install of macports on 10.9.2 beta with Xcode 5.0.2.

All I did so far was to install gcc46, gcc48, zsh, then tried to install boost.

0 220 Z% sudo /opt/local/bin/port install boost
--->  Computing dependencies for boost
--->  Dependencies to be installed: python27
--->  Activating python27 @2.7.6_0
Error: org.macports.activate for port python27 returned: Image error: /Applications/MacPorts/Python 2.7/IDLE.app/Contents/Info.plist already exists and does not belong to a registered port.  Unable to activate port python27. Use 'port -f activate python27' to force the activation.
Error: Failed to install python27
Please see the log file for port python27 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/main.log
Error: The following dependencies were not installed: python27
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port boost failed
0 222 Z% sudo /opt/local/bin/port install python27                                                                                               
--->  Computing dependencies for python27
--->  Activating python27 @2.7.6_0
Error: org.macports.activate for port python27 returned: Image error: /Applications/MacPorts/Python 2.7/IDLE.app/Contents/Info.plist already exists and does not belong to a registered port.  Unable to activate port python27. Use 'port -f activate python27' to force the activation.
Please see the log file for port python27 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port python27 failed
1 231 Z% sudo /opt/local/bin/port selfupdate      
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.2.1 installed,
MacPorts base version 2.2.1 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
0 232 Z% sudo /opt/local/bin/port uninstall python27
0 233 Z% sudo /opt/local/bin/port install python27 
--->  Computing dependencies for python27
--->  Installing python27 @2.7.6_0
Error: org.macports.install for port python27 returned: no destroot found at: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/work/destroot
Please see the log file for port python27 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port python27 failed
1 234 Z% 

Change History (6)

comment:1 Changed 11 years ago by ci42

Description: modified (diff)
Owner: changed from macports-tickets@… to jwa@…
Port: python27 added
Priority: HighNormal

In the future please remember to use WikiFormatting. And don't forget to Cc the maintainer and fill in the port field. Note that priority high is reserved for MacPorts team members.

Please try a clean attempt and attach the log file if it fails:

$ sudo port selfupdate
$ sudo port clean python27
$ sudo port install python27

comment:2 Changed 11 years ago by dave@…

1 202 Z% sudo /opt/local/bin/port selfupdate    
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.2.1 installed,
MacPorts base version 2.2.1 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
0 203 Z% sudo /opt/local/bin/port clean python27
--->  Cleaning python27
0 204 Z% sudo /opt/local/bin/port install python27
--->  Computing dependencies for python27
--->  Fetching archive for python27
--->  Attempting to fetch python27-2.7.6_0.darwin_13.x86_64.tbz2 from http://packages.macports.org/python27
--->  Attempting to fetch python27-2.7.6_0.darwin_13.x86_64.tbz2.rmd160 from http://packages.macports.org/python27
--->  Installing python27 @2.7.6_0
--->  Activating python27 @2.7.6_0
Error: org.macports.activate for port python27 returned: Image error: /Applications/MacPorts/Python 2.7/IDLE.app/Contents/Info.plist already exists and does not belong to a registered port.  Unable to activate port python27. Use 'port -f activate python27' to force the activation.
Please see the log file for port python27 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port python27 failed
1 205 Z% 

comment:3 in reply to:  2 Changed 11 years ago by larryv (Lawrence Velázquez)

Replying to dave@…:

--->  Activating python27 @2.7.6_0
Error: org.macports.activate for port python27 returned: Image error: /Applications/MacPorts/Python 2.7/IDLE.app/Contents/Info.plist already exists and does not belong to a registered port.  Unable to activate port python27. Use 'port -f activate python27' to force the activation.

The issue is very clearly stated: The file /Applications/MacPorts/Python 2.7/IDLE.app/Contents/Info.plist is present but unaccounted for. Did you have MacPorts installed on this machine previously? Did you remove it without uninstalling all ports first?

comment:4 Changed 11 years ago by dave@…

Again just now I did a fresh install of MacPorts from scratch, then selfupdate, then install python27. I got the same problem as shown in my most recent comment above.

comment:5 in reply to:  4 Changed 11 years ago by larryv (Lawrence Velázquez)

Replying to dave@…:

Again just now I did a fresh install of MacPorts from scratch

That wasn’t what I asked. I asked (a) whether you had ever had MacPorts previously installed on that machine and, if so, (b) whether you’d uninstalled all ports before removing it. I ask because this is the only reasonable way this situation could have come about:

  1. You install MacPorts.
  2. You install the python27 port, which installs /Applications/MacPorts/Python 2.7/IDLE.app/Contents/Info.plist, among other things.
  3. You delete /opt/local (or whatever) without uninstalling python27 first. Uninstalling python27 would have removed /Applications/MacPorts/Python 2.7/IDLE.app/Contents/Info.plist.
  4. You reinstall MacPorts.
  5. You try to reinstall python27, but activation fails because of the orphaned Info.plist.

comment:6 Changed 11 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed

There's nothing to fix here. Please move to the Macports Users mailing list for tech support.

Note: See TracTickets for help on using tickets.