Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #91466

Re: Fixing Python install on the Mac after running 'CleanMyMac'

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <wrw@mac.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'modify': 0.04; 'subject:Python': 0.05; 'failing': 0.05; 'badly': 0.07; 'skip:/ 10': 0.07; 'scripts': 0.09; 'broke': 0.09; 'creighton': 0.09; 'reinstall': 0.09; 'runtime': 0.09; 'terminate.': 0.09; 'url:mac': 0.09; 'cc:addr:python-list': 0.10; 'python': 0.11; 'assume': 0.11; '2.7': 0.13; 'times,': 0.13; '(either': 0.16; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'cc:name:laura creighton': 0.16; 'clone': 0.16; 'fatal': 0.16; 'install.': 0.16; 'intervening': 0.16; 'luck,': 0.16; 'osx': 0.16; 'received:10.0.1.5': 0.16; 'received:mac.com': 0.16; 'scratch': 0.16; 'subject:Mac': 0.16; 'subject:after': 0.16; 'subject:install': 0.16; 'well-known': 0.16; 'wrote:': 0.16; 'laura': 0.18; 'received:10.0.1': 0.18; 'cc:2**2': 0.20; 'machine': 0.21; 'cc:addr:python.org': 0.21; 'software.': 0.22; 'fairly': 0.22; 'minor': 0.22; 'cc:no real name:2**0': 0.23; 'am,': 0.23; 'third-party': 0.23; 'file.': 0.24; "i've": 0.24; 'written': 0.24; 'install': 0.25; 'idea': 0.26; 'installed': 0.26; 'figure': 0.27; 'followed': 0.27; 'now?': 0.29; 'piece': 0.29; 'skip:/ 40': 0.29; 'array': 0.29; 'that.': 0.30; 'url:mailman': 0.31; 'supposed': 0.31; "can't": 0.32; 'says': 0.32; 'framework': 0.32; 'good.': 0.32; 'point': 0.33; 'url:python': 0.33; 'machine.': 0.33; 'utility': 0.33; 'open': 0.33; 'received:10.0': 0.34; 'running': 0.34; 'that,': 0.34; 'url:listinfo': 0.35; 'could': 0.35; 'done': 0.35; 'received:17': 0.35; 'really': 0.35; 'but': 0.36; 'url:org': 0.36; 'there': 0.36; 'possible': 0.36; 'so,': 0.37; 'two': 0.37; 'should': 0.37; 'email addr:python.org': 0.37; 'received:10': 0.37; 'subject:: ': 0.37; 'mac': 0.37; 'delete': 0.37; "won't": 0.38; 'files': 0.38; 'pm,': 0.39; 'expect': 0.39; 'url:2': 0.39; 'does': 0.39; 'url:docs': 0.39; 'data': 0.40; 'build': 0.40; 'where': 0.40; 'subject:the': 0.40; 'some': 0.40; 'header:MIME-version:1': 0.60; 'back': 0.61; 'hope': 0.61; 'she': 0.61; 'is.': 0.63; 'you.': 0.64; 'url:co': 0.64; 'backup': 0.66; 'drive,': 0.66; 'email name:webmaster': 0.66; 'restore': 0.70; 'soul': 0.72; 'header:In-reply-to:1': 0.84; 'located.': 0.84; 'wipe': 0.84
X-Proofpoint-Virus-Version vendor=fsecure engine=2.50.10432:5.14.151,1.0.33,0.0.0000 definitions=2015-05-29_04:2015-05-29,2015-05-29,1970-01-01 signatures=0
X-Proofpoint-Spam-Details rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1412110000 definitions=main-1505290177
Content-type text/plain; charset=utf-8
MIME-version 1.0 (Mac OS X Mail 8.2 \(2098\))
Subject Re: Fixing Python install on the Mac after running 'CleanMyMac'
From William Ray Wing <wrw@mac.com>
In-reply-to <1DD77C2F-FA02-4604-A1AF-7FDE7FFC47E9@gmail.com>
Date Fri, 29 May 2015 09:55:31 -0400
Cc "William R. Wing" <wrw@mac.com>, Laura Creighton <lac@openend.se>, python-list@python.org
Content-transfer-encoding quoted-printable
References <201505290347.t4T3lYjC006610@fido.openend.se> <1DD77C2F-FA02-4604-A1AF-7FDE7FFC47E9@gmail.com>
To Cem Karan <cfkaran2@gmail.com>
X-Mailer Apple Mail (2.2098)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.188.1432911344.5151.python-list@python.org> (permalink)
Lines 66
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1432911344 news.xs4all.nl 2950 [2001:888:2000:d::a6]:59581
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:91466

Show key headers only | View raw


> On May 29, 2015, at 9:12 AM, Cem Karan <cfkaran2@gmail.com> wrote:
> 
> 
> On May 28, 2015, at 11:47 PM, Laura Creighton <lac@openend.se> wrote:
> 
>> webmaster@python.org just got some mail from some poor embarrased
>> soul who ran this program and broke their Python install.
>> 
>> They are running Mac OSX 10.7.5
>> 
>> They are getting:
>> 
>>    Utility has encountered a fatal error, and will now terminate.  A
>>    Python runtime could not be located. You may need to install a
>>    framework build of Python or edit the PyRuntimeLocations array in this
>>    applications info.plist file.  Then there are two oblong circles. One
>>    says Open Console. The other says Terminate.
>> 
>> So https://docs.python.org/2/using/mac.html says:
>> 
>>  The Apple-provided build of Python is installed in
>>  /System/Library/Frameworks/Python.framework and /usr/bin/python,
>>  respectively. You should never modify or delete these, as they are
>>  Apple-controlled and are used by Apple- or third-party software.
>> 
>> So, I assume this poor soul has done precisely that.
>> 
>> What do I tell her to do now?

As a minor addendum - you can point out that “Clean My Mac” is a well-known piece of crap-ware that is so badly written as to be labeled by most people as malware.  Best possible solution would be a clean boot and restore from a recent clone (either CarbonCopy Cloner or SuperDuper) followed by a restore of intervening files from Time Machine.  Failing that, Cem’s suggestions are good.

-Bill

> 
> Does she have a recent Time Machine backup that she can restore from?  Otherwise the solutions are all fairly painful:
> 
> 1) Install Python 2.7 from scratch (easy).  Then figure out where to put symlinks that point back to the install (mildly annoying/hard).  Note that Python 3 won't work; none of the built-in scripts expect it.
> 
> 2) OS X recovery - http://www.macworld.co.uk/how-to/mac/how-reinstall-mac-os-x-using-internet-recovery-3593641/ I've never had to do that, so I have no idea how easy/reliable it is.  I **think** its supposed to save all the data on the drive, but again, I've not done this, so I can't make any guarantees.
> 
> 3) Wipe it clean and reinstall from scratch.
> 
> Honestly, I hope she has a time machine backup.  I've had to do recoveries a couple of times, and it can really save you.
> 
> Good luck,
> Cem Karan
> -- 
> https://mail.python.org/mailman/listinfo/python-list

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Fixing Python install on the Mac after running 'CleanMyMac' William Ray Wing <wrw@mac.com> - 2015-05-29 09:55 -0400

csiph-web