How do I recover Apple's stock python after accidentally deleting it from /System/Library/Frameworks/Python.framework? Is a Snow Leopard restore the only option?

I accidentally and foolishly deleted my COMPLETE folders: /System/Library/Frameworks/Python.framework/Versions/2.5 and /System/Library/Frameworks/Python.framework/Versions/2.6. Almost 10,000 files were trashed, and only three files would not go through. One of them was the 2.5 python executable. So I put this file back to its original location from trash, but it won't execute (probably for a reason - since Python is missing its remaining files).
I have a python.org python2.7 up and running, but my understanding is that Snow Leopard needs its stock apple provided python for the system to function properly.
Is my only to format my hard drive and restore Snow Leopard from scratch?

I'm actually not trying to do anything other than compile a python script for analyzing scientific data. I am a BIOLOGIST and have absolutely no interest in python for the sake of python. I just need to analyze my data. To get there, I need python/numpy/scipy/wxpython/matplotlib and many other things. I don't know why this seems so "suspicious"??? It's a free world - people are allowed to mess with things. It's not like I am threatening Apple - I made a mistake. Plain and simple. What's the big deal???
I was deleting some skeleton files that were leftover from previous versions of programs and libraries. And that's how I ran into the python2.5 and 2.6. I thought - I will never use these pythons again - why do I have 2.5 files still on my system. I thought I was in /Library/Python, but I was actually in /System/Library/Frameworks. By the time I realized I had wiped out the system's python, it was too late - trash was emptied permanently.
I am in no way trying to "experiment" with apple's python. I know apple's python can happily coexist with python.org or macports python.
In general, I get frustrated with trying to run python bioinformatics scripts on my Mac because there is always an issue. It's either that python is running in 64 bit mode and the scripts are too old. Or, the default apple provided gcc screws up. Quite frankly - Apple and Python are not always best friends.
I used to have a multitude of pythons through fink and macports but I wiped them all out and installed python.org's python27. I also switched to github for all my dependencies and libraries.
In the future, I'll just find a Linux machine to run bioinformatics. I love my Mac, but so far, I have had nothing but nightmares with Python and Apple trying to be friends. Linux is so much better for these types of activities. I can even do a Virtualbox Ubuntu on my MBP and take it from there...
For example, many bioinformatics scripts were made with Carbon and require Carbon. But guess what? Apple kept support for 64-bit Cocoa, but only supports 32-bit Carbon. That makes life ****. Why have a 64 bit architecture with no support for it?

