Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#50550 closed defect (worksforme)

python27: /Applications/MacPorts/Python 2.7/../MainMenu.nib/classes.nib missing

Reported by: david@… Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: python27

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

port install python27 fails
Strider:~ > sudo port install python27
Password:
--->  Computing dependencies for python27
--->  Cleaning python27
--->  Updating database of binaries
Warning: Error determining file type of `/Applications/MacPorts/Python 2.7/Python Launcher.app/Contents/Resources/English.lproj/MainMenu.nib/classes.nib': lstat(/Applications/MacPorts/Python 2.7/Python Launcher.app/Contents/Resources/English.lproj/MainMenu.nib/classes.nib):no such file or directory
Warning: A file belonging to the `python27' port is missing or unreadable. Consider reinstalling it.

Can't get there from here

Change History (7)

comment:1 Changed 9 years ago by david@…

Strider:~ > ls -laF /Applications/MacPorts/Python\ 2.7/Python\ Launcher.app/Contents/Resources/English.lproj/MainMenu.nib/
total 16
drwxr-xr-x+ 3 root  admin   102 Dec 28 18:48 ./
drwxr-xr-x+ 6 root  admin   204 Dec 18 15:13 ../
-rw-r--r--+ 1 root  admin  5016 Dec 18 15:12 objects.nib
Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

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

Description: modified (diff)
Owner: changed from macports-tickets@… to jwa@…
Port: python27 added
Summary: /Applications/MacPorts/Python 2.7/../MainMenu.nib/classes.nib missing; port install python27 failspython27: /Applications/MacPorts/Python 2.7/../MainMenu.nib/classes.nib missing

Note that sudo port install python27 did not "fail". It correctly reported that python27 was already installed. Then, rev-upgrade automatically ran, as it does after every install or upgrade, to see if anything was broken, and it correctly reported that your python27 installation is broken because some files are inexplicably missing. So try reinstalling python27, by running:

sudo port -n upgrade --force python27

comment:3 Changed 9 years ago by david@…

Thanks very much. You are very helpful.

I did as you indicated. It went fine.

Can you tell me if the following should be dealt with?

--->  Cleaning python27
--->  Updating database of binaries
--->  Scanning binaries for linking errors               
--->  Found 13 broken file(s), matching files to ports   
Warning: No port py27-gtk found in the index; can't rebuild
Warning: No port gst-plugins-base found in the index; can't rebuild
Warning: No port gstreamer found in the index; can't rebuild
Warning: No port php5-gd found in the index; can't rebuild
--->  Broken files found, but all associated ports are not in the index and so cannot be rebuilt.
Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

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

Yes, you should uninstall those 4 ports, because they have been renamed long ago. Install the replacements if you wish to continue to use them. py27-gtk appears to now be py27-pygtk. gstreamer became gstreamer010 and gst-plugins-base became gstreamer010-gst-plugins-base (or use newer versions gstreamer1 and gstreamer1-gst-plugins-base instead). php5-gd became php53-gd (or use newer versions php54-gd, php55-gd, php56-gd or php70-gd).

comment:5 Changed 9 years ago by david@…

Wow. I will uninstall and then reinstall, because why not?

I am surprised and humbled by the extent of the modules on my machine. But honestly, I have no idea why or what they are all about. It is a conundrum. I ought to know about them. I will start with investigating my requested modules and attempt to educate myself. But is there a forum or some hierarchical method I could use to educate myself on all of the others without geeking out on the infrastructural details? I have no ambition for that.

Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:6 Changed 9 years ago by david@…

You probably knew this would happen. I'm inclined to ignore the whole thing.

Strider:~ > sudo port uninstall py27-gtk
Password:
--->  Unable to uninstall py27-gtk @2.22.0_1, the following ports depend on it:
--->  	gucharmap @2.30.3_3+python27
--->  	gimp2 @2.6.12_0+help_browser+python27
Error: org.macports.uninstall for port py27-gtk returned: Please uninstall the ports that depend on py27-gtk first.
Please see the log file for port py27-gtk for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_py27-gtk-2.22.0_1_1b5bd83fc3a90e53fb87aeb950da1fe5a2d014ee13be1d88a54bbd21b3839288-2632/py27-gtk/main.log
Warning: Failed to execute portfile from registry for py27-gtk @2.22.0_1
--->  Unable to uninstall py27-gtk @2.22.0_1, the following ports depend on it:
--->  	gucharmap @2.30.3_3+python27
--->  	gimp2 @2.6.12_0+help_browser+python27
Error: port uninstall failed: Please uninstall the ports that depend on py27-gtk first.
Strider:~ > sudo port install py27-pygtk
--->  Computing dependencies for py27-pygtk
--->  Cleaning py27-pygtk
--->  Scanning binaries for linking errors
--->  Found 13 broken file(s), matching files to ports   
Warning: No port gstreamer found in the index; can't rebuild
Warning: No port php5-gd found in the index; can't rebuild
Warning: No port py27-gtk found in the index; can't rebuild
Warning: No port gst-plugins-base found in the index; can't rebuild
--->  Broken files found, but all associated ports are not in the index and so cannot be rebuilt.
Strider:~ > 
Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:7 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

So you can't uninstall py27-gtk because gucharmap @2.30.3_3+python27 and gimp2 @2.6.12_0+help_browser+python27 are installed and depend on them. But those are old versions of gucharmap and gimp2, and you could uninstall them and upgrade to the current versions, if you haven't done so already. You've already installed py27-pygtk.

Note: See TracTickets for help on using tickets.