Similar Messages

  • How do I recover a background after accidentally deleting it from the background catalog

    How do I recover a background after accidentally deleting it from the background catalog

      Close Photoshop Elements Editor and Organizer.
    Navigate to:     
    //Library/Application Support/Adobe/Photoshop Elements/11.0/Locale/en_US/
    Delete the file Mediadatabase.db3.
    Re-launch Photoshop Elements Editor. A progress bar appears as the media database is re-created. Wait for this process to complete. It make take some time and the screen may periodically go blank; so go away and get yourself a coffee and be patient.
      N.B. If you have any of your own custom effects, you may need to re-create/re-install them.
     

  • HT1688 How do I recover a sms message that I accidentally deleted?

    How do I recover a sms message that I accidentally deleted?

    If you backed up the phone to either iCloud or iTunes before deleting the message, restore the badckup.  If it wasn't backed up, it's gone, gone, gone.

  • How can I obtain the Pages app which I previously purchased from the App store for Snow Leopard? The only download now available is for Mountain Lion which my computer can't run. Thanks

    How can I obtain the Pages app which I previously purchased from the App store for Snow Leopard? The only download now available is for Mountain Lion which my computer can't run. Thanks

    Try Amazon but look for the iWork suite of software. It's only sold separately as Pages, Keynote, and Numbers from the App Store.

  • How to delete audiobook from iPod after completely deleting it from iTunes library and synching it?

    I no longer have the CD from the book. It isn't on my PC, but it's still on my iPod Touch. Any suggestions??

    When you swipe the book left or right does a delete button then show?

  • HT4993 How can i use my iphone in other country. I´m from USA and i can´t use my iphone in peru. the only message that i see in mu phone is NOT SERVICE. What can i do?

    Hello, im in vacation in peru but im from usa and i can´t use my iphone. i already call my line service to actived my phone and they said that everithing is ok but i´m still with out service. Can same one help me to be able to use my iphone. Thank you in Advance!!!!
    Sincerely,
    Katty Hall

    yes, i´m using the same service via roaming. I already call SPRING, and they told me that roaming is actived, but  i´m still with out service

  • How can you restore photo stream photos back to Apple TV after accidentally deleting from your iPad

    After accidentally deleting photo stream  photos on my iPad, this deleted photo stream photos on my Apple TV.  How can I restore these photos back to my Apple TV and also to  my iPad?  Suggestions welcomed

    If you have a backup of your iPad prior to the date of deleting your photos, you can find them. Otherwise, you might be able to find them.
    If you do have this backup, then you'll have to restore your iPad to that point.
    If you had a Mac with iPhoto, then when you connected your iPad, iPhoto would store the photos separately from Photostream.
    I despise Photostream. It's turned off everywhere on my system. It is one of the most useless pieces of junk that Apple has foisted on my Mac and iOS. But hey, that's just my opinion.

  • How do i add a rescue email address to an already existing apple id? The only option it gives me, under the manage my apple id category, is an alternate email. I am trying to make my alternate email address my rescue email address.

    How do i add a rescue email address to an already existing apple id? The only option it gives me, under the manage my apple id category, is an alternate email. I am trying to make my alternate email address my rescue email address. I am new to this community thing.

    Note that the rescue email address is not on the "Name, ID and Email Address" page -- you need to click on "Password and Security" on the left side. Even after you do that, it may or may not be available. As noted in the following it is only available if you have 3 security questions and are not using 2-step verification: Manage your Apple ID primary, rescue, alternate, and notification email addresses

  • Just bought a Macbook Pro. I want a clean install so won't use a Time Machine backup but how can I install the software I bought from Apple Store? can I just delete it from the old machine that is going to someone else?

    Just bought a Macbook Pro. I want a clean install so won't use a Time Machine backup but how can I install the software I bought from Apple Store? can I just delete it from the old machine that is going to someone else?

    The ne
    The new machine has Mavericks which is fine. And I will leave it as is. I don’t want anything from my old machine other than 2 apps that I will need on the new one. I want to be able to install those apps that I bought from the App Store onto my new computer. I assume Apple doesn’t want me to have the apps installed on 2 machines at the same time so I wonder if just uninstalling them from my old machine will release them for re-install on the new one.

  • How can I recover something I put in trash accidentally?

    How can I recover something I put in trash accidentally?

    DriveSavers Data Recovery | Service Plans
    Recover iPod - iPod Data Recovery Software for Windows & Mac OS X
    not cheap or may not be possible

  • Recently Got a Mac Book and was wondering if there is any software that Apple recommends to import my music/pics/video from my Iphone onto my computer. I no longer have the previous compture and if I sync my Iphone I'll lose everything.

    Recently Got a Mac Book and was wondering if there is any software that Apple recommends to import my music/pics/video from my Iphone onto my computer. I no longer have the previous computer and if I sync my Iphone I'll lose everything.

    This is the iTunes for Windows forum...
    You should be able to:
    Backup the device to the new windows installation
    Transfer your purchases into a newly authorized library
    Recover any other media using third party tools as suggested in this post from forum regular Zevoneer
    Restore the device from the backup
    This process should switch the association of the device to the new library, preserving the data and settings in your apps.
    May also be prudent to attempt a backup to iCloud directly from the device before you start... Settings > iCloud > Storage & Backup > iCloud Backup > On. It won't save any media but it would preserve the general account settings and documents in case anything goes wrong while you are trying to extract your other data.
    When you get it all fixed, make a backup! (Windows tip). For a Mac use Time Machine or Carbon Copy Cloner.
    tt2

  • My iphone took all of my pics off of my computer. this is making it very slow. How do I remove them if the only options are places or albums?

    Hello,
    I accidently hit restore on my phone and erased everything. When I called Apple they helped me retrieve everything from my computer and more. I now have over 4,000
    pics on my phone  that were on my computer, which is making it very slow. How do I get these off when the only options the phone is giving me are places and albums

    To Remove Photos from your Phone you need to Sync your phone with the Computer you Usually Sync with...
    See Here for Syncing...
    http://support.apple.com/kb/HT1386
    From Here
    http://www.apple.com/support/iphone/syncing/
    iPhone User Guide
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • How do I get my FaceTime icon back on my iPhone 5 after accidentally deleting it

    How do I get my FaceTime icon back on my iPhone 5 after accidentally deleting it

      Obviously I need to speak another language for you.... AGAIN my intentions were to answer the original post... Obviously more than one person has had this issue... I didn't create the post! If you take the time to read what I have said, I in fact wasn't the one asking the question, I was answering it! It's funny your on an Apple forum stating that information given by APPLE is incorrect.... Mind boggling! When answering a question on a forum, there are those that will disagree with the answers you have provided..SO WHAT! My life goal is not to answer to you or anyone else's satisfaction... Get over it.. You call it splitting hairs, I call it stating my opinion...I would have had to provide a service in order to provide a disservice, to which my opinion is not!  If you don't agree with what I or APPLE has said, shrug and move on....
    Capisco; Aghju capitu; Ich verstehe ?
    Have a nice day :0)!

  • I have a 15" MacBook Pro with Mountain Lion installed.  I have partitioned the hard drive into two partitions.  Is it possible to install Snow Leopard on the second partition?  If so how do I do it?

    I have a 15" MacBook Pro with Mountain Lion installed.  I have partitioned the hard drive into two partitions.  Is it possible to install Snow Leopard on the second partition?  If so how do I do it?

    If your MacBook Pro had Snow Leopard on it at one time then sure. (Early 2011 or earlier)
    How to erase and install Snow Leopard 10.6
    Obviously choose the second partition to install into. It has to be OS X Extended journaled formatted in Disk Utility (BootCamp software makes it a MSDOS/FAT32 formatted partition if you used that to partition with)
    If it's a Early 2011 or Late 2011 that came with 10.7, it's possible, but it's not easy.
    https://discussions.apple.com/thread/3264421?start=0&tstart=0
    If you can't install Snow Leopard, there is a thread over at MacRumors how to run Snow Leopard in a virtual machine program under 10.7 or 10.8

  • Can anyone tell me how to restore my itunes library and playlists? After I downloaded mountain lion my library is missing and my devices can be synced to only one library ...the missing one

    can anyone tell me how to restore my itunes library and playlists? After I downloaded mountain lion my library is missing and my devices can be synced to only one library ...the missing one

    That .itl file actually is the library -- at least the critical part of it although the library is actually many files and folders.
    Try starting iTunes and immediately hold down the option key.  When it asks, guide it to the .itl file.
    It's really hard to say without being able to poke around your computer.  Upgrading should not delete the old library, but still it happens to the very, very few which is why we make backups before updating.  If the old library file is gone then so are your playlists.  You can always see if the following is of any use:
    iTunes: How to re-create your iTunes library and playlists - http://support.apple.com/kb/ht1451

Maybe you are looking